Package com.openmeet.shared.data.message
Class Message
java.lang.Object
com.openmeet.shared.data.message.Message
- All Implemented Interfaces:
IEntity
This class represents the Message Entity.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the deliveredTime of the Message.intgetId()Returns the id of the Message.intReturns the meeter id of the receiver of the Message.intReturns the meeter id of the sender of the Message.Returns the readTime of the Message.Returns the sentTime of the Message.getText()Returns the text of the Message.voidsetDeliveredTime(Timestamp deliveredTime) Sets the deliveredTime of the Message.voidsetId(int id) Sets the id of the Message.voidsetMeeterReceiver(int meeterReceiver) Sets the meeter id of the receiver of the Message.voidsetMeeterSender(int meeterSender) Sets the meeter id of the sender of the Message.voidsetReadTime(Timestamp readTime) Sets the readTime of the Message.voidsetSentTime(Timestamp sentTime) Sets the sentTime of the Message.voidSets the text of the Message.Returns the Message as an hashMap.Returns the Message as an hashMap.toString()
-
Field Details
-
MESSAGE
- See Also:
-
MESSAGE_ID
- See Also:
-
MESSAGE_TEXT
- See Also:
-
MESSAGE_SENT_TIME
- See Also:
-
MESSAGE_DELIVERED_TIME
- See Also:
-
MESSAGE_READ_TIME
- See Also:
-
MESSAGE_MEETER_SENDER
- See Also:
-
MESSAGE_MEETER_RECEIVER
- See Also:
-
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
toHashMap
Returns the Message as an hashMap. -
toHashMap
Returns the Message as an hashMap. -
toString
-
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
Returns the text of the Message.- Returns:
- the text of the Message.
-
setText
Sets the text of the Message.- Parameters:
text- the text of the Message.
-
getSentTime
Returns the sentTime of the Message.- Returns:
- the sentTime of the Message.
-
setSentTime
Sets the sentTime of the Message.- Parameters:
sentTime- the sentTime of the Message.
-
getDeliveredTime
Returns the deliveredTime of the Message.- Returns:
- the deliveredTime of the Message.
-
setDeliveredTime
Sets the deliveredTime of the Message.- Parameters:
deliveredTime- the deliveredTime of the Message.
-
getReadTime
Returns the readTime of the Message.- Returns:
- the readTime of the Message.
-
setReadTime
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.
-