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)

适用于