-
Notifications
You must be signed in to change notification settings - Fork 0
/
MessageRequest.cs
97 lines (78 loc) · 2.58 KB
/
MessageRequest.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
94
95
96
97
namespace MessagesTensorFlow
{
public class MessageRequest
{
public To to { get; set; }
public From from { get; set; }
public Message message { get; set; }
public string client_ref { get; set; }
public class To
{
public string type { get; set; }
public string id { get; set; }
public string number { get; set; }
}
public class From
{
public string type { get; set; }
public string id { get; set; }
public string number { get; set; }
}
public class Message
{
public Content content { get; set; }
public ViberServiceMsg viber_service_msg { get; set; }
public Messenger messenger { get; set; }
public Whatsapp whatsapp { get; set; }
public class Content
{
public string type { get; set; }
public string text { get; set; }
public Image image { get; set; }
public Audio audio { get; set; }
public Video video { get; set; }
public File file { get; set; }
public Template template { get; set; }
public class Image
{
public string url { get; set; }
public string caption { get; set; }
}
public class Audio
{
public string url { get; set; }
}
public class Video
{
public string url { get; set; }
}
public class File
{
public string url { get; set; }
public string caption { get; set; }
}
public class Template
{
public string name { get; set; }
public object[] parameters { get; set; }
}
}
public class ViberServiceMsg
{
public string category { get; set; }
public uint ttl { get; set; }
public string type { get; set; }
}
public class Messenger
{
public string category { get; set; }
public string tag { get; set; }
}
public class Whatsapp
{
public string policy { get; set; }
public string locale { get; set; }
}
}
}
}