Table of Contents

Class EmergencyNumberResponse

Namespace
Vonage.Voice.Emergency
Assembly
Vonage.dll

Represents the response from an emergency number API operation, containing the number details and its assigned address.

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

Constructors

EmergencyNumberResponse(PhoneNumber, string, Address)

Represents the response from an emergency number API operation, containing the number details and its assigned address.

public EmergencyNumberResponse(PhoneNumber Number, string ContactName, Address Address)

Parameters

Number PhoneNumber

The phone number in E.164 format.

ContactName string

The contact name associated with this emergency number.

Address Address

The emergency address assigned to this number.

Properties

Address

The emergency address assigned to this number.

[JsonPropertyName("address")]
public Address Address { get; init; }

Property Value

Address

ContactName

The contact name associated with this emergency number.

[JsonPropertyName("contact_name")]
public string ContactName { get; init; }

Property Value

string

Number

The phone number in E.164 format.

[JsonPropertyName("number")]
[JsonConverter(typeof(PhoneNumberJsonConverter))]
public PhoneNumber Number { get; init; }

Property Value

PhoneNumber