Package com.symphony.api.model
Class Message
- java.lang.Object
-
- com.symphony.api.model.BaseMessage
-
- com.symphony.api.model.Message
-
public class Message extends BaseMessage
A representation of a message sent by a user of Symphony.
-
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
fromUserId(Long fromUserId)
Long
getFromUserId()
the Symphony userId of the user who sent the message.String
getMessage()
Message text in MessageMLMessage
message(String message)
void
setFromUserId(Long fromUserId)
void
setMessage(String message)
String
toString()
-
Methods inherited from class com.symphony.api.model.BaseMessage
getId, getMessageType, getStreamId, getTimestamp, id, messageType, setId, setMessageType, setStreamId, setTimestamp, streamId, timestamp
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
Message text in MessageML- Returns:
- message
-
setMessage
public void setMessage(String message)
-
getFromUserId
public Long getFromUserId()
the Symphony userId of the user who sent the message. This will be populated by the server (and actually ignored if included when sending a message).- Returns:
- fromUserId
-
setFromUserId
public void setFromUserId(Long fromUserId)
-
toString
public String toString()
- Overrides:
toString
in classBaseMessage
-
-