Table of Contents

Class Conversation

Namespace
Vonage.Conversations
Assembly
Vonage.dll

Represents a conversation.

public record Conversation : IEquatable<Conversation>
Inheritance
Conversation
Implements
Inherited Members

Constructors

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

Id string

The unique identifier for this conversation

Name string

Your internal conversation name. Must be unique

DisplayName Maybe<string>

The public facing name of the conversation

ImageUrl Maybe<Uri>

An image URL that you associate with the conversation

State string

The state the conversation is in.

SequenceNumber int

The last Event ID in this conversation. This ID can be used to retrieve a specific event.

Timestamp Timestamp

Represents the conversation history

Properties Maybe<Properties>

Conversation properties

Links Links

Additional links

Embedded Maybe<EmbeddedConversationData>

Properties

DisplayName

The public facing name of the conversation

[JsonConverter(typeof(MaybeJsonConverter<string>))]
public Maybe<string> DisplayName { get; init; }

Property Value

Maybe<string>

Embedded

[JsonPropertyName("_embedded")]
[JsonConverter(typeof(MaybeJsonConverter<EmbeddedConversationData>))]
public Maybe<EmbeddedConversationData> Embedded { get; init; }

Property Value

Maybe<EmbeddedConversationData>

Id

The unique identifier for this conversation

public string Id { get; init; }

Property Value

string

ImageUrl

An image URL that you associate with the conversation

[JsonConverter(typeof(MaybeJsonConverter<Uri>))]
public Maybe<Uri> ImageUrl { get; init; }

Property Value

Maybe<Uri>

Additional links

[JsonPropertyName("_links")]
public Links Links { get; init; }

Property Value

Links

Name

Your internal conversation name. Must be unique

public string Name { get; init; }

Property Value

string

Properties

Conversation properties

[JsonConverter(typeof(MaybeJsonConverter<Properties>))]
public Maybe<Properties> Properties { get; init; }

Property Value

Maybe<Properties>

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

int

State

The state the conversation is in.

public string State { get; init; }

Property Value

string

Timestamp

Represents the conversation history

public Timestamp Timestamp { get; init; }

Property Value

Timestamp