Class ConversationMessageEventAllOfPayload
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.ConversationMessageEventAllOfPayload
-
public class ConversationMessageEventAllOfPayload 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_MESSAGEstatic java.lang.StringJSON_PROPERTY_RECENT_NOTIFICATIONS
-
Constructor Summary
Constructors Constructor Description ConversationMessageEventAllOfPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationMessageEventAllOfPayloadaddRecentNotificationsItem(MessageWebhook recentNotificationsItem)ConversationMessageEventAllOfPayloadconversation(ConversationTruncated conversation)booleanequals(java.lang.Object o)ConversationTruncatedgetConversation()The conversation in which the message was sent.MessageWebhookgetMessage()The message that was sent.java.util.List<MessageWebhook>getRecentNotifications()Messages sent with the Notification API since the last user message.inthashCode()ConversationMessageEventAllOfPayloadmessage(MessageWebhook message)ConversationMessageEventAllOfPayloadrecentNotifications(java.util.List<MessageWebhook> recentNotifications)voidsetConversation(ConversationTruncated conversation)voidsetMessage(MessageWebhook message)voidsetRecentNotifications(java.util.List<MessageWebhook> recentNotifications)java.lang.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CONVERSATION
public static final java.lang.String JSON_PROPERTY_CONVERSATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MESSAGE
public static final java.lang.String JSON_PROPERTY_MESSAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECENT_NOTIFICATIONS
public static final java.lang.String JSON_PROPERTY_RECENT_NOTIFICATIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
conversation
public ConversationMessageEventAllOfPayload conversation(ConversationTruncated conversation)
-
getConversation
@Nullable public ConversationTruncated getConversation()
The conversation in which the message was sent.- Returns:
- conversation
-
setConversation
public void setConversation(ConversationTruncated conversation)
-
message
public ConversationMessageEventAllOfPayload message(MessageWebhook message)
-
getMessage
@Nullable public MessageWebhook getMessage()
The message that was sent.- Returns:
- message
-
setMessage
public void setMessage(MessageWebhook message)
-
recentNotifications
public ConversationMessageEventAllOfPayload recentNotifications(java.util.List<MessageWebhook> recentNotifications)
-
addRecentNotificationsItem
public ConversationMessageEventAllOfPayload addRecentNotificationsItem(MessageWebhook recentNotificationsItem)
-
getRecentNotifications
@Nullable public java.util.List<MessageWebhook> getRecentNotifications()
Messages sent with the Notification API since the last user message.- Returns:
- recentNotifications
-
setRecentNotifications
public void setRecentNotifications(java.util.List<MessageWebhook> recentNotifications)
-
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
-
-