Class Participant
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.Participant
-
public class Participant extends java.lang.ObjectParticipant
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_CLIENT_ASSOCIATIONSstatic java.lang.StringJSON_PROPERTY_IDstatic java.lang.StringJSON_PROPERTY_LAST_READstatic java.lang.StringJSON_PROPERTY_UNREAD_COUNTstatic java.lang.StringJSON_PROPERTY_USER_EXTERNAL_IDstatic java.lang.StringJSON_PROPERTY_USER_ID
-
Constructor Summary
Constructors Constructor Description Participant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParticipantaddClientAssociationsItem(ClientAssociation clientAssociationsItem)ParticipantclientAssociations(java.util.List<ClientAssociation> clientAssociations)booleanequals(java.lang.Object o)java.util.List<ClientAssociation>getClientAssociations()Represents the clients that are active in the conversation for a particular user.java.lang.StringgetId()The unique ID of the participant.java.lang.StringgetLastRead()A datetime string with the format YYYY-MM-DDThh:mm:ss.SSSZ representing the latest message the user has read.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>getLastRead_JsonNullable()java.lang.IntegergetUnreadCount()Number of messages the user has not yet read.java.lang.StringgetUserExternalId()The externalId of the associated user.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>getUserExternalId_JsonNullable()java.lang.StringgetUserId()The id of the associated user.inthashCode()Participantid(java.lang.String id)ParticipantlastRead(java.lang.String lastRead)voidsetClientAssociations(java.util.List<ClientAssociation> clientAssociations)voidsetId(java.lang.String id)voidsetLastRead(java.lang.String lastRead)voidsetLastRead_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> lastRead)voidsetUnreadCount(java.lang.Integer unreadCount)voidsetUserExternalId(java.lang.String userExternalId)voidsetUserExternalId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> userExternalId)voidsetUserId(java.lang.String userId)java.lang.StringtoString()ParticipantunreadCount(java.lang.Integer unreadCount)ParticipantuserExternalId(java.lang.String userExternalId)ParticipantuserId(java.lang.String userId)
-
-
-
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
-
-
Method Detail
-
id
public Participant id(java.lang.String id)
-
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)
-
clientAssociations
public Participant clientAssociations(java.util.List<ClientAssociation> clientAssociations)
-
addClientAssociationsItem
public Participant addClientAssociationsItem(ClientAssociation clientAssociationsItem)
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-