Table of Contents

Class WebSocketNumber

Namespace
Vonage.Conversations
Assembly
Vonage.dll
public record WebSocketNumber : INumber, IEquatable<WebSocketNumber>
Inheritance
WebSocketNumber
Implements
Inherited Members

Constructors

WebSocketNumber(string, string)

public WebSocketNumber(string Uri, string ContentType)

Parameters

Uri string
ContentType string

Properties

ContentType

[JsonPropertyName("content_type")]
[JsonPropertyOrder(2)]
public string ContentType { get; init; }

Property Value

string

Type

The number type.

[JsonPropertyName("type")]
[JsonPropertyOrder(0)]
public string Type { get; }

Property Value

string

Uri

[JsonPropertyName("uri")]
[JsonPropertyOrder(1)]
public string Uri { get; init; }

Property Value

string

Methods

Serialize(IJsonSerializer)

Serializes the number.

public string Serialize(IJsonSerializer serializer)

Parameters

serializer IJsonSerializer

The serializer.

Returns

string

The serialized number.