Поделиться через


ConversationContact Class

Definition

Details of an external platform contact. Please note ConversationContact 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 BotContact, CommunicationContact and WhatsAppContact.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Communication.Messages.UnknownConversationContact))]
public abstract class ConversationContact : System.ClientModel.Primitives.IJsonModel<Azure.Communication.Messages.ConversationContact>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.Messages.ConversationContact>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.Communication.Messages.UnknownConversationContact))>]
type ConversationContact = class
    interface IJsonModel<ConversationContact>
    interface IPersistableModel<ConversationContact>
Public MustInherit Class ConversationContact
Implements IJsonModel(Of ConversationContact), IPersistableModel(Of ConversationContact)
Inheritance
ConversationContact
Derived
Attributes
Implements

Constructors

ConversationContact(String)

Initializes a new instance of ConversationContact.

Properties

Id

External platform identifier.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ConversationContact>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ConversationContact>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ConversationContact>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ConversationContact>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ConversationContact>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to