Class Participant


  • public class Participant
    extends java.lang.Object
    Participant
    • Field Detail

      • JSON_PROPERTY_ID

        public static final java.lang.String JSON_PROPERTY_ID
        See Also:
        Constant Field Values
      • JSON_PROPERTY_USER_ID

        public static final java.lang.String JSON_PROPERTY_USER_ID
        See Also:
        Constant Field Values
      • JSON_PROPERTY_UNREAD_COUNT

        public static final java.lang.String JSON_PROPERTY_UNREAD_COUNT
        See Also:
        Constant Field Values
      • JSON_PROPERTY_CLIENT_ASSOCIATIONS

        public static final java.lang.String JSON_PROPERTY_CLIENT_ASSOCIATIONS
        See Also:
        Constant Field Values
      • JSON_PROPERTY_USER_EXTERNAL_ID

        public static final java.lang.String JSON_PROPERTY_USER_EXTERNAL_ID
        See Also:
        Constant Field Values
      • JSON_PROPERTY_LAST_READ

        public static final java.lang.String JSON_PROPERTY_LAST_READ
        See Also:
        Constant Field Values
    • Constructor Detail

      • Participant

        public Participant()
    • Method Detail

      • getId

        @Nullable
        public java.lang.String getId()
        The unique ID of the participant.
        Returns:
        id
      • setId

        public void setId​(java.lang.String id)
      • userId

        public Participant userId​(java.lang.String userId)
      • getUserId

        @Nullable
        public java.lang.String getUserId()
        The id of the associated user.
        Returns:
        userId
      • setUserId

        public void setUserId​(java.lang.String userId)
      • unreadCount

        public Participant unreadCount​(java.lang.Integer unreadCount)
      • getUnreadCount

        @Nullable
        public java.lang.Integer getUnreadCount()
        Number of messages the user has not yet read.
        Returns:
        unreadCount
      • setUnreadCount

        public void setUnreadCount​(java.lang.Integer unreadCount)
      • getClientAssociations

        @Nullable
        public java.util.List<ClientAssociation> getClientAssociations()
        Represents the clients that are active in the conversation for a particular user. A participant can have multiple clientAssociations in the case of channel transfer, business initiated conversations, or identified users. The order of the array indicates how recently a client has interacted with the conversation, with the most recent client first. The first item in the array is considered to be the user's primary client for that conversation, and will be selected first for message delivery.
        Returns:
        clientAssociations
      • setClientAssociations

        public void setClientAssociations​(java.util.List<ClientAssociation> clientAssociations)
      • userExternalId

        public Participant userExternalId​(java.lang.String userExternalId)
      • getUserExternalId

        @Nullable
        public java.lang.String getUserExternalId()
        The externalId of the associated user.
        Returns:
        userExternalId
      • getUserExternalId_JsonNullable

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getUserExternalId_JsonNullable()
      • setUserExternalId_JsonNullable

        public void setUserExternalId_JsonNullable​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> userExternalId)
      • setUserExternalId

        public void setUserExternalId​(java.lang.String userExternalId)
      • lastRead

        public Participant lastRead​(java.lang.String lastRead)
      • getLastRead

        @Nullable
        public java.lang.String getLastRead()
        A datetime string with the format YYYY-MM-DDThh:mm:ss.SSSZ representing the latest message the user has read.
        Returns:
        lastRead
      • getLastRead_JsonNullable

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getLastRead_JsonNullable()
      • setLastRead_JsonNullable

        public void setLastRead_JsonNullable​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> lastRead)
      • setLastRead

        public void setLastRead​(java.lang.String lastRead)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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