Udostępnij za pośrednictwem


Activity Konstruktory

Definicja

Przeciążenia

Activity()

Inicjuje nowe wystąpienie klasy 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)

Inicjuje nowe wystąpienie klasy Activity.

Activity()

Inicjuje nowe wystąpienie klasy Activity.

public Activity ();
Public Sub New ()

Dotyczy

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)

Inicjuje nowe wystąpienie klasy 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)

Parametry

type
String

Zawiera typ działania. Możliwe wartości to: "message", "contactRelationUpdate", "conversationUpdate", "typing", "endOfConversation", "event", "invoke", "deleteUserData", "messageUpdate", "messageDelete", "installationUpdate", "messageReaction", "suggestion", "trace", "handoff".

id
String

Zawiera identyfikator, który jednoznacznie identyfikuje działanie w kanale.

timestamp
Nullable<DateTimeOffset>

Zawiera datę i godzinę wysłania wiadomości w formacie UTC wyrażoną w formacie ISO-8601.

localTimestamp
Nullable<DateTimeOffset>

Zawiera datę i godzinę wysłania komunikatu w czasie lokalnym wyrażoną w formacie ISO-8601. Na przykład 2016-09-23T13:07:49.4714686-07:00.

serviceUrl
String

Zawiera adres URL określający punkt końcowy usługi kanału. Ustaw według kanału.

channelId
String

Zawiera identyfikator, który jednoznacznie identyfikuje kanał. Ustaw według kanału.

from
ChannelAccount

Identyfikuje nadawcę wiadomości.

conversation
ConversationAccount

Identyfikuje konwersację, do której należy działanie.

recipient
ChannelAccount

Identyfikuje adresata wiadomości.

textFormat
String

Format pól tekstowych. Ustawienie domyślne: markdown. Możliwe wartości to: "markdown", "plain", "xml".

attachmentLayout
String

Wskazówka układu dla wielu załączników. Ustawienie domyślne: lista. Możliwe wartości to: "list", "karuzela".

membersAdded
IList<ChannelAccount>

Kolekcja członków dodanych do konwersacji.

membersRemoved
IList<ChannelAccount>

Kolekcja członków została usunięta z konwersacji.

reactionsAdded
IList<MessageReaction>

Kolekcja reakcji dodanych do konwersacji.

reactionsRemoved
IList<MessageReaction>

Kolekcja reakcji usuniętych z konwersacji.

topicName
String

Zaktualizowana nazwa tematu konwersacji.

historyDisclosed
Nullable<Boolean>

Wskazuje, czy wcześniejsza historia kanału została ujawniona.

locale
String

Nazwa ustawień regionalnych dla zawartości pola tekstowego. Nazwa ustawień regionalnych jest kombinacją dwuliterowego lub trzyliterowego kodu kultury ISO 639 skojarzonego z językiem i dwuliterowego kodu subkultury ISO 3166 skojarzonego z krajem lub regionem. Nazwa ustawień regionalnych może również odpowiadać prawidłowemu tagowi języka BCP-47.

text
String

Zawartość tekstowa wiadomości.

speak
String

Tekst do mówienia.

inputHint
String

Wskazuje, czy bot akceptuje, oczekuje lub ignoruje dane wejściowe użytkownika po dostarczeniu komunikatu do klienta. Możliwe wartości to: "acceptingInput", "ignoringInput", "expectingInput".

summary
String

Tekst do wyświetlenia, jeśli kanał nie może renderować kart.

suggestedActions
SuggestedActions

Sugerowane akcje dla działania.

attachments
IList<Attachment>

Załączniki dla działania.

entities
IList<Entity>

Reprezentuje jednostki, które zostały wymienione w komunikacie.

channelData
Object

Zawiera zawartość specyficzną dla kanału.

action
String

Wskazuje, czy odbiorca elementu contactRelationUpdate został dodany do lub usunięty z listy kontaktów nadawcy.

replyToId
String

Zawiera identyfikator wiadomości, do której ta wiadomość jest odpowiedzią.

label
String

Etykieta opisowa działania.

valueType
String

Typ obiektu wartości działania.

value
Object

Wartość skojarzona z działaniem.

name
String

Nazwa operacji skojarzonej z działaniem wywołania lub zdarzenia.

relatesTo
ConversationReference

Odwołanie do innej konwersacji lub działania.

code
String

Kod działań endOfConversation wskazujący, dlaczego konwersacja zakończyła się. Możliwe wartości to: "unknown", "completedSuccessfully", "userCancelled", "botTimedOut", "botIssuedInvalidMessage", "channelFailed".

expiration
Nullable<DateTimeOffset>

Czas, w którym działanie powinno być uznawane za "wygasłe" i nie powinno być przedstawiane odbiorcy.

importance
String

Znaczenie działania. Możliwe wartości to: "low", "normal", "high".

deliveryMode
String

Wskazówka dostarczania sygnalizowana odbiorcy alternatywnych ścieżek dostarczania dla działania. Domyślny tryb dostarczania to "default". Możliwe wartości to: "normal", "notification", "expectReplies", "efemeryczny".

listenFor
IList<String>

Lista fraz i odwołań, na które powinny nasłuchiwać systemy do obsługi mowy i języka.

textHighlights
IList<TextHighlight>

Kolekcja fragmentów tekstu do wyróżnienia, gdy działanie zawiera wartość ReplyToId.

semanticAction
SemanticAction

Opcjonalna akcja programowa towarzysząca temu żądaniu.

localTimezone
String

Zawiera nazwę strefy czasowej używanej do definiowania czasu lokalnego dla komunikatu wyrażonego w formacie bazy danych strefy czasowej IANA. Na przykład Ameryka/Los_Angeles.

Dotyczy