Compartir a través de


Activity Clase

Definición

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
Herencia
Activity
Implementaciones

Constructores

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)

Campos

ContentType

Propiedades

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

Métodos

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)

Métodos de extensión

ToConversationReference(IActivity)

Crea un objeto ConversationReference a partir de IActivity.

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

Genera botones a partir de opciones y los agrega al mensaje.

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

Genera botones a partir de opciones y los agrega al mensaje.

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)

Se aplica a