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 Details

  • Constructor Details

    • V2Message

      public V2Message()
  • Method Details

    • message

      public V2Message message(String message)
    • getMessage

      public String getMessage()
      Message text in MessageML
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • fromUserId

      public V2Message fromUserId(Long fromUserId)
    • 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)
    • attachments

      public V2Message attachments(List<AttachmentInfo> attachments)
    • addAttachmentsItem

      public V2Message addAttachmentsItem(AttachmentInfo attachmentsItem)
    • getAttachments

      @Nullable public List<AttachmentInfo> getAttachments()
      Get attachments
      Returns:
      attachments
    • setAttachments

      public void setAttachments(List<AttachmentInfo> attachments)
    • equals

      public boolean equals(Object o)
      Return true if this V2Message object is equal to o.
      Overrides:
      equals in class V2BaseMessage
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class V2BaseMessage
    • toString

      public String toString()
      Overrides:
      toString in class V2BaseMessage