Package com.symphony.bdk.gen.api.model
Class V4Message
java.lang.Object
com.symphony.bdk.gen.api.model.V4Message
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-12-28T21:41:53.611242810Z[Etc/UTC]")
public class V4Message
extends Object
A representation of a message sent by a user of Symphony
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttachmentsItem
(V4AttachmentInfo attachmentsItem) attachments
(List<V4AttachmentInfo> attachments) diagnostic
(String diagnostic) disclaimer
(String disclaimer) boolean
Return true if this V4Message object is equal to o.externalRecipients
(Boolean externalRecipients) Message attachmentsgetData()
Message data in EntityJSONDetails if event failed to parse for any reason.Message that may be sent along with a regular message if configured for the POD, usually the first message sent in a room that day.Indicates if the message have external recipients.Id the the initial message that has been updated (present only if set)Timestamp of when the initial message has been created in milliseconds since Jan 1 1970 (present only if set)Message content in MessageMLV2Id of the messageIndicates the format in which the message was originally sent.Id of the parent message, set when the message is a reply to another message or a forwarded message.Id of the message that the current message is being replaced with (present only if set)Id of the message that the current message is replacing (present only if set)Get sharedMessagegetSid()
Unique session identifier from where the message was created.When false the user/s will receive the message update as unread (true by default)Get streamTimestamp of the message in milliseconds since Jan 1 1970getUser()
Get userUser agent string for client that sent the message.int
hashCode()
initialMessageId
(String initialMessageId) initialTimestamp
(Long initialTimestamp) originalFormat
(String originalFormat) parentMessageId
(String parentMessageId) replacedBy
(String replacedBy) void
setAttachments
(List<V4AttachmentInfo> attachments) void
void
setDiagnostic
(String diagnostic) void
setDisclaimer
(String disclaimer) void
setExternalRecipients
(Boolean externalRecipients) void
setInitialMessageId
(String initialMessageId) void
setInitialTimestamp
(Long initialTimestamp) void
setMessage
(String message) void
setMessageId
(String messageId) void
setOriginalFormat
(String originalFormat) void
setParentMessageId
(String parentMessageId) void
setReplacedBy
(String replacedBy) void
setReplacing
(String replacing) void
setSharedMessage
(V4Message sharedMessage) void
void
void
void
setTimestamp
(Long timestamp) void
void
setUserAgent
(String userAgent) sharedMessage
(V4Message sharedMessage) toString()
-
Field Details
-
JSON_PROPERTY_MESSAGE_ID
- See Also:
-
JSON_PROPERTY_PARENT_MESSAGE_ID
- See Also:
-
JSON_PROPERTY_TIMESTAMP
- See Also:
-
JSON_PROPERTY_MESSAGE
- See Also:
-
JSON_PROPERTY_SHARED_MESSAGE
- See Also:
-
JSON_PROPERTY_DATA
- See Also:
-
JSON_PROPERTY_ATTACHMENTS
- See Also:
-
JSON_PROPERTY_USER
- See Also:
-
JSON_PROPERTY_STREAM
- See Also:
-
JSON_PROPERTY_EXTERNAL_RECIPIENTS
- See Also:
-
JSON_PROPERTY_DIAGNOSTIC
- See Also:
-
JSON_PROPERTY_USER_AGENT
- See Also:
-
JSON_PROPERTY_ORIGINAL_FORMAT
- See Also:
-
JSON_PROPERTY_DISCLAIMER
- See Also:
-
JSON_PROPERTY_SID
- See Also:
-
JSON_PROPERTY_REPLACING
- See Also:
-
JSON_PROPERTY_REPLACED_BY
- See Also:
-
JSON_PROPERTY_INITIAL_TIMESTAMP
- See Also:
-
JSON_PROPERTY_INITIAL_MESSAGE_ID
- See Also:
-
JSON_PROPERTY_SILENT
- See Also:
-
-
Constructor Details
-
V4Message
public V4Message()
-
-
Method Details
-
messageId
-
getMessageId
Id of the message- Returns:
- messageId
-
setMessageId
-
parentMessageId
-
getParentMessageId
Id of the parent message, set when the message is a reply to another message or a forwarded message. Since Agent 20.14.- Returns:
- parentMessageId
-
setParentMessageId
-
timestamp
-
getTimestamp
Timestamp of the message in milliseconds since Jan 1 1970- Returns:
- timestamp
-
setTimestamp
-
message
-
getMessage
Message content in MessageMLV2- Returns:
- message
-
setMessage
-
data
-
getData
Message data in EntityJSON- Returns:
- data
-
setData
-
attachments
-
addAttachmentsItem
-
getAttachments
Message attachments- Returns:
- attachments
-
setAttachments
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
stream
-
getStream
Get stream- Returns:
- stream
-
setStream
-
externalRecipients
-
getExternalRecipients
Indicates if the message have external recipients. Only present on real time messaging.- Returns:
- externalRecipients
-
setExternalRecipients
-
diagnostic
-
getDiagnostic
Details if event failed to parse for any reason. The contents of this field may not be useful, depending on the nature of the error. Only present when error occurs.- Returns:
- diagnostic
-
setDiagnostic
-
userAgent
-
getUserAgent
User agent string for client that sent the message. Allows callers to identify which client sent the origin message (e.g. API Agent, SFE Client, mobile, etc)- Returns:
- userAgent
-
setUserAgent
-
originalFormat
-
getOriginalFormat
Indicates the format in which the message was originally sent. This could have been either: - com.symphony.markdown - Markdown OR Message ML V1 - com.symphony.messageml.v2 - Message ML V2- Returns:
- originalFormat
-
setOriginalFormat
-
disclaimer
-
getDisclaimer
Message that may be sent along with a regular message if configured for the POD, usually the first message sent in a room that day.- Returns:
- disclaimer
-
setDisclaimer
-
sid
-
getSid
Unique session identifier from where the message was created.- Returns:
- sid
-
setSid
-
replacing
-
getReplacing
Id of the message that the current message is replacing (present only if set)- Returns:
- replacing
-
setReplacing
-
replacedBy
-
getReplacedBy
Id of the message that the current message is being replaced with (present only if set)- Returns:
- replacedBy
-
setReplacedBy
-
initialTimestamp
-
getInitialTimestamp
Timestamp of when the initial message has been created in milliseconds since Jan 1 1970 (present only if set)- Returns:
- initialTimestamp
-
setInitialTimestamp
-
initialMessageId
-
getInitialMessageId
Id the the initial message that has been updated (present only if set)- Returns:
- initialMessageId
-
setInitialMessageId
-
silent
-
getSilent
When false the user/s will receive the message update as unread (true by default)- Returns:
- silent
-
setSilent
-
equals
Return true if this V4Message object is equal to o. -
hashCode
public int hashCode() -
toString
-