Interface ChannelEvent
- All Superinterfaces:
ConversationSinchEvent
This callback is used to deliver notifications regarding channel-specific information and
updates. For example, if your are using the WhatsApp channel of the Conversation API, and your
quality rating has been changed to GREEN, a POST would be made to the CHANNEL_EVENT webhook.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelEvent.Builderbuilder()Getting builderTimestamp marking when the channel callback was accepted/received by the Conversation API.getAppId()Id of the subscribed app.The value provided in field correlation_id of a send message request.Timestamp of the event as provided by the underlying channels.Context-dependent metadata.Get notificationThe project ID of the app which has subscribed for the callback.
-
Method Details
-
getAppId
String getAppId()Id of the subscribed app.Field is required
- Specified by:
getAppIdin interfaceConversationSinchEvent- Returns:
- appId
-
getAcceptedTime
Instant getAcceptedTime()Timestamp marking when the channel callback was accepted/received by the Conversation API.- Specified by:
getAcceptedTimein interfaceConversationSinchEvent- Returns:
- acceptedTime
-
getEventTime
Instant getEventTime()Timestamp of the event as provided by the underlying channels.- Specified by:
getEventTimein interfaceConversationSinchEvent- Returns:
- eventTime
-
getProjectId
String getProjectId()The project ID of the app which has subscribed for the callback.Field is required
- Specified by:
getProjectIdin interfaceConversationSinchEvent- Returns:
- projectId
-
getMessageMetadata
String getMessageMetadata()Context-dependent metadata. Refer to specific callback's documentation for exact information provided.- Specified by:
getMessageMetadatain interfaceConversationSinchEvent- Returns:
- messageMetadata
-
getCorrelationId
String getCorrelationId()The value provided in field correlation_id of a send message request.- Specified by:
getCorrelationIdin interfaceConversationSinchEvent- Returns:
- correlationId
-
getNotification
ChannelEventNotification getNotification()Get notification- Returns:
- notification
-
builder
Getting builder- Returns:
- New Builder instance
-