Class ConversationReferralEventAllOfPayload
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.ConversationReferralEventAllOfPayload
-
public class ConversationReferralEventAllOfPayload 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_REFERRALstatic java.lang.StringJSON_PROPERTY_SOURCEstatic java.lang.StringJSON_PROPERTY_USER
-
Constructor Summary
Constructors Constructor Description ConversationReferralEventAllOfPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationReferralEventAllOfPayloadconversation(ConversationTruncated conversation)booleanequals(java.lang.Object o)ConversationTruncatedgetConversation()The conversation a user lands in after being referred.ReferralgetReferral()Get referralSourceWithCampaignWebhookgetSource()The source of the referral.UsergetUser()The user associated with the conversation.inthashCode()ConversationReferralEventAllOfPayloadreferral(Referral referral)voidsetConversation(ConversationTruncated conversation)voidsetReferral(Referral referral)voidsetSource(SourceWithCampaignWebhook source)voidsetUser(User user)ConversationReferralEventAllOfPayloadsource(SourceWithCampaignWebhook source)java.lang.StringtoString()ConversationReferralEventAllOfPayloaduser(User 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_SOURCE
public static final java.lang.String JSON_PROPERTY_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERRAL
public static final java.lang.String JSON_PROPERTY_REFERRAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
conversation
public ConversationReferralEventAllOfPayload conversation(ConversationTruncated conversation)
-
getConversation
@Nullable public ConversationTruncated getConversation()
The conversation a user lands in after being referred. See the <a href=\"https://docs.smooch.io/guide/conversation-referrals/\">conversation referrals</a> guide for more details.- Returns:
- conversation
-
setConversation
public void setConversation(ConversationTruncated conversation)
-
user
public ConversationReferralEventAllOfPayload user(User user)
-
getUser
@Nullable public User getUser()
The user associated with the conversation.- Returns:
- user
-
setUser
public void setUser(User user)
-
source
public ConversationReferralEventAllOfPayload source(SourceWithCampaignWebhook source)
-
getSource
@Nullable public SourceWithCampaignWebhook getSource()
The source of the referral.- Returns:
- source
-
setSource
public void setSource(SourceWithCampaignWebhook source)
-
referral
public ConversationReferralEventAllOfPayload referral(Referral referral)
-
getReferral
@Nullable public Referral getReferral()
Get referral- Returns:
- referral
-
setReferral
public void setReferral(Referral referral)
-
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
-
-