Class ConversationPostbackEventAllOfPayload
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.ConversationPostbackEventAllOfPayload
-
public class ConversationPostbackEventAllOfPayload extends java.lang.ObjectThe payload of the event. The contents of this object depend on the type of event.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_CONVERSATIONstatic java.lang.StringJSON_PROPERTY_POSTBACKstatic java.lang.StringJSON_PROPERTY_SOURCEstatic java.lang.StringJSON_PROPERTY_USER
-
Constructor Summary
Constructors Constructor Description ConversationPostbackEventAllOfPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationPostbackEventAllOfPayloadconversation(ConversationTruncated conversation)booleanequals(java.lang.Object o)ConversationTruncatedgetConversation()The conversation linked to the postback.PostbackWebhookgetPostback()The postback associated with the event.SourceWithCampaignWebhookgetSource()The source of the postback.UsergetUser()The user that triggered the postback.inthashCode()ConversationPostbackEventAllOfPayloadpostback(PostbackWebhook postback)voidsetConversation(ConversationTruncated conversation)voidsetPostback(PostbackWebhook postback)voidsetSource(SourceWithCampaignWebhook source)voidsetUser(User user)ConversationPostbackEventAllOfPayloadsource(SourceWithCampaignWebhook source)java.lang.StringtoString()ConversationPostbackEventAllOfPayloaduser(User user)
-
-
-
Field Detail
-
JSON_PROPERTY_POSTBACK
public static final java.lang.String JSON_PROPERTY_POSTBACK
- See Also:
- Constant Field Values
-
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_SOURCE
public static final java.lang.String JSON_PROPERTY_SOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
postback
public ConversationPostbackEventAllOfPayload postback(PostbackWebhook postback)
-
getPostback
@Nullable public PostbackWebhook getPostback()
The postback associated with the event.- Returns:
- postback
-
setPostback
public void setPostback(PostbackWebhook postback)
-
conversation
public ConversationPostbackEventAllOfPayload conversation(ConversationTruncated conversation)
-
getConversation
@Nullable public ConversationTruncated getConversation()
The conversation linked to the postback.- Returns:
- conversation
-
setConversation
public void setConversation(ConversationTruncated conversation)
-
user
public ConversationPostbackEventAllOfPayload user(User user)
-
getUser
@Nullable public User getUser()
The user that triggered the postback.- Returns:
- user
-
setUser
public void setUser(User user)
-
source
public ConversationPostbackEventAllOfPayload source(SourceWithCampaignWebhook source)
-
getSource
@Nullable public SourceWithCampaignWebhook getSource()
The source of the postback.- Returns:
- source
-
setSource
public void setSource(SourceWithCampaignWebhook source)
-
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
-
-