public class Message extends java.lang.Object implements java.io.Serializable, Sendable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
content |
private java.lang.Enum |
controlHeader |
private Sendable |
extension |
private Group |
group |
private User |
sendingUser |
private static long |
serialVersionUID |
private java.sql.Date |
timeStamp |
Constructor and Description |
---|
Message(Group group,
java.lang.Enum controllerHeader,
User sendingUser,
java.lang.String content,
Sendable extension) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent() |
java.lang.Enum |
getControlHeader() |
java.lang.Class<? extends java.lang.Enum> |
getControlHeaderType() |
Sendable |
getExtension() |
Group |
getGroup() |
User |
getSendingUser() |
java.sql.Date |
getTimeStamp() |
java.lang.Class |
getType() |
boolean |
hasExtension() |
void |
setTimeStamp(java.sql.Date timeStamp) |
private static final long serialVersionUID
private java.lang.String content
private Sendable extension
private User sendingUser
private Group group
private java.lang.Enum controlHeader
private java.sql.Date timeStamp
public java.lang.String getContent()
public Sendable getExtension()
public boolean hasExtension()
public Group getGroup()
public java.lang.Class<? extends java.lang.Enum> getControlHeaderType()
public java.lang.Enum getControlHeader()
public User getSendingUser()
public void setTimeStamp(java.sql.Date timeStamp)
public java.sql.Date getTimeStamp()