public class CollaborationMessage extends Object implements Serializable
CollaborationMessageList
.Constructor and Description |
---|
CollaborationMessage()
Creates a new message.
|
CollaborationMessage(UserInfo user,
String text,
Instant time)
Creates a new message with the specified
user as the message
author info, text as the message content and time as the
message timestamp. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getText()
Gets the message content.
|
Instant |
getTime()
Gets the message timestamp.
|
UserInfo |
getUser()
Gets the message author user-info.
|
int |
hashCode() |
void |
setText(String text)
Sets the message content.
|
void |
setTime(Instant time)
Sets the message timestamp.
|
void |
setUser(UserInfo user)
Sets the message author user-info.
|
public CollaborationMessage()
public CollaborationMessage(UserInfo user, String text, Instant time)
user
as the message
author info, text
as the message content and time
as the
message timestamp.user
- the user-info of the message authortext
- the content of the messagetime
- the timestamp of the messagepublic UserInfo getUser()
public void setUser(UserInfo user)
user
- the user-infopublic String getText()
public void setText(String text)
text
- the message contentpublic Instant getTime()
public void setTime(Instant time)
time
- the message timestampCopyright © 2024. All rights reserved.