Activity.cs
1 // Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2 // Changes may cause incorrect behavior and will be lost if the code is
3 // regenerated.
4 
5 namespace Microsoft.Bot.Connector
6 {
7  using System;
8  using System.Linq;
9  using System.Collections.Generic;
10  using Newtonsoft.Json;
11  using Microsoft.Rest;
12  using Microsoft.Rest.Serialization;
13 
18  public partial class Activity
19  {
23  public Activity() { }
24 
28  public Activity(string type = default(string), string id = default(string), DateTime? timestamp = default(DateTime?), DateTime? localTimestamp = default(DateTime?), string serviceUrl = default(string), string channelId = default(string), ChannelAccount from = default(ChannelAccount), ConversationAccount conversation = default(ConversationAccount), ChannelAccount recipient = default(ChannelAccount), string textFormat = default(string), string attachmentLayout = default(string), IList<ChannelAccount> membersAdded = default(IList<ChannelAccount>), IList<ChannelAccount> membersRemoved = default(IList<ChannelAccount>), string topicName = default(string), bool? historyDisclosed = default(bool?), string locale = default(string), string text = default(string), string speak = default(string), string inputHint = default(string), string summary = default(string), SuggestedActions suggestedActions = default(SuggestedActions), IList<Attachment> attachments = default(IList<Attachment>), IList<Entity> entities = default(IList<Entity>), object channelData = default(object), string action = default(string), string replyToId = default(string), object value = default(object), string name = default(string), ConversationReference relatesTo = default(ConversationReference), string code = default(string))
29  {
30  Type = type;
31  Id = id;
32  Timestamp = timestamp;
33  LocalTimestamp = localTimestamp;
34  ServiceUrl = serviceUrl;
35  ChannelId = channelId;
36  From = from;
37  Conversation = conversation;
38  Recipient = recipient;
39  TextFormat = textFormat;
40  AttachmentLayout = attachmentLayout;
41  MembersAdded = membersAdded;
42  MembersRemoved = membersRemoved;
43  TopicName = topicName;
44  HistoryDisclosed = historyDisclosed;
45  Locale = locale;
46  Text = text;
47  Speak = speak;
48  InputHint = inputHint;
49  Summary = summary;
50  SuggestedActions = suggestedActions;
51  Attachments = attachments;
52  Entities = entities;
53  ChannelData = channelData;
54  Action = action;
55  ReplyToId = replyToId;
56  Value = value;
57  Name = name;
58  RelatesTo = relatesTo;
59  Code = code;
60  }
61 
66  [JsonProperty(PropertyName = "type")]
67  public string Type { get; set; }
68 
72  [JsonProperty(PropertyName = "id")]
73  public string Id { get; set; }
74 
78  [JsonProperty(PropertyName = "timestamp")]
79  public DateTime? Timestamp { get; set; }
80 
85  [JsonProperty(PropertyName = "localTimestamp")]
86  public DateTimeOffset? LocalTimestamp { get; set; }
87 
92  [JsonProperty(PropertyName = "serviceUrl")]
93  public string ServiceUrl { get; set; }
94 
98  [JsonProperty(PropertyName = "channelId")]
99  public string ChannelId { get; set; }
100 
104  [JsonProperty(PropertyName = "from")]
105  public ChannelAccount From { get; set; }
106 
110  [JsonProperty(PropertyName = "conversation")]
111  public ConversationAccount Conversation { get; set; }
112 
116  [JsonProperty(PropertyName = "recipient")]
117  public ChannelAccount Recipient { get; set; }
118 
122  [JsonProperty(PropertyName = "textFormat")]
123  public string TextFormat { get; set; }
124 
129  [JsonProperty(PropertyName = "attachmentLayout")]
130  public string AttachmentLayout { get; set; }
131 
135  [JsonProperty(PropertyName = "membersAdded")]
136  public IList<ChannelAccount> MembersAdded { get; set; }
137 
141  [JsonProperty(PropertyName = "membersRemoved")]
142  public IList<ChannelAccount> MembersRemoved { get; set; }
143 
147  [JsonProperty(PropertyName = "topicName")]
148  public string TopicName { get; set; }
149 
153  [JsonProperty(PropertyName = "historyDisclosed")]
154  public bool? HistoryDisclosed { get; set; }
155 
159  [JsonProperty(PropertyName = "locale")]
160  public string Locale { get; set; }
161 
165  [JsonProperty(PropertyName = "text")]
166  public string Text { get; set; }
167 
171  [JsonProperty(PropertyName = "speak")]
172  public string Speak { get; set; }
173 
178  [JsonProperty(PropertyName = "inputHint")]
179  public string InputHint { get; set; }
180 
184  [JsonProperty(PropertyName = "summary")]
185  public string Summary { get; set; }
186 
191  [JsonProperty(PropertyName = "suggestedActions")]
192  public SuggestedActions SuggestedActions { get; set; }
193 
197  [JsonProperty(PropertyName = "attachments")]
198  public IList<Attachment> Attachments { get; set; }
199 
204  [JsonProperty(PropertyName = "entities")]
205  public IList<Entity> Entities { get; set; }
206 
210  [JsonProperty(PropertyName = "channelData")]
211  public object ChannelData { get; set; }
212 
216  [JsonProperty(PropertyName = "action")]
217  public string Action { get; set; }
218 
222  [JsonProperty(PropertyName = "replyToId")]
223  public string ReplyToId { get; set; }
224 
228  [JsonProperty(PropertyName = "value")]
229  public object Value { get; set; }
230 
234  [JsonProperty(PropertyName = "name")]
235  public string Name { get; set; }
236 
240  [JsonProperty(PropertyName = "relatesTo")]
241  public ConversationReference RelatesTo { get; set; }
242 
246  [JsonProperty(PropertyName = "code")]
247  public string Code { get; set; }
248 
249  }
250 }
Activity()
Initializes a new instance of the Activity class.
Definition: Activity.cs:23
Channel account information for a conversation
SuggestedActions that can be performed
An object relating to a particular point in a conversation
Attachments operations.
Activity(string type=default(string), string id=default(string), DateTime?timestamp=default(DateTime?), DateTime?localTimestamp=default(DateTime?), string serviceUrl=default(string), string channelId=default(string), ChannelAccount from=default(ChannelAccount), ConversationAccount conversation=default(ConversationAccount), ChannelAccount recipient=default(ChannelAccount), string textFormat=default(string), string attachmentLayout=default(string), IList< ChannelAccount > membersAdded=default(IList< ChannelAccount >), IList< ChannelAccount > membersRemoved=default(IList< ChannelAccount >), string topicName=default(string), bool?historyDisclosed=default(bool?), string locale=default(string), string text=default(string), string speak=default(string), string inputHint=default(string), string summary=default(string), SuggestedActions suggestedActions=default(SuggestedActions), IList< Attachment > attachments=default(IList< Attachment >), IList< Entity > entities=default(IList< Entity >), object channelData=default(object), string action=default(string), string replyToId=default(string), object value=default(object), string name=default(string), ConversationReference relatesTo=default(ConversationReference), string code=default(string))
Initializes a new instance of the Activity class.
Definition: Activity.cs:28
Channel account information needed to route a message