Class ConversationCreateEventAllOfPayload
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.ConversationCreateEventAllOfPayload
-
public class ConversationCreateEventAllOfPayload 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 classConversationCreateEventAllOfPayload.CreationReasonEnumThe reason why the conversation was created, if applicable.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_CONVERSATIONstatic java.lang.StringJSON_PROPERTY_CREATION_REASONstatic java.lang.StringJSON_PROPERTY_REFERRALstatic java.lang.StringJSON_PROPERTY_SOURCEstatic java.lang.StringJSON_PROPERTY_USER
-
Constructor Summary
Constructors Constructor Description ConversationCreateEventAllOfPayload()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_CONVERSATION
public static final java.lang.String JSON_PROPERTY_CONVERSATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATION_REASON
public static final java.lang.String JSON_PROPERTY_CREATION_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCE
public static final java.lang.String JSON_PROPERTY_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USER
public static final java.lang.String JSON_PROPERTY_USER
- 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 ConversationCreateEventAllOfPayload conversation(ConversationTruncated conversation)
-
getConversation
@Nullable public ConversationTruncated getConversation()
The conversation that was created.- Returns:
- conversation
-
setConversation
public void setConversation(ConversationTruncated conversation)
-
creationReason
public ConversationCreateEventAllOfPayload creationReason(ConversationCreateEventAllOfPayload.CreationReasonEnum creationReason)
-
getCreationReason
@Nullable public ConversationCreateEventAllOfPayload.CreationReasonEnum getCreationReason()
The reason why the conversation was created, if applicable. * `linkRequest` - The conversation was created in order to generate a link request to transfer the user to a different channel. * `message` - The conversation was created because a message was sent. * `none` - The conversation was not created for a specific purpose. Used primarily when a conversation is created via the Create Conversation API. * `notification` - The conversation was created by a call to the Notification API. * `prechatCapture` - The conversation was created because the user completed a prechat capture form in the Web Messenger. * `startConversation` - The conversation was created because of a call to the startConversation API on one of the SDK integrations, or a start conversation event was triggered from a messaging channel. * `proactiveMessaging` - The conversation was created because the user interacted with a campaign.- Returns:
- creationReason
-
setCreationReason
public void setCreationReason(ConversationCreateEventAllOfPayload.CreationReasonEnum creationReason)
-
source
public ConversationCreateEventAllOfPayload source(SourceWithCampaignWebhook source)
-
getSource
@Nullable public SourceWithCampaignWebhook getSource()
The source of the creation.- Returns:
- source
-
setSource
public void setSource(SourceWithCampaignWebhook source)
-
user
public ConversationCreateEventAllOfPayload user(User user)
-
getUser
@Nullable public User getUser()
The user associated with the conversation. Only present if the created conversation was of type personal. For sdkGroup conversations, the list of participants can be fetched using the List Participants API, if required.- Returns:
- user
-
getUser_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<User> getUser_JsonNullable()
-
setUser_JsonNullable
public void setUser_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<User> user)
-
setUser
public void setUser(User user)
-
referral
public ConversationCreateEventAllOfPayload referral(Referral referral)
-
getReferral
@Nullable public Referral getReferral()
Referral information, if applicable.- Returns:
- referral
-
getReferral_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<Referral> getReferral_JsonNullable()
-
setReferral_JsonNullable
public void setReferral_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Referral> 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
-
-