Class ClientUpdateEventAllOfPayload
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.ClientUpdateEventAllOfPayload
-
public class ClientUpdateEventAllOfPayload extends java.lang.ObjectThe payload of the event. The contents of this object depend on the type of event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientUpdateEventAllOfPayload.ReasonEnumThe reason for which the client was updated.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_CLIENTstatic java.lang.StringJSON_PROPERTY_CONVERSATIONstatic java.lang.StringJSON_PROPERTY_REASONstatic java.lang.StringJSON_PROPERTY_USER
-
Constructor Summary
Constructors Constructor Description ClientUpdateEventAllOfPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientUpdateEventAllOfPayloadclient(Client client)ClientUpdateEventAllOfPayloadconversation(ConversationTruncated conversation)booleanequals(java.lang.Object o)ClientgetClient()The updated client.ConversationTruncatedgetConversation()The conversation which triggered a change in the client.ClientUpdateEventAllOfPayload.ReasonEnumgetReason()The reason for which the client was updated.UserTruncatedgetUser()The user associated with the client.inthashCode()ClientUpdateEventAllOfPayloadreason(ClientUpdateEventAllOfPayload.ReasonEnum reason)voidsetClient(Client client)voidsetConversation(ConversationTruncated conversation)voidsetReason(ClientUpdateEventAllOfPayload.ReasonEnum reason)voidsetUser(UserTruncated user)java.lang.StringtoString()ClientUpdateEventAllOfPayloaduser(UserTruncated user)
-
-
-
Field Detail
-
JSON_PROPERTY_CONVERSATION
public static final java.lang.String JSON_PROPERTY_CONVERSATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USER
public static final java.lang.String JSON_PROPERTY_USER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CLIENT
public static final java.lang.String JSON_PROPERTY_CLIENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASON
public static final java.lang.String JSON_PROPERTY_REASON
- See Also:
- Constant Field Values
-
-
Method Detail
-
conversation
public ClientUpdateEventAllOfPayload conversation(ConversationTruncated conversation)
-
getConversation
@Nullable public ConversationTruncated getConversation()
The conversation which triggered a change in the client.- Returns:
- conversation
-
setConversation
public void setConversation(ConversationTruncated conversation)
-
user
public ClientUpdateEventAllOfPayload user(UserTruncated user)
-
getUser
@Nullable public UserTruncated getUser()
The user associated with the client.- Returns:
- user
-
setUser
public void setUser(UserTruncated user)
-
client
public ClientUpdateEventAllOfPayload client(Client client)
-
getClient
@Nullable public Client getClient()
The updated client.- Returns:
- client
-
setClient
public void setClient(Client client)
-
reason
public ClientUpdateEventAllOfPayload reason(ClientUpdateEventAllOfPayload.ReasonEnum reason)
-
getReason
@Nullable public ClientUpdateEventAllOfPayload.ReasonEnum getReason()
The reason for which the client was updated. * `confirmed` - The client is now active and ready to use. * `blocked` - The user has unsubscribed from the conversation. * `unblocked` - A previously unsubscribed user resubscribed to the conversation. * `matched` - The channel found a user that matches the information provided.- Returns:
- reason
-
setReason
public void setReason(ClientUpdateEventAllOfPayload.ReasonEnum reason)
-
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
-
-