Interface Event
public interface Event
Event
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Dedicated Builderstatic class
The direction of the event. -
Method Summary
Modifier and TypeMethodDescriptionstatic Event.Builder
builder()
Getting builderTimestamp marking when the channel callback was received by the Conversation API.Get channelIdentityGet contactEventThe ID of the contact.Get contactMessageEventThe ID of the conversation this event is part of.The direction of the event.getId()
The event ID.Get processingMode
-
Method Details
-
getId
String getId()The event ID.- Returns:
- id
-
getDirection
Event.DirectionEnum getDirection()The direction of the event. It's always TO_APP for contact events.- Returns:
- direction
-
getContactEvent
ContactEvent getContactEvent()Get contactEvent- Returns:
- contactEvent
-
getContactMessageEvent
ContactMessageEvent getContactMessageEvent()Get contactMessageEvent- Returns:
- contactMessageEvent
-
getChannelIdentity
ChannelIdentity getChannelIdentity()Get channelIdentity- Returns:
- channelIdentity
-
getContactId
String getContactId()The ID of the contact. Will be empty if processing_mode is DISPATCH.- Returns:
- contactId
-
getConversationId
String getConversationId()The ID of the conversation this event is part of. Will be empty if processing_mode is DISPATCH.- Returns:
- conversationId
-
getAcceptTime
Instant getAcceptTime()Timestamp marking when the channel callback was received by the Conversation API.- Returns:
- acceptTime
-
getProcessingMode
ProcessingMode getProcessingMode()Get processingMode- Returns:
- processingMode
-
builder
Getting builder- Returns:
- New Builder instance
-