BindToActivity class
Creates a new template to send the user based on the activity.
Constructors
Bind |
Initializes a new instance of the BindToActivity class. |
Methods
bind(Dialog |
Binds the provided activity. |
Constructor Details
BindToActivity(Partial<Activity>)
Initializes a new instance of the BindToActivity class.
new BindToActivity(activity: Partial<Activity>)
Parameters
- activity
-
Partial<Activity>
The activity to send the user.
Method Details
bind(DialogContext, object)
Binds the provided activity.
function bind(_context: DialogContext, _data?: object): Promise<Partial<Activity>>
Parameters
- _context
-
DialogContext
The dialog context.
- _data
-
object
Data to bind to. If Null, then dc.State will be used.
Returns
Promise<Partial<Activity>>
The linked activity.