Class Conversation
- Namespace
- Vonage.Conversations
- Assembly
- Vonage.dll
Represents a conversation.
public record Conversation : IEquatable<Conversation>
- Inheritance
-
Conversation
- Implements
- Inherited Members
Constructors
Conversation(string, string, Maybe<string>, Maybe<Uri>, string, int, Timestamp, Maybe<Properties>, Links, Maybe<EmbeddedConversationData>)
Represents a conversation.
public Conversation(string Id, string Name, Maybe<string> DisplayName, Maybe<Uri> ImageUrl, string State, int SequenceNumber, Timestamp Timestamp, Maybe<Properties> Properties, Links Links, Maybe<EmbeddedConversationData> Embedded)
Parameters
IdstringThe unique identifier for this conversation
NamestringYour internal conversation name. Must be unique
DisplayNameMaybe<string>The public facing name of the conversation
ImageUrlMaybe<Uri>An image URL that you associate with the conversation
StatestringThe state the conversation is in.
SequenceNumberintThe last Event ID in this conversation. This ID can be used to retrieve a specific event.
TimestampTimestampRepresents the conversation history
PropertiesMaybe<Properties>Conversation properties
LinksLinksAdditional links
EmbeddedMaybe<EmbeddedConversationData>
Properties
DisplayName
The public facing name of the conversation
[JsonConverter(typeof(MaybeJsonConverter<string>))]
public Maybe<string> DisplayName { get; init; }
Property Value
Embedded
[JsonPropertyName("_embedded")]
[JsonConverter(typeof(MaybeJsonConverter<EmbeddedConversationData>))]
public Maybe<EmbeddedConversationData> Embedded { get; init; }
Property Value
Id
The unique identifier for this conversation
public string Id { get; init; }
Property Value
ImageUrl
An image URL that you associate with the conversation
[JsonConverter(typeof(MaybeJsonConverter<Uri>))]
public Maybe<Uri> ImageUrl { get; init; }
Property Value
Links
Additional links
[JsonPropertyName("_links")]
public Links Links { get; init; }
Property Value
Name
Your internal conversation name. Must be unique
public string Name { get; init; }
Property Value
Properties
Conversation properties
[JsonConverter(typeof(MaybeJsonConverter<Properties>))]
public Maybe<Properties> Properties { get; init; }
Property Value
SequenceNumber
The last Event ID in this conversation. This ID can be used to retrieve a specific event.
public int SequenceNumber { get; init; }
Property Value
State
The state the conversation is in.
public string State { get; init; }
Property Value
Timestamp
Represents the conversation history
public Timestamp Timestamp { get; init; }