Activity コンストラクター

定義

オーバーロード

Activity()

Activity クラスの新しいインスタンスを初期化します。

Activity(String, String, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, String, String, ChannelAccount, ConversationAccount, ChannelAccount, String, String, IList<ChannelAccount>, IList<ChannelAccount>, IList<MessageReaction>, IList<MessageReaction>, String, Nullable<Boolean>, String, String, String, String, String, SuggestedActions, IList<Attachment>, IList<Entity>, Object, String, String, String, String, Object, String, ConversationReference, String, Nullable<DateTimeOffset>, String, String, IList<String>, IList<TextHighlight>, SemanticAction, String)

Activity クラスの新しいインスタンスを初期化します。

Activity()

Activity クラスの新しいインスタンスを初期化します。

public Activity ();
Public Sub New ()

適用対象

Activity(String, String, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, String, String, ChannelAccount, ConversationAccount, ChannelAccount, String, String, IList<ChannelAccount>, IList<ChannelAccount>, IList<MessageReaction>, IList<MessageReaction>, String, Nullable<Boolean>, String, String, String, String, String, SuggestedActions, IList<Attachment>, IList<Entity>, Object, String, String, String, String, Object, String, ConversationReference, String, Nullable<DateTimeOffset>, String, String, IList<String>, IList<TextHighlight>, SemanticAction, String)

Activity クラスの新しいインスタンスを初期化します。

public Activity (string type = default, string id = default, DateTimeOffset? timestamp = default, DateTimeOffset? localTimestamp = default, string serviceUrl = default, string channelId = default, Microsoft.Bot.Schema.ChannelAccount from = default, Microsoft.Bot.Schema.ConversationAccount conversation = default, Microsoft.Bot.Schema.ChannelAccount recipient = default, string textFormat = default, string attachmentLayout = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount> membersAdded = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount> membersRemoved = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.MessageReaction> reactionsAdded = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.MessageReaction> reactionsRemoved = default, string topicName = default, bool? historyDisclosed = default, string locale = default, string text = default, string speak = default, string inputHint = default, string summary = default, Microsoft.Bot.Schema.SuggestedActions suggestedActions = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.Attachment> attachments = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.Entity> entities = default, object channelData = default, string action = default, string replyToId = default, string label = default, string valueType = default, object value = default, string name = default, Microsoft.Bot.Schema.ConversationReference relatesTo = default, string code = default, DateTimeOffset? expiration = default, string importance = default, string deliveryMode = default, System.Collections.Generic.IList<string> listenFor = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.TextHighlight> textHighlights = default, Microsoft.Bot.Schema.SemanticAction semanticAction = default, string localTimezone = default);
new Microsoft.Bot.Schema.Activity : string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.ConversationAccount * Microsoft.Bot.Schema.ChannelAccount * string * string * System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount> * System.Collections.Generic.IList<Microsoft.Bot.Schema.ChannelAccount> * System.Collections.Generic.IList<Microsoft.Bot.Schema.MessageReaction> * System.Collections.Generic.IList<Microsoft.Bot.Schema.MessageReaction> * string * Nullable<bool> * string * string * string * string * string * Microsoft.Bot.Schema.SuggestedActions * System.Collections.Generic.IList<Microsoft.Bot.Schema.Attachment> * System.Collections.Generic.IList<Microsoft.Bot.Schema.Entity> * obj * string * string * string * string * obj * string * Microsoft.Bot.Schema.ConversationReference * string * Nullable<DateTimeOffset> * string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Bot.Schema.TextHighlight> * Microsoft.Bot.Schema.SemanticAction * string -> Microsoft.Bot.Schema.Activity
Public Sub New (Optional type As String = Nothing, Optional id As String = Nothing, Optional timestamp As Nullable(Of DateTimeOffset) = Nothing, Optional localTimestamp As Nullable(Of DateTimeOffset) = Nothing, Optional serviceUrl As String = Nothing, Optional channelId As String = Nothing, Optional from As ChannelAccount = Nothing, Optional conversation As ConversationAccount = Nothing, Optional recipient As ChannelAccount = Nothing, Optional textFormat As String = Nothing, Optional attachmentLayout As String = Nothing, Optional membersAdded As IList(Of ChannelAccount) = Nothing, Optional membersRemoved As IList(Of ChannelAccount) = Nothing, Optional reactionsAdded As IList(Of MessageReaction) = Nothing, Optional reactionsRemoved As IList(Of MessageReaction) = Nothing, Optional topicName As String = Nothing, Optional historyDisclosed As Nullable(Of Boolean) = Nothing, Optional locale As String = Nothing, Optional text As String = Nothing, Optional speak As String = Nothing, Optional inputHint As String = Nothing, Optional summary As String = Nothing, Optional suggestedActions As SuggestedActions = Nothing, Optional attachments As IList(Of Attachment) = Nothing, Optional entities As IList(Of Entity) = Nothing, Optional channelData As Object = Nothing, Optional action As String = Nothing, Optional replyToId As String = Nothing, Optional label As String = Nothing, Optional valueType As String = Nothing, Optional value As Object = Nothing, Optional name As String = Nothing, Optional relatesTo As ConversationReference = Nothing, Optional code As String = Nothing, Optional expiration As Nullable(Of DateTimeOffset) = Nothing, Optional importance As String = Nothing, Optional deliveryMode As String = Nothing, Optional listenFor As IList(Of String) = Nothing, Optional textHighlights As IList(Of TextHighlight) = Nothing, Optional semanticAction As SemanticAction = Nothing, Optional localTimezone As String = Nothing)

パラメーター

type
String

アクティビティの種類を格納します。 使用できる値は、'message'、'contactRelationUpdate'、'conversationUpdate'、'typing'、'endOfConversation'、'event'、'invoke'、'deleteUserData'、'messageUpdate'、'messageDelete'、'installationUpdate'、'messageReaction'、'suggestion'、'trace'、'handoff' です。

id
String

チャネルのアクティビティを一意に識別する ID を含みます。

timestamp
Nullable<DateTimeOffset>

ISO-8601 形式で表された、メッセージが送信された日時 (UTC) を格納します。

localTimestamp
Nullable<DateTimeOffset>

ISO-8601 形式で表された、メッセージが送信された日付と時刻をローカル時刻で格納します。 たとえば、2016-09-23T13:07:49.4714686-07:00 などです。

serviceUrl
String

チャネルのサービス エンドポイントを指定する URL を格納します。 チャネルによって設定されます。

channelId
String

チャネルを一意に識別する ID を含みます。 チャネルによって設定されます。

from
ChannelAccount

メッセージの送信者を識別します。

conversation
ConversationAccount

アクティビティが属する会話を識別します。

recipient
ChannelAccount

メッセージの受信者を識別します。

textFormat
String

テキスト フィールドの形式。 既定値: markdown。 使用できる値は、'markdown'、'plain'、'xml' です。

attachmentLayout
String

複数の添付ファイルのレイアウト ヒント。 既定値: list。 使用できる値は、'list'、'carousel' です。

membersAdded
IList<ChannelAccount>

会話に追加されたメンバーのコレクション。

membersRemoved
IList<ChannelAccount>

会話から削除されたメンバーのコレクション。

reactionsAdded
IList<MessageReaction>

会話に追加された反応のコレクション。

reactionsRemoved
IList<MessageReaction>

会話から削除された反応のコレクション。

topicName
String

スレッドの更新されたトピック名。

historyDisclosed
Nullable<Boolean>

チャネルの以前の履歴が開示されているかどうかを示します。

locale
String

テキスト フィールドの内容のロケール名。 ロケール名は、言語に関連付けられた ISO 639 の 2 文字または 3 文字のカルチャ コードと、国または地域に関連付けられている ISO 3166 2 文字のサブカルチャ コードの組み合わせです。 ロケール名は、有効な BCP-47 言語タグに対応することもできます。

text
String

メッセージのテキスト コンテンツ。

speak
String

読み上げるテキスト。

inputHint
String

メッセージがクライアントに配信された後、ボットがユーザー入力を受け入れるか、予期しているか、無視しているかを示します。 指定できる値は、'acceptingInput'、'ignoringInput'、'expectingInput' です。

summary
String

チャネルがカードをレンダリングできない場合に表示するテキスト。

suggestedActions
SuggestedActions

アクティビティに推奨されるアクション。

attachments
IList<Attachment>

アクティビティの添付ファイル。

entities
IList<Entity>

メッセージに記載されたエンティティを表します。

channelData
Object

チャネル固有のコンテンツが含まれます。

action
String

contactRelationUpdate の受信者が送信者の連絡先リストに追加されたか、送信者の連絡先リストから削除されたかを示します。

replyToId
String

このメッセージが応答であるメッセージの ID を格納します。

label
String

アクティビティの説明ラベル。

valueType
String

アクティビティの値オブジェクトの型。

value
Object

アクティビティに関連付けられている値。

name
String

呼び出しまたはイベント アクティビティに関連付けられている操作の名前。

relatesTo
ConversationReference

別の会話またはアクティビティへの参照。

code
String

会話が終了した理由を示す endOfConversation アクティビティのコード。 使用できる値は、'unknown'、'completedSuccessfully'、'userCancelled'、'botTimedOut'、'botIssuedInvalidMessage'、'channelFailed' です。

expiration
Nullable<DateTimeOffset>

アクティビティを "期限切れ" と見なす時刻です。これは受信者に表示すべきではありません。

importance
String

アクティビティの重要性。 指定できる値は、'low'、'normal'、'high' です。

deliveryMode
String

アクティビティの受信者の代替配信パスに通知する配信ヒント。 既定の配信モードは "default" です。 使用できる値は、'normal'、'notification'、'expectReplies'、'ephemeral' です。

listenFor
IList<String>

音声および言語の認識システムで聞き取る必要がある語句と参照の一覧。

textHighlights
IList<TextHighlight>

アクティビティに ReplyToId 値が含まれているときに強調表示するテキスト フラグメントのコレクション。

semanticAction
SemanticAction

この要求に付随するプログラムによるオプションのアクション。

localTimezone
String

メッセージのローカル時刻を定義するために使用されるタイムゾーンの名前を IANA タイム ゾーン データベース形式で表します。 例: America/Los_Angeles。

適用対象