Microsoft.Bot.Connector.ITriggerActivity Interface Reference

NOTE: Trigger activity has been renamed to Event activity More...

Inheritance diagram for Microsoft.Bot.Connector.ITriggerActivity:

Public Member Functions

IContactRelationUpdateActivity AsContactRelationUpdateActivity ()
 Return IContactRelationUpdateActivity if this is a contactRelationUpdate activity, null otherwise More...
 
IConversationUpdateActivity AsConversationUpdateActivity ()
 Return IConversationUpdateActivity if this is a conversationUpdate activity, null otherwise More...
 
IEndOfConversationActivity AsEndOfConversationActivity ()
 Return IEndOfConversationActivity if this is an end-of-conversation activity, null otherwise More...
 
IEventActivity AsEventActivity ()
 Returns IEventActivity if this is an event activity, null otherwise More...
 
IInstallationUpdateActivity AsInstallationUpdateActivity ()
 Return IInstallationUpdateActivity if this is a installationUpdate activity, null otherwise More...
 
IInvokeActivity AsInvokeActivity ()
 Returns IInvokeActivity if this is an invoke activity, null otherwise More...
 
IMessageActivity AsMessageActivity ()
 Return IMessageActivity if this is a message activity, null otherwise More...
 
ITypingActivity AsTypingActivity ()
 Return ITypingActivity if this is a typing activity, null otherwise More...
 

Properties

dynamic ChannelData [get, set]
 Channel specific payload More...
 
string ChannelId [get, set]
 Channel this activity is associated with More...
 
ConversationAccount Conversation [get, set]
 Address for the conversation that this activity is associated with More...
 
ChannelAccount From [get, set]
 Sender address data More...
 
string Id [get, set]
 Id for the activity More...
 
DateTimeOffset LocalTimestamp [get, set]
 Client Time when message was sent Ex: 2016-09-23T13:07:49.4714686-07:00 More...
 
string Name [get, set]
 Name of the event More...
 
ChannelAccount Recipient [get, set]
 Address that received the message More...
 
ConversationReference RelatesTo [get, set]
 Reference to another conversation or activity More...
 
string ReplyToId [get, set]
 The original id this message is a response to More...
 
string ServiceUrl [get, set]
 ServiceUrl More...
 
DateTime Timestamp [get, set]
 UTC Time when message was sent More...
 
string Type [get, set]
 Activity type More...
 
object Value [get, set]
 Open-ended value More...
 

Detailed Description

NOTE: Trigger activity has been renamed to Event activity

Definition at line 31 of file IEventActivity.cs.

Member Function Documentation

IContactRelationUpdateActivity Microsoft.Bot.Connector.IActivity.AsContactRelationUpdateActivity ( )
inherited

Return IContactRelationUpdateActivity if this is a contactRelationUpdate activity, null otherwise

Implemented in Microsoft.Bot.Connector.Activity.

IConversationUpdateActivity Microsoft.Bot.Connector.IActivity.AsConversationUpdateActivity ( )
inherited

Return IConversationUpdateActivity if this is a conversationUpdate activity, null otherwise

Implemented in Microsoft.Bot.Connector.Activity.

IEndOfConversationActivity Microsoft.Bot.Connector.IActivity.AsEndOfConversationActivity ( )
inherited

Return IEndOfConversationActivity if this is an end-of-conversation activity, null otherwise

Implemented in Microsoft.Bot.Connector.Activity.

IEventActivity Microsoft.Bot.Connector.IActivity.AsEventActivity ( )
inherited

Returns IEventActivity if this is an event activity, null otherwise

Implemented in Microsoft.Bot.Connector.Activity.

IInstallationUpdateActivity Microsoft.Bot.Connector.IActivity.AsInstallationUpdateActivity ( )
inherited

Return IInstallationUpdateActivity if this is a installationUpdate activity, null otherwise

Implemented in Microsoft.Bot.Connector.Activity.

IInvokeActivity Microsoft.Bot.Connector.IActivity.AsInvokeActivity ( )
inherited

Returns IInvokeActivity if this is an invoke activity, null otherwise

Implemented in Microsoft.Bot.Connector.Activity.

IMessageActivity Microsoft.Bot.Connector.IActivity.AsMessageActivity ( )
inherited

Return IMessageActivity if this is a message activity, null otherwise

Implemented in Microsoft.Bot.Connector.Activity.

ITypingActivity Microsoft.Bot.Connector.IActivity.AsTypingActivity ( )
inherited

Return ITypingActivity if this is a typing activity, null otherwise

Implemented in Microsoft.Bot.Connector.Activity.

Property Documentation

dynamic Microsoft.Bot.Connector.IActivity.ChannelData
getsetinherited

Channel specific payload

Some channels will provide channel specific data.

For a message originating in the channel it might provide the original native schema object for the channel.

For a message coming into the channel it might accept a payload allowing you to create a "native" response for the channel.

Example:

  • Email - The Email Channel will put the original Email metadata into the ChannelData object for outgoing messages, and will accep on incoming message a Subject property, and a HtmlBody which can contain Html.

The channel data essentially allows a bot to have access to native functionality on a per channel basis.

Definition at line 77 of file IActivity.cs.

string Microsoft.Bot.Connector.IActivity.ChannelId
getsetinherited

Channel this activity is associated with

Definition at line 39 of file IActivity.cs.

ConversationAccount Microsoft.Bot.Connector.IActivity.Conversation
getsetinherited

Address for the conversation that this activity is associated with

Definition at line 49 of file IActivity.cs.

ChannelAccount Microsoft.Bot.Connector.IActivity.From
getsetinherited

Sender address data

Definition at line 44 of file IActivity.cs.

string Microsoft.Bot.Connector.IActivity.Id
getsetinherited

Id for the activity

Definition at line 19 of file IActivity.cs.

DateTimeOffset Microsoft.Bot.Connector.IActivity.LocalTimestamp
getsetinherited

Client Time when message was sent Ex: 2016-09-23T13:07:49.4714686-07:00

Definition at line 34 of file IActivity.cs.

string Microsoft.Bot.Connector.IEventActivity.Name
getsetinherited

Name of the event

Definition at line 14 of file IEventActivity.cs.

ChannelAccount Microsoft.Bot.Connector.IActivity.Recipient
getsetinherited

Address that received the message

Definition at line 54 of file IActivity.cs.

ConversationReference Microsoft.Bot.Connector.IEventActivity.RelatesTo
getsetinherited

Reference to another conversation or activity

Definition at line 24 of file IEventActivity.cs.

string Microsoft.Bot.Connector.IActivity.ReplyToId
getsetinherited

The original id this message is a response to

Definition at line 59 of file IActivity.cs.

string Microsoft.Bot.Connector.IActivity.ServiceUrl
getsetinherited

ServiceUrl

Definition at line 24 of file IActivity.cs.

DateTime Microsoft.Bot.Connector.IActivity.Timestamp
getsetinherited

UTC Time when message was sent

Definition at line 29 of file IActivity.cs.

string Microsoft.Bot.Connector.IActivity.Type
getsetinherited

Activity type

Definition at line 14 of file IActivity.cs.

object Microsoft.Bot.Connector.IEventActivity.Value
getsetinherited

Open-ended value

Definition at line 19 of file IEventActivity.cs.


The documentation for this interface was generated from the following file: