public final class ConversationEvent
extends java.lang.Object
implements java.io.Serializable
ConversationEventType,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAvatarUrl()
Returns the avatar URL of the participant related to this event if this event type is
ConversationEventType.CONVERSATION_READ, ConversationEventType.TYPING_START
or ConversationEventType.TYPING_STOP. |
java.lang.String |
getConversationId()
Returns the ID of the parent conversation of this event.
|
java.util.Date |
getLastRead()
Returns the date of the last read message if this event type is
ConversationEventType.CONVERSATION_READ. |
java.lang.String |
getName()
Returns the name of the participant related to this event if this event type is
ConversationEventType.CONVERSATION_READ, ConversationEventType.TYPING_START
or ConversationEventType.TYPING_STOP. |
java.lang.String |
getRole()
Returns the role of the participant related to this event (typically "appUser" or "business") if this
event type is
ConversationEventType.CONVERSATION_READ, ConversationEventType.TYPING_START
or ConversationEventType.TYPING_STOP. |
ConversationEventType |
getType()
The type of event that is being triggered.
|
java.lang.String |
getUserId()
Always available for
ConversationEventType.PARTICIPANT_ADDED and
ConversationEventType.PARTICIPANT_REMOVED. |
public java.lang.String getConversationId()
public ConversationEventType getType()
ConversationEventType for possible typespublic java.lang.String getUserId()
ConversationEventType.PARTICIPANT_ADDED and
ConversationEventType.PARTICIPANT_REMOVED.
Available for ConversationEventType.CONVERSATION_READ, ConversationEventType.TYPING_START
and ConversationEventType.TYPING_STOP if they were triggered by another app user.
public java.lang.String getRole()
ConversationEventType.CONVERSATION_READ, ConversationEventType.TYPING_START
or ConversationEventType.TYPING_STOP.public java.lang.String getName()
ConversationEventType.CONVERSATION_READ, ConversationEventType.TYPING_START
or ConversationEventType.TYPING_STOP.public java.lang.String getAvatarUrl()
ConversationEventType.CONVERSATION_READ, ConversationEventType.TYPING_START
or ConversationEventType.TYPING_STOP.public java.util.Date getLastRead()
ConversationEventType.CONVERSATION_READ.