Class MessengerRequest.Builder<M extends MessengerRequest,B extends MessengerRequest.Builder<? extends M,? extends B>>
java.lang.Object
com.vonage.client.messages.MessageRequest.Builder<M,B>
com.vonage.client.messages.messenger.MessengerRequest.Builder<M,B>
- Direct Known Subclasses:
MessengerAudioRequest.Builder,MessengerFileRequest.Builder,MessengerImageRequest.Builder,MessengerTextRequest.Builder,MessengerVideoRequest.Builder
- Enclosing class:
MessengerRequest
protected abstract static class MessengerRequest.Builder<M extends MessengerRequest,B extends MessengerRequest.Builder<? extends M,? extends B>>
extends MessageRequest.Builder<M,B>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(OPTIONAL) The use of different category tags enables the business to send messages for different use cases.(OPTIONAL, but REQUIRED if Category isCategory.MESSAGE_TAG) A tag describing the type and relevance of the 1:1 communication between your app and the end user.Methods inherited from class com.vonage.client.messages.MessageRequest.Builder
build, caption, clientRef, custom, from, name, text, to, ttl, url, webhookUrl, webhookVersion
-
Field Details
-
tag
-
category
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
tag
(OPTIONAL, but REQUIRED if Category isCategory.MESSAGE_TAG) A tag describing the type and relevance of the 1:1 communication between your app and the end user.- Parameters:
tag- The tag.- Returns:
- This builder.
-
category
(OPTIONAL) The use of different category tags enables the business to send messages for different use cases. For Facebook Messenger they need to comply with their Messaging Types policy. Vonage maps our category to their messaging_type. If message_tag is used, then an additional tag for that type is mandatory. By default, Vonage sends the response category to Facebook Messenger.- Parameters:
category- The category.- Returns:
- This builder.
-