public class WhatsAppContactVerificationResponseEventHandler extends Object implements WhatsAppInboundEventHandler
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected org.flowable.engine.RuntimeService |
runtimeService |
static String |
VERIFICATION_CONTACT_ERROR_PARAMETER |
static String |
VERIFICATION_CONTACT_ERRORS_PARAMETER |
static String |
VERIFICATION_CONTACT_PARAMETER |
static String |
VERIFICATION_CONTACTS_PARAMETER |
Constructor and Description |
---|
WhatsAppContactVerificationResponseEventHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
org.flowable.engine.RuntimeService runtimeService) |
Modifier and Type | Method and Description |
---|---|
protected void |
bpmnVerificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse) |
protected com.fasterxml.jackson.databind.JsonNode |
createContactsVariable(Collection<WhatsAppContactVerificationResponse.ContactDto> contacts) |
protected com.fasterxml.jackson.databind.JsonNode |
createContactVariable(WhatsAppContactVerificationResponse.ContactDto contact) |
protected com.fasterxml.jackson.databind.JsonNode |
createErrorsVariable(Collection<InboundStatusDto.ErrorDto> errors) |
protected com.fasterxml.jackson.databind.JsonNode |
createErrorVariable(InboundStatusDto.ErrorDto error) |
protected Map<String,Object> |
extractVariables(WhatsAppContactVerificationResponse verificationResponse) |
String |
getType()
The type of the event that this handler handles.
|
void |
process(com.fasterxml.jackson.databind.JsonNode eventPayload)
Process the event payload.
|
protected void |
unsupportedVerificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse) |
protected void |
verificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse) |
public static final String VERIFICATION_CONTACT_PARAMETER
public static final String VERIFICATION_CONTACTS_PARAMETER
public static final String VERIFICATION_CONTACT_ERROR_PARAMETER
public static final String VERIFICATION_CONTACT_ERRORS_PARAMETER
protected final org.slf4j.Logger logger
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected final org.flowable.engine.RuntimeService runtimeService
public WhatsAppContactVerificationResponseEventHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.flowable.engine.RuntimeService runtimeService)
public String getType()
WhatsAppInboundEventHandler
getType
in interface WhatsAppInboundEventHandler
public void process(com.fasterxml.jackson.databind.JsonNode eventPayload)
WhatsAppInboundEventHandler
process
in interface WhatsAppInboundEventHandler
eventPayload
- the payload of the eventprotected void verificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse)
protected void bpmnVerificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse)
protected void unsupportedVerificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse)
protected Map<String,Object> extractVariables(WhatsAppContactVerificationResponse verificationResponse)
protected com.fasterxml.jackson.databind.JsonNode createContactVariable(WhatsAppContactVerificationResponse.ContactDto contact)
protected com.fasterxml.jackson.databind.JsonNode createContactsVariable(Collection<WhatsAppContactVerificationResponse.ContactDto> contacts)
protected com.fasterxml.jackson.databind.JsonNode createErrorVariable(InboundStatusDto.ErrorDto error)
protected com.fasterxml.jackson.databind.JsonNode createErrorsVariable(Collection<InboundStatusDto.ErrorDto> errors)
Copyright © 2019. All rights reserved.