Class ConversationPart


  • public final class ConversationPart
    extends java.lang.Object
    • Method Detail

      • getType

        public java.util.Optional<java.lang.String> getType()
        Returns:
        Always conversation_part
      • getId

        public java.util.Optional<java.lang.String> getId()
        Returns:
        The id representing the conversation part.
      • getPartType

        public java.util.Optional<java.lang.String> getPartType()
        Returns:
        The type of conversation part.
      • getBody

        public java.util.Optional<java.lang.String> getBody()
        Returns:
        The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured.
      • getCreatedAt

        public java.util.Optional<java.lang.Integer> getCreatedAt()
        Returns:
        The time the conversation part was created.
      • getUpdatedAt

        public java.util.Optional<java.lang.Integer> getUpdatedAt()
        Returns:
        The last time the conversation part was updated.
      • getNotifiedAt

        public java.util.Optional<java.lang.Integer> getNotifiedAt()
        Returns:
        The time the user was notified with the conversation part.
      • getAssignedTo

        public java.util.Optional<Reference> getAssignedTo()
        Returns:
        The id of the admin that was assigned the conversation by this conversation_part (null if there has been no change in assignment.)
      • getAttachments

        public java.util.Optional<java.util.List<PartAttachment>> getAttachments()
        Returns:
        A list of attachments for the part.
      • getExternalId

        public java.util.Optional<java.lang.String> getExternalId()
        Returns:
        The external id of the conversation part
      • getRedacted

        public java.util.Optional<java.lang.Boolean> getRedacted()
        Returns:
        Whether or not the conversation part has been redacted.
      • getEmailMessageMetadata

        public java.util.Optional<EmailMessageMetadata> getEmailMessageMetadata()
      • getState

        public java.util.Optional<ConversationPart.State> getState()
        Returns:
        Indicates the current state of conversation when the conversation part was created.
      • getTags

        public java.util.Optional<java.util.List<TagBasic>> getTags()
        Returns:
        A list of tags objects associated with the conversation part.
      • getEventDetails

        public java.util.Optional<EventDetails> getEventDetails()
      • getAppPackageCode

        public java.util.Optional<java.lang.String> getAppPackageCode()
        Returns:
        The app package code if this part was created via API. null if the part was not created via API.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object