/// <summary> /// Initializes a new instance of the ConversationReference class. /// </summary> /// <param name="activityId">(Optional) ID of the activity to refer /// to</param> /// <param name="user">(Optional) User participating in this /// conversation</param> /// <param name="bot">Bot participating in this conversation</param> /// <param name="conversation">Conversation reference</param> /// <param name="channelId">Channel ID</param> /// <param name="serviceUrl">Service endpoint where operations /// concerning the referenced conversation may be performed</param> public ConversationReference(string activityId = default(string), ChannelAccount user = default(ChannelAccount), ChannelAccount bot = default(ChannelAccount), ConversationAccount conversation = default(ConversationAccount), string channelId = default(string), string serviceUrl = default(string)) { ActivityId = activityId; User = user; Bot = bot; Conversation = conversation; ChannelId = channelId; ServiceUrl = serviceUrl; CustomInit(); }
/// <summary> /// Initializes a new instance of the ConversationParameters class. /// </summary> /// <param name="isGroup">IsGroup</param> /// <param name="bot">The bot address for this conversation</param> /// <param name="members">Members to add to the conversation</param> /// <param name="topicName">(Optional) Topic of the conversation (if /// supported by the channel)</param> /// <param name="activity">(Optional) When creating a new conversation, /// use this activity as the initial message to the /// conversation</param> /// <param name="channelData">Channel specific payload for creating the /// conversation</param> public ConversationParameters(bool?isGroup = default(bool?), ChannelAccount bot = default(ChannelAccount), IList <ChannelAccount> members = default(IList <ChannelAccount>), string topicName = default(string), Activity activity = default(Activity), object channelData = default(object)) { IsGroup = isGroup; Bot = bot; Members = members; TopicName = topicName; Activity = activity; ChannelData = channelData; CustomInit(); }
/// <summary>Initializes a new instance of the <see cref="ConversationReference"/> class.</summary> /// <param name="locale"> /// A locale name for the contents of the text field. /// The locale name is a combination of an ISO 639 two- or three-letter culture code associated with a language /// and an ISO 3166 two-letter subculture code associated with a country or region. /// The locale name can also correspond to a valid BCP-47 language tag. /// </param> /// <param name="activityId">(Optional) ID of the activity to refer to.</param> /// <param name="user">(Optional) User participating in this conversation.</param> /// <param name="bot">Bot participating in this conversation.</param> /// <param name="conversation">Conversation reference.</param> /// <param name="channelId">Channel ID.</param> /// <param name="serviceUrl">Service endpoint where operations concerning the referenced conversation may be performed.</param> public ConversationReference(CultureInfo locale, string activityId = default(string), ChannelAccount user = default(ChannelAccount), ChannelAccount bot = default(ChannelAccount), ConversationAccount conversation = default(ConversationAccount), string channelId = default(string), string serviceUrl = default(string)) { ActivityId = activityId; User = user; Bot = bot; Conversation = conversation; ChannelId = channelId; Locale = locale?.ToString(); ServiceUrl = serviceUrl; }
/// <summary>Initializes a new instance of the <see cref="ConversationParameters"/> class.</summary> /// <param name="isGroup">IsGroup.</param> /// <param name="bot">The bot address for this conversation.</param> /// <param name="members">Members to add to the conversation.</param> /// <param name="topicName">(Optional) Topic of the conversation (if supported by the channel).</param> /// <param name="activity">(Optional) When creating a new conversation, use this activity as the initial message to the conversation.</param> /// <param name="channelData">Channel specific payload for creating the conversation.</param> /// <param name="tenantId">(Optional) The tenant ID in which the conversation should be created.</param> public ConversationParameters(bool?isGroup = default, ChannelAccount bot = default, IList <ChannelAccount> members = default, string topicName = default, Activity activity = default, object channelData = default, string tenantId = default) { IsGroup = isGroup; Bot = bot; Members = members; TopicName = topicName; Activity = activity; ChannelData = channelData; TenantId = tenantId; CustomInit(); }
/// <summary> /// Initializes a new instance of the <see cref="Activity"/> class. /// </summary> /// <param name="type">Contains the activity type. Possible values /// include: 'message', 'contactRelationUpdate', 'conversationUpdate', /// 'typing', 'endOfConversation', 'event', 'invoke', 'deleteUserData', /// 'messageUpdate', 'messageDelete', 'installationUpdate', /// 'messageReaction', 'suggestion', 'trace', 'handoff'.</param> /// <param name="id">Contains an ID that uniquely identifies the /// activity on the channel.</param> /// <param name="timestamp">Contains the date and time when the message /// was sent, in UTC, expressed in ISO-8601 format.</param> /// <param name="localTimestamp">Contains the date and time when the /// message was sent, in local time, expressed in ISO-8601 format. /// For example, 2016-09-23T13:07:49.4714686-07:00.</param> /// <param name="localTimezone">Contains the name of the timezone used /// to define local time for the message, expressed in IANA Time Zone /// database format. /// For example, America/Los_Angeles.</param> /// <param name="serviceUrl">Contains the URL that specifies the /// channel's service endpoint. Set by the channel.</param> /// <param name="channelId">Contains an ID that uniquely identifies the /// channel. Set by the channel.</param> /// <param name="from">Identifies the sender of the message.</param> /// <param name="conversation">Identifies the conversation to which the /// activity belongs.</param> /// <param name="recipient">Identifies the recipient of the /// message.</param> /// <param name="textFormat">Format of text fields. Default: markdown. /// Possible values include: 'markdown', 'plain', 'xml'.</param> /// <param name="attachmentLayout">The layout hint for multiple /// attachments. Default: list. Possible values include: 'list', /// 'carousel'.</param> /// <param name="membersAdded">The collection of members added to the /// conversation.</param> /// <param name="membersRemoved">The collection of members removed from /// the conversation.</param> /// <param name="reactionsAdded">The collection of reactions added to /// the conversation.</param> /// <param name="reactionsRemoved">The collection of reactions removed /// from the conversation.</param> /// <param name="topicName">The updated topic name of the /// conversation.</param> /// <param name="historyDisclosed">Indicates whether the prior history /// of the channel is disclosed.</param> /// <param name="locale">A locale name for the contents of the text /// field. /// The locale name is a combination of an ISO 639 two- or three-letter /// culture code associated with a language /// and an ISO 3166 two-letter subculture code associated with a /// country or region. /// The locale name can also correspond to a valid BCP-47 language /// tag.</param> /// <param name="text">The text content of the message.</param> /// <param name="speak">The text to speak.</param> /// <param name="inputHint">Indicates whether your bot is accepting, /// expecting, or ignoring user input after the message is delivered to /// the client. Possible values include: 'acceptingInput', /// 'ignoringInput', 'expectingInput'.</param> /// <param name="summary">The text to display if the channel cannot /// render cards.</param> /// <param name="suggestedActions">The suggested actions for the /// activity.</param> /// <param name="attachments">The attachments for the activity.</param> /// <param name="entities">Represents the entities that were mentioned /// in the message.</param> /// <param name="channelData">Contains channel-specific /// content.</param> /// <param name="action">Indicates whether the recipient of a /// contactRelationUpdate was added to or removed from the sender's /// contact list.</param> /// <param name="replyToId">Contains the ID of the message to which /// this message is a reply.</param> /// <param name="label">A descriptive label for the activity.</param> /// <param name="valueType">The type of the activity's value /// object.</param> /// <param name="value">A value that is associated with the /// activity.</param> /// <param name="name">The name of the operation associated with an /// invoke or event activity.</param> /// <param name="relatesTo">A reference to another conversation or /// activity.</param> /// <param name="code">A code for endOfConversation activities that /// indicates why the conversation ended. Possible values include: /// 'unknown', 'completedSuccessfully', 'userCancelled', 'botTimedOut', /// 'botIssuedInvalidMessage', 'channelFailed'.</param> /// <param name="expiration">The time at which the activity should be /// considered to be "expired" and should not be presented to the /// recipient.</param> /// <param name="importance">The importance of the activity. Possible /// values include: 'low', 'normal', 'high'.</param> /// <param name="deliveryMode">A delivery hint to signal to the /// recipient alternate delivery paths for the activity. /// The default delivery mode is "default". Possible values include: /// 'normal', 'notification', 'expectReplies', 'ephemeral'.</param> /// <param name="listenFor">List of phrases and references that speech /// and language priming systems should listen for.</param> /// <param name="textHighlights">The collection of text fragments to /// highlight when the activity contains a ReplyToId value.</param> /// <param name="semanticAction">An optional programmatic action /// accompanying this request.</param> public Activity(string type = default(string), string id = default(string), System.DateTimeOffset?timestamp = default(System.DateTimeOffset?), System.DateTimeOffset?localTimestamp = default(System.DateTimeOffset?), 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>), IList <MessageReaction> reactionsAdded = default(IList <MessageReaction>), IList <MessageReaction> reactionsRemoved = default(IList <MessageReaction>), 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), string label = default(string), string valueType = default(string), object value = default(object), string name = default(string), ConversationReference relatesTo = default(ConversationReference), string code = default(string), System.DateTimeOffset?expiration = default(System.DateTimeOffset?), string importance = default(string), string deliveryMode = default(string), IList <string> listenFor = default(IList <string>), IList <TextHighlight> textHighlights = default(IList <TextHighlight>), SemanticAction semanticAction = default(SemanticAction), string localTimezone = default(string)) { Type = type; Id = id; Timestamp = timestamp; LocalTimestamp = localTimestamp; LocalTimezone = localTimezone; ServiceUrl = serviceUrl; ChannelId = channelId; From = from; Conversation = conversation; Recipient = recipient; TextFormat = textFormat; AttachmentLayout = attachmentLayout; MembersAdded = membersAdded; MembersRemoved = membersRemoved; ReactionsAdded = reactionsAdded; ReactionsRemoved = reactionsRemoved; TopicName = topicName; HistoryDisclosed = historyDisclosed; Locale = locale; Text = text; Speak = speak; InputHint = inputHint; Summary = summary; SuggestedActions = suggestedActions; Attachments = attachments; Entities = entities; ChannelData = channelData; Action = action; ReplyToId = replyToId; Label = label; ValueType = valueType; Value = value; Name = name; RelatesTo = relatesTo; Code = code; Expiration = expiration; Importance = importance; DeliveryMode = deliveryMode; ListenFor = listenFor; TextHighlights = textHighlights; SemanticAction = semanticAction; CustomInit(); }
/// <summary> /// Initializes a new instance of the ConversationReference class. /// </summary> /// <param name="activityId">(Optional) ID of the activity to refer /// to</param> /// <param name="user">(Optional) User participating in this /// conversation</param> /// <param name="bot">Bot participating in this conversation</param> /// <param name="conversation">Conversation reference</param> /// <param name="channelId">Channel ID</param> /// <param name="serviceUrl">Service endpoint where operations /// concerning the referenced conversation may be performed</param> public ConversationReference(string activityId = default(string), ChannelAccount user = default(ChannelAccount), ChannelAccount bot = default(ChannelAccount), ConversationAccount conversation = default(ConversationAccount), string channelId = default(string), string serviceUrl = default(string)) : this(default(CultureInfo), activityId, user, bot, conversation, channelId, serviceUrl) { }