Class MetaAppWebhooks.Receive

java.lang.Object
com.bytedesk.social.meta.MetaAppWebhooks.Receive
Enclosing class:
MetaAppWebhooks

public class MetaAppWebhooks.Receive extends Object
消息接收处理类
  • Constructor Details

    • Receive

      public Receive()
  • Method Details

    • handlePrivateReply

      public void handlePrivateReply(String type, String id)
    • handleMessage

      public Object handleMessage(MetaAppWebhooks.User user, com.fasterxml.jackson.databind.JsonNode webhookEvent, boolean isUserRef)
    • handleMessageEvent

      private Object handleMessageEvent(MetaAppWebhooks.User user, com.fasterxml.jackson.databind.JsonNode webhookEvent)
    • handleQuickReply

      private Object handleQuickReply(MetaAppWebhooks.User user, com.fasterxml.jackson.databind.JsonNode quickReply)
    • handleAttachmentMessage

      private Object handleAttachmentMessage(MetaAppWebhooks.User user, com.fasterxml.jackson.databind.JsonNode webhookEvent)
    • handleTextMessage

      private Object handleTextMessage(MetaAppWebhooks.User user, com.fasterxml.jackson.databind.JsonNode webhookEvent, String text)
    • handleCommand

      private void handleCommand(String text, String pageId, String recipientId, String pageAccessToken)
      处理特定命令
      Parameters:
      text - 命令文本
      pageId - 页面ID
      recipientId - 接收者ID
      pageAccessToken - 页面访问令牌
    • setMetaMessageDemoParams

      private void setMetaMessageDemoParams(String pageId, String recipientId, String pageAccessToken)
      设置MetaMessageDemo的参数
      Parameters:
      pageId - 页面ID
      recipientId - 接收者ID
      pageAccessToken - 页面访问令牌
    • handlePostback

      private Object handlePostback(MetaAppWebhooks.User user, com.fasterxml.jackson.databind.JsonNode webhookEvent)
    • handleReferral

      private Object handleReferral(MetaAppWebhooks.User user, com.fasterxml.jackson.databind.JsonNode webhookEvent)
    • handleUserRefEvent

      private Object handleUserRefEvent(MetaAppWebhooks.User user, com.fasterxml.jackson.databind.JsonNode webhookEvent)