Class ConversationCreateEventAllOfPayload


  • public class ConversationCreateEventAllOfPayload
    extends java.lang.Object
    The payload of the event. The contents of this object depend on the type of event.
    • 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
    • Constructor Detail

      • ConversationCreateEventAllOfPayload

        public ConversationCreateEventAllOfPayload()
    • Method Detail

      • getConversation

        @Nullable
        public ConversationTruncated getConversation()
        The conversation that was created.
        Returns:
        conversation
      • 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
      • 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)
      • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object