Class Message

java.lang.Object
com.openmeet.shared.data.message.Message
All Implemented Interfaces:
IEntity

public class Message extends Object implements IEntity
This class represents the Message Entity.
See Also:
  • Field Details

  • Constructor Details

    • Message

      public Message()
  • Method Details

    • toHashMap

      public HashMap<String,Object> toHashMap()
      Returns the Message as an hashMap.
      Specified by:
      toHashMap in interface IEntity
      Returns:
      the Message as an hashMap.
      See Also:
    • toHashMap

      public HashMap<String,Object> toHashMap(String... fields)
      Returns the Message as an hashMap.
      Specified by:
      toHashMap in interface IEntity
      Parameters:
      fields - the fields to be returned.
      Returns:
      the Message as an hashMap.
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public int getId()
      Returns the id of the Message.
      Returns:
      the id of the Message.
    • setId

      public void setId(int id)
      Sets the id of the Message.
      Parameters:
      id - the id of the Message.
    • getText

      public String getText()
      Returns the text of the Message.
      Returns:
      the text of the Message.
    • setText

      public void setText(String text)
      Sets the text of the Message.
      Parameters:
      text - the text of the Message.
    • getSentTime

      public Timestamp getSentTime()
      Returns the sentTime of the Message.
      Returns:
      the sentTime of the Message.
    • setSentTime

      public void setSentTime(Timestamp sentTime)
      Sets the sentTime of the Message.
      Parameters:
      sentTime - the sentTime of the Message.
    • getDeliveredTime

      public Timestamp getDeliveredTime()
      Returns the deliveredTime of the Message.
      Returns:
      the deliveredTime of the Message.
    • setDeliveredTime

      public void setDeliveredTime(Timestamp deliveredTime)
      Sets the deliveredTime of the Message.
      Parameters:
      deliveredTime - the deliveredTime of the Message.
    • getReadTime

      public Timestamp getReadTime()
      Returns the readTime of the Message.
      Returns:
      the readTime of the Message.
    • setReadTime

      public void setReadTime(Timestamp readTime)
      Sets the readTime of the Message.
      Parameters:
      readTime - the readTime of the Message.
    • getMeeterSender

      public int getMeeterSender()
      Returns the meeter id of the sender of the Message.
      Returns:
      the meeter id of the sender of the Message.
    • setMeeterSender

      public void setMeeterSender(int meeterSender)
      Sets the meeter id of the sender of the Message.
      Parameters:
      meeterSender - the meeter id of the sender of the Message.
    • getMeeterReceiver

      public int getMeeterReceiver()
      Returns the meeter id of the receiver of the Message.
      Returns:
      the meeter id of the receiver of the Message.
    • setMeeterReceiver

      public void setMeeterReceiver(int meeterReceiver)
      Sets the meeter id of the receiver of the Message.
      Parameters:
      meeterReceiver - the meeter id of the receiver of the Message.