zoukankan      html  css  js  c++  java
  • BotFramework学习-02

    1、请求的Message格式

    {
      "type": "Message",
      "id": "fd89606f8014453ca5587e2961b7a72c",
      "conversationId": "8a684db8",
      "created": "2016-04-25T05:00:25.5292748Z",
      "language": "en",
      "text": "谔谔",
      "attachments": [],
      "from": {
        "name": "User1",
        "channelId": "emulator",
        "address": "User1",
        "id": "2c1c7fa3",
        "isBot": false
      },
      "to": {
        "name": "YourAppId",
        "channelId": "emulator",
        "address": "YourAppId",
        "id": "YourAppId",
        "isBot": true
      },
      "participants": [
        {
          "name": "User1",
          "channelId": "emulator",
          "address": "User1",
          "id": "2c1c7fa3",
          "isBot": false
        },
        {
          "name": "YourAppId",
          "channelId": "emulator",
          "address": "YourAppId",
          "id": "YourAppId",
          "isBot": true
        }
      ],
      "totalParticipants": 2,
      "mentions": [],
      "channelMessageId": "f8f664370cef47ce821bfce9e90a13a5",
      "channelConversationId": "Conv1",
      "hashtags": []
    }
    View Code

    2、ReplyMessage格式:

    {
      "conversationId": "8a684db8",
      "language": "en",
      "text": "You sent 2 characters",
      "from": {
        "name": "YourAppId",
        "channelId": "emulator",
        "address": "YourAppId",
        "isBot": true
      },
      "to": {
        "name": "User1",
        "channelId": "emulator",
        "address": "User1",
        "isBot": false
      },
      "replyToMessageId": "fd89606f8014453ca5587e2961b7a72c",
      "participants": [
        {
          "name": "User1",
          "channelId": "emulator",
          "address": "User1"
        },
        {
          "name": "YourAppId",
          "channelId": "emulator",
          "address": "YourAppId"
        }
      ],
      "totalParticipants": 2,
      "channelMessageId": "f8f664370cef47ce821bfce9e90a13a5",
      "channelConversationId": "Conv1"
    }
    View Code
  • 相关阅读:
    P3_C17:设计对象的原则
    【c++编程习惯】关于我自己
    淘宝退货业务 活动图
    UML绘图要点
    P2_C4-7:初始阶段
    P3_C8-11:细化阶段-基础迭代
    P3_C14-16:面向对象设计
    P3_C12-13:逻辑架构和包图
    P1_C1-3:系统分析与设计概要
    Chapter11 线程
  • 原文地址:https://www.cnblogs.com/vitas/p/5430552.html
Copyright © 2011-2022 走看看