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 Details

  • Constructor Details

  • Method Details

    • tag

      public B tag(Tag tag)
      (OPTIONAL, but REQUIRED if Category is Category.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

      public B category(Category 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.