CoreActivityInput Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an outbound (outgoing) activity that a bot constructs and sends.
public class CoreActivityInput
type CoreActivityInput = class
Public Class CoreActivityInput
- Inheritance
-
CoreActivityInput
- Derived
Remarks
Unlike CoreActivity (which models the full inbound wire shape), an CoreActivityInput carries only what a sender is expected to populate: the activity content and body-level identity. Transport routing (service url and conversation id) is supplied explicitly to the API clients at send time, not stamped on the activity. This type is the serialized outbound payload.
Constructors
| Name | Description |
|---|---|
| CoreActivityInput(String) |
Creates a new instance of the CoreActivityInput class with the specified activity type. Defaults to Message. |
Properties
| Name | Description |
|---|---|
| Id |
Gets or sets the unique identifier for the activity. |
| Properties |
Gets the extension data dictionary for storing additional properties not defined in the schema. |
| Recipient |
Gets or sets the recipient account for this activity. Populated when the send targets a specific recipient (for example, a targeted message visible only to the inbound sender). |
| ReplyToId |
Gets or sets the id of the activity this activity is a reply to. When set, the send is threaded under the referenced activity. |
| Type |
Gets or sets the type of the activity. See ActivityType for common values. |
Methods
| Name | Description |
|---|---|
| CreateBuilder() |
Creates a new instance of the CoreActivityInputBuilder to construct outbound activity instances. |
| FromActivity(CoreActivity) |
Creates an outbound CoreActivityInput from a full (inbound-shaped) CoreActivity. Copies the activity type, id, recipient, and content (extension properties). Transport routing (conversation, service url) and the sender (from) are supplied explicitly to the API clients and are not carried through this conversion. |
| FromJsonString(String) |
Deserializes an outbound CoreActivityInput from a JSON string. |
| ToJson() |
Serializes the current activity to a JSON string. |
| ToJson<T>(JsonTypeInfo<T>) |
Serializes the current activity to a JSON string using the specified JsonTypeInfo<T> for source-generated serialization. |