open class ChatMessage
Created by Chia Yu on 22/10/2019. for sg.edu.ntu.scse.cz2006.gymbuddies.datastruct in Gym Buddies! Entity class to hold single chat message between user.
Author
Chia Yu
Since
2019-10-22
<init> |
default constructor ChatMessage()
alternate constructor ChatMessage(message: String!, sender: String!, timestamp: Long) ChatMessage(message: String!, sender: String!) |
message |
the message content. It is nullable to denote that message is being deleted var message: String! |
sender |
user id of user that send out the message var sender: String! |
timestamp |
timestamp of message of user send out the message var timestamp: Long |
getMessage |
getter method of open fun getMessage(): String! |
getSender |
getter method of open fun getSender(): String! |
getTimestamp |
getter method of open fun getTimestamp(): Long |
setMessage |
setter method of open fun setMessage(message: String!): Unit |
setSender |
setter method of open fun setSender(sender: String!): Unit |
setTimestamp |
setter method of open fun setTimestamp(timestamp: Long): Unit |