Package nl.minetopiasdb.api.objects
Class PhoneMessage
java.lang.Object
nl.minetopiasdb.api.objects.PhoneMessage
PhoneMessage object used in
PhoneMessageManager.getMessages(int)
-
Constructor Summary
ConstructorDescriptionPhoneMessage
(long id, int phoneNumberSender, UUID sender, int phoneNumberReceiver, String message, boolean read) -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
Get the row ID of this messageGet the sent messageint
Get the phone number that received this messageint
Get the phone number of the person who sent this messageGet the UUID of the senderboolean
isRead()
See if message is readvoid
setRead
(boolean read) Mark a message as read or unread NOTE: Please call this method async
-
Constructor Details
-
PhoneMessage
-
-
Method Details
-
getId
public long getId()Get the row ID of this message- Returns:
- message id
-
getPhoneNumberSender
public int getPhoneNumberSender()Get the phone number of the person who sent this message- Returns:
- phone number of sender
-
getSenderUUID
Get the UUID of the sender- Returns:
- UUId of sender
-
getPhoneNumberReceiver
public int getPhoneNumberReceiver()Get the phone number that received this message- Returns:
- phone number
-
getMessage
Get the sent message- Returns:
- message
-
isRead
public boolean isRead()See if message is read- Returns:
- true if message is read
-
setRead
public void setRead(boolean read) Mark a message as read or unread NOTE: Please call this method async- Parameters:
read
- true if needs to be read
-