/
BotResponse.cs
93 lines (69 loc) · 2.38 KB
/
BotResponse.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace ChatBot.Clients.Models
{
public partial class Activity
{
[JsonProperty("attachments")]
public List<object> Attachments { get; set; }
[JsonProperty("channelId")]
public string ChannelId { get; set; }
[JsonProperty("conversation")]
public ConversationId ConversationId { get; set; }
[JsonProperty("entities")]
public List<object> Entities { get; set; }
[JsonProperty("from")]
public User From { get; set; }
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("membersAdded")]
public List<object> MembersAdded { get; set; }
[JsonProperty("membersRemoved")]
public List<object> MembersRemoved { get; set; }
[JsonProperty("reactionsAdded")]
public List<object> ReactionsAdded { get; set; }
[JsonProperty("reactionsRemoved")]
public List<object> ReactionsRemoved { get; set; }
[JsonProperty("replyToId")]
public string ReplyToId { get; set; }
[JsonProperty("text")]
public string Text { get; set; }
[JsonProperty("timestamp")]
public System.DateTimeOffset Timestamp { get; set; }
[JsonProperty("type")]
public string Type { get; set; }
}
public partial class BotMessage
{
[JsonProperty("activities")]
public List<Activity> Activities { get; set; }
[JsonProperty("watermark")]
public string Watermark { get; set; }
}
public class Conversation
{
[JsonProperty(PropertyName = "conversationId")]
public string ConversationId { get; set; }
[JsonProperty(PropertyName = "created")]
public DateTime Created { get; set; }
[JsonProperty(PropertyName = "expires_in")]
public int ExpiresIn { get; set; }
[JsonProperty(PropertyName = "streamUrl")]
public string StreamUrl { get; set; }
[JsonProperty(PropertyName = "token")]
public string Token { get; set; }
}
public partial class ConversationId
{
[JsonProperty("id")]
public string Id { get; set; }
}
public partial class User
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
}
}