Interface MailSQL
- All Superinterfaces:
SQL
SQL interface for mail data operations in FlectonePulse.
Defines database queries for managing player mail messages.
- Since:
- 0.9.0
-
Method Summary
Modifier and TypeMethodDescriptionfindByReceiver(int receiverId) Finds all valid mail messages for a receiver.findBySender(int senderId) Finds all valid mail messages from a sender.intInserts a new mail message.voidinvalidate(int id) Invalidates a mail message.
-
Method Details
-
insert
Inserts a new mail message.- Parameters:
date- the timestamp when the mail was sentsenderId- the ID of the player who sent the mailreceiverId- the ID of the player who received the mailmessage- the mail message content- Returns:
- the generated mail ID
-
invalidate
void invalidate(int id) Invalidates a mail message.- Parameters:
id- the mail ID
-
findByReceiver
-
findBySender
-