Package com.symphony.bdk.gen.api.model
Class V2Message
java.lang.Object
com.symphony.bdk.gen.api.model.V2BaseMessage
com.symphony.bdk.gen.api.model.V2Message
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-03-26T16:14:53.869723549Z[Etc/UTC]")
public class V2Message
extends V2BaseMessage
A representation of a message sent by a user of Symphony.
-
Field Summary
Fields inherited from class com.symphony.bdk.gen.api.model.V2BaseMessage
JSON_PROPERTY_ID, JSON_PROPERTY_STREAM_ID, JSON_PROPERTY_TIMESTAMP, JSON_PROPERTY_V2MESSAGE_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttachmentsItem
(AttachmentInfo attachmentsItem) attachments
(List<AttachmentInfo> attachments) boolean
Return true if this V2Message object is equal to o.fromUserId
(Long fromUserId) Get attachmentsthe Symphony userId of the user who sent the message.Message text in MessageMLint
hashCode()
void
setAttachments
(List<AttachmentInfo> attachments) void
setFromUserId
(Long fromUserId) void
setMessage
(String message) toString()
Methods inherited from class com.symphony.bdk.gen.api.model.V2BaseMessage
getId, getStreamId, getTimestamp, getV2messageType, id, setId, setStreamId, setTimestamp, setV2messageType, streamId, timestamp, v2messageType
-
Field Details
-
JSON_PROPERTY_MESSAGE
- See Also:
-
JSON_PROPERTY_FROM_USER_ID
- See Also:
-
JSON_PROPERTY_ATTACHMENTS
- See Also:
-
-
Constructor Details
-
V2Message
public V2Message()
-
-
Method Details
-
message
-
getMessage
Message text in MessageML- Returns:
- message
-
setMessage
-
fromUserId
-
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
-
attachments
-
addAttachmentsItem
-
getAttachments
Get attachments- Returns:
- attachments
-
setAttachments
-
equals
Return true if this V2Message object is equal to o.- Overrides:
equals
in classV2BaseMessage
-
hashCode
public int hashCode()- Overrides:
hashCode
in classV2BaseMessage
-
toString
- Overrides:
toString
in classV2BaseMessage
-