Copy routing fields from an incoming activity and swap from/recipient.
Sets serviceUrl, conversation, from (← source recipient),
and recipient (← source from).
The incoming activity to copy routing fields from.
this for method chaining.
Set the activity type (default is "message").
Activity type string.
this for method chaining.
Set the service URL for the channel.
Bot Service service URL.
this for method chaining.
Set the conversation reference.
Conversation to target.
this for method chaining.
Set the sender account.
Sender's channel account.
this for method chaining.
Set the recipient account.
Recipient's channel account.
this for method chaining.
Set the text content of the activity.
Message text.
this for method chaining.
Set the entities array.
Entities to attach.
this for method chaining.
Set the attachments array.
Attachments to include.
this for method chaining.
Return a shallow copy of the constructed activity.
The built activity as a partial CoreActivity.
Fluent builder for constructing outbound activities.
Example