Поделиться через


Activity Класс

Определение

public class Activity : Microsoft.Bot.Connector.IContactRelationUpdateActivity, Microsoft.Bot.Connector.IConversationUpdateActivity, Microsoft.Bot.Connector.IEndOfConversationActivity, Microsoft.Bot.Connector.IEventActivity, Microsoft.Bot.Connector.IHandoffActivity, Microsoft.Bot.Connector.IInstallationUpdateActivity, Microsoft.Bot.Connector.IInvokeActivity, Microsoft.Bot.Connector.IMessageDeleteActivity, Microsoft.Bot.Connector.IMessageReactionActivity, Microsoft.Bot.Connector.IMessageUpdateActivity, Microsoft.Bot.Connector.ISuggestionActivity, Microsoft.Bot.Connector.ITraceActivity, Microsoft.Bot.Connector.ITypingActivity
type Activity = class
    interface IActivity
    interface IConversationUpdateActivity
    interface IContactRelationUpdateActivity
    interface IInstallationUpdateActivity
    interface IMessageActivity
    interface IMessageUpdateActivity
    interface IMessageDeleteActivity
    interface IMessageReactionActivity
    interface ISuggestionActivity
    interface ITraceActivity
    interface ITypingActivity
    interface IEndOfConversationActivity
    interface IEventActivity
    interface IInvokeActivity
    interface IHandoffActivity
Public Class Activity
Implements IContactRelationUpdateActivity, IConversationUpdateActivity, IEndOfConversationActivity, IEventActivity, IHandoffActivity, IInstallationUpdateActivity, IInvokeActivity, IMessageDeleteActivity, IMessageReactionActivity, IMessageUpdateActivity, ISuggestionActivity, ITraceActivity, ITypingActivity
Наследование
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, String)

Поля

ContentType

Свойства

Action
AttachmentLayout
Attachments
CallerId
ChannelData
ChannelId
Code
Conversation
DeliveryMode
Entities
Expiration
From
HistoryDisclosed
Id
Importance
InputHint
Label
ListenFor
Locale
LocalTimestamp
LocalTimezone
MembersAdded
MembersRemoved
Name
Properties
ReactionsAdded
ReactionsRemoved
Recipient
RelatesTo
ReplyToId
SemanticAction
ServiceUrl
Speak
SuggestedActions
Summary
Text
TextFormat
TextHighlights
Timestamp
TopicName
Type
Value
ValueType

Методы

AsContactRelationUpdateActivity()
AsConversationUpdateActivity()
AsEndOfConversationActivity()
AsEventActivity()
AsInstallationUpdateActivity()
AsInvokeActivity()
AsMessageActivity()
AsMessageDeleteActivity()
AsMessageReactionActivity()
AsMessageUpdateActivity()
AsSuggestionActivity()
AsTraceActivity()
AsTypingActivity()
CreateContactRelationUpdateActivity()
CreateConversationUpdateActivity()
CreateEndOfConversationActivity()
CreateEventActivity()
CreateHandoffActivity()
CreateInvokeActivity()
CreateMessageActivity()
CreateReply(String, String)
CreateTraceActivityReply(Activity, String, String, Object, String)
CreateTypingActivity()
GetActivityType(String)
GetChannelData<TypeT>()
GetMentions()
HasContent()
IsActivity(String)
TryGetChannelData<TypeT>(TypeT)

Методы расширения

ToConversationReference(IActivity)

Создает из ConversationReferenceIActivity.

AddHeroCard<T>(IMessageActivity, String, IEnumerable<T>, IEnumerable<String>)

Создает кнопки из параметров и добавляет их в сообщение.

AddKeyboardCard<T>(IMessageActivity, String, IEnumerable<T>, IEnumerable<String>)

Создает кнопки из параметров и добавляет их в сообщение.

CreateOAuthReplyAsync(IActivity, String, String, String, Boolean)
GetActivityType(IActivity)
GetChannelData<TypeT>(IActivity)
GetOAuthClient(IActivity, MicrosoftAppCredentials, String, DelegatingHandler[])
GetOAuthClient(IActivity, String, String, String, DelegatingHandler[])
GetStateClient(IActivity, MicrosoftAppCredentials, String, DelegatingHandler[])
GetStateClient(IActivity, String, String, String, DelegatingHandler[])
IsTeamsVerificationInvoke(IActivity)
IsTokenResponseEvent(IActivity)
MentionsId(IMessageActivity, String)
MentionsRecipient(IMessageActivity)
ReadTokenResponseContent(IActivity)
RemoveMentionText(IMessageActivity, String)
RemoveRecipientMention(IMessageActivity)
TryGetChannelData<TypeT>(IActivity, TypeT)

Применяется к