/// <summary> /// Initializes a new instance of the Activity class. /// </summary> /// <param name="type">The type of the activity /// [message|contactRelationUpdate|converationUpdate|typing]</param> /// <param name="id">Id for the activity</param> /// <param name="timestamp">UTC Time when message was sent (Set by /// service)</param> /// <param name="localTimestamp">Local time when message was sent (set /// by client Ex: 2016-09-23T13:07:49.4714686-07:00)</param> /// <param name="serviceUrl">Service endpoint</param> /// <param name="channelId">ChannelId the activity was on</param> /// <param name="fromProperty">Sender address</param> /// <param name="conversation">Conversation</param> /// <param name="recipient">(Outbound to bot only) Bot's address that /// received the message</param> /// <param name="textFormat">Format of text fields [plain|markdown] /// Default:markdown</param> /// <param name="attachmentLayout">AttachmentLayout - hint for how to /// deal with multiple attachments Values: [list|carousel] /// Default:list</param> /// <param name="membersAdded">Array of address added</param> /// <param name="membersRemoved">Array of addresses removed</param> /// <param name="topicName">Conversations new topic name</param> /// <param name="historyDisclosed">the previous history of the channel /// was disclosed</param> /// <param name="locale">The language code of the Text field</param> /// <param name="text">Content for the message</param> /// <param name="summary">Text to display if you can't render /// cards</param> /// <param name="attachments">Attachments</param> /// <param name="entities">Collection of Entity objects, each of which /// contains metadata about this activity. Each Entity object is /// typed.</param> /// <param name="channelData">Channel specific payload</param> /// <param name="action">ContactAdded/Removed action</param> /// <param name="replyToId">the original id this message is a response /// to</param> /// <param name="value">Open ended value</param> public Activity(string type = default(string), string id = default(string), System.DateTime?timestamp = default(System.DateTime?), System.DateTime?localTimestamp = default(System.DateTime?), string serviceUrl = default(string), string channelId = default(string), ChannelAccount fromProperty = 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 summary = default(string), 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)) { Type = type; Id = id; Timestamp = timestamp; LocalTimestamp = localTimestamp; ServiceUrl = serviceUrl; ChannelId = channelId; FromProperty = fromProperty; Conversation = conversation; Recipient = recipient; TextFormat = textFormat; AttachmentLayout = attachmentLayout; MembersAdded = membersAdded; MembersRemoved = membersRemoved; TopicName = topicName; HistoryDisclosed = historyDisclosed; Locale = locale; Text = text; Summary = summary; Attachments = attachments; Entities = entities; ChannelData = channelData; Action = action; ReplyToId = replyToId; Value = value; CustomInit(); }
public ConversationReference(string activityId = null, ChannelAccount user = null, ChannelAccount bot = null, ConversationAccount conversation = null, string channelId = null, string serviceUrl = null) { ActivityId = activityId; User = user; Bot = bot; Conversation = conversation; ChannelId = channelId; ServiceUrl = serviceUrl; CustomInit(); }