Class PhoneMessage

java.lang.Object
nl.minetopiasdb.api.objects.PhoneMessage

public class PhoneMessage extends Object
PhoneMessage object used in PhoneMessageManager.getMessages(int)
  • Constructor Details

    • PhoneMessage

      public PhoneMessage(long id, int phoneNumberSender, UUID sender, int phoneNumberReceiver, String message, boolean read)
  • 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

      public UUID 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

      public String 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