Class ClientRemoveEventAllOfPayload


  • public class ClientRemoveEventAllOfPayload
    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_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
      • JSON_PROPERTY_ERROR

        public static final java.lang.String JSON_PROPERTY_ERROR
        See Also:
        Constant Field Values
      • JSON_PROPERTY_SOURCE

        public static final java.lang.String JSON_PROPERTY_SOURCE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ClientRemoveEventAllOfPayload

        public ClientRemoveEventAllOfPayload()
    • Method Detail

      • getConversation

        @Nullable
        public ConversationTruncated getConversation()
        The conversation associated with the removal of the client. This field is only present when the reason is `theft`, `linkCancelled` or `linkFailed`. Note that for the `theft` reason, the conversation will not be present if it has been deleted.
        Returns:
        conversation
      • getConversation_JsonNullable

        public org.openapitools.jackson.nullable.JsonNullable<ConversationTruncated> getConversation_JsonNullable()
      • setConversation_JsonNullable

        public void setConversation_JsonNullable​(org.openapitools.jackson.nullable.JsonNullable<ConversationTruncated> conversation)
      • getUser

        @Nullable
        public UserTruncated getUser()
        The user associated with the client.
        Returns:
        user
      • getClient

        @Nullable
        public Client getClient()
        The removed client.
        Returns:
        client
      • setClient

        public void setClient​(Client client)
      • getReason

        @Nullable
        public ClientRemoveEventAllOfPayload.ReasonEnum getReason()
        The reason for which the client was removed. * `api` - The client was removed using the API. * `linkCancelled` - The user cancelled a channel link. * `linkFailed` - The client was removed after a channel link attempt failed. * `sdk` - The client was removed using the SDK. * `theft` - The client was transferred to another user due to a channel link.
        Returns:
        reason
      • getError

        @Nullable
        public java.lang.Object getError()
        Object containing details of what went wrong. This field will only be present when the reason is `linkCancelled` or `linkFailed`.
        Returns:
        error
      • getError_JsonNullable

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> getError_JsonNullable()
      • setError_JsonNullable

        public void setError_JsonNullable​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> error)
      • setError

        public void setError​(java.lang.Object error)
      • getSource

        @Nullable
        public SourceWebhook getSource()
        The source where this event originated from. This could be the API or an SDK device.
        Returns:
        source
      • 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