Class V4Message


  • public class V4Message
    extends Object
    A representation of a message sent by a user of Symphony
    • Constructor Detail

      • V4Message

        public V4Message()
    • Method Detail

      • getMessageId

        public String getMessageId()
        Id of the message
        Returns:
        messageId
      • setMessageId

        public void setMessageId​(String messageId)
      • getTimestamp

        public Long getTimestamp()
        Timestamp of the message in milliseconds since Jan 1 1970
        Returns:
        timestamp
      • setTimestamp

        public void setTimestamp​(Long timestamp)
      • getMessage

        public String getMessage()
        Message content in MessageMLV2
        Returns:
        message
      • setMessage

        public void setMessage​(String message)
      • getSharedMessage

        public V4Message getSharedMessage()
        Get sharedMessage
        Returns:
        sharedMessage
      • setSharedMessage

        public void setSharedMessage​(V4Message sharedMessage)
      • getData

        public String getData()
        Message data in EntityJSON
        Returns:
        data
      • setData

        public void setData​(String data)
      • getAttachments

        public List<V4AttachmentInfo> getAttachments()
        Message attachments
        Returns:
        attachments
      • getUser

        public V4User getUser()
        Get user
        Returns:
        user
      • setUser

        public void setUser​(V4User user)
      • getStream

        public V4Stream getStream()
        Get stream
        Returns:
        stream
      • setStream

        public void setStream​(V4Stream stream)
      • isisExternalRecipients

        public Boolean isisExternalRecipients()
        Indicates if the message have external recipients. Only present on real time messaging.
        Returns:
        externalRecipients
      • setExternalRecipients

        public void setExternalRecipients​(Boolean externalRecipients)
      • externalRecipients

        public V4Message externalRecipients​(Boolean externalRecipients)
      • getDiagnostic

        public String 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

        public void setDiagnostic​(String diagnostic)
      • getUserAgent

        public String 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

        public void setUserAgent​(String userAgent)
      • getOriginalFormat

        public String 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

        public void setOriginalFormat​(String originalFormat)
      • originalFormat

        public V4Message originalFormat​(String originalFormat)
      • getDisclaimer

        public String 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

        public void setDisclaimer​(String disclaimer)