Share via


AddParticipantsOptions Class

Definition

Request payload for adding participants to a conversation.

public class AddParticipantsOptions : System.ClientModel.Primitives.IJsonModel<Azure.Communication.Messages.AddParticipantsOptions>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.Messages.AddParticipantsOptions>
type AddParticipantsOptions = class
    interface IJsonModel<AddParticipantsOptions>
    interface IPersistableModel<AddParticipantsOptions>
Public Class AddParticipantsOptions
Implements IJsonModel(Of AddParticipantsOptions), IPersistableModel(Of AddParticipantsOptions)
Inheritance
AddParticipantsOptions
Implements

Constructors

AddParticipantsOptions(IEnumerable<ConversationParticipant>)

Initializes a new instance of AddParticipantsOptions.

Properties

Participants

List of participants to add. Please note ConversationParticipant is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ExternalConversationParticipant and InternalConversationParticipant.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AddParticipantsOptions>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AddParticipantsOptions>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AddParticipantsOptions>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AddParticipantsOptions>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AddParticipantsOptions>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to