Class MessageDTO
- java.lang.Object
-
- idatt2106.group3.backend.Model.DTO.MessageDTO
-
public class MessageDTO extends java.lang.Object
DTO class for messages
-
-
Constructor Summary
Constructors Constructor Description MessageDTO()
MessageDTO(Message message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getChatId()
java.lang.String
getForename()
java.lang.String
getMessage()
java.time.LocalDateTime
getTime()
long
getUserId()
void
setChatId(long chatId)
void
setForename(java.lang.String forename)
void
setMessage(java.lang.String message)
void
setTime(java.time.LocalDateTime time)
void
setUserId(long userId)
-
-
-
Constructor Detail
-
MessageDTO
public MessageDTO()
-
MessageDTO
public MessageDTO(Message message)
-
-
Method Detail
-
getUserId
public long getUserId()
-
setUserId
public void setUserId(long userId)
-
getForename
public java.lang.String getForename()
-
setForename
public void setForename(java.lang.String forename)
-
getTime
public java.time.LocalDateTime getTime()
-
setTime
public void setTime(java.time.LocalDateTime time)
-
getMessage
public java.lang.String getMessage()
-
setMessage
public void setMessage(java.lang.String message)
-
getChatId
public long getChatId()
-
setChatId
public void setChatId(long chatId)
-
-