Table of Contents

Class Address

Namespace
Vonage.Voice.Emergency
Assembly
Vonage.dll

Represents a physical address registered for emergency calling services.

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

Constructors

Address(Guid, string, string, string, string, string, AddressType, AddressLocationType, string, string)

Represents a physical address registered for emergency calling services.

public Address(Guid Id, string Name, string Line1, string Line2, string City, string Region, Address.AddressType Type, Address.AddressLocationType LocationType, string PostalCode, string Country)

Parameters

Id Guid

The unique identifier assigned to this address by Vonage.

Name string

A friendly name to identify the address (e.g., "Office HQ").

Line1 string

The first line of the street address.

Line2 string

The second line of the street address (e.g., suite or apartment number).

City string

The city where this address is located.

Region string

The state, province, or region of the address.

Type Address.AddressType

The type of address (currently only "emergency").

LocationType Address.AddressLocationType

Whether the address is a business or residential location.

PostalCode string

The postal or ZIP code of the address.

Country string

The two-character country code in ISO 3166-1 alpha-2 format (e.g., "US", "GB").

Properties

City

The city where this address is located.

[JsonPropertyName("city")]
public string City { get; init; }

Property Value

string

Country

The two-character country code in ISO 3166-1 alpha-2 format (e.g., "US", "GB").

[JsonPropertyName("country")]
public string Country { get; init; }

Property Value

string

Id

The unique identifier assigned to this address by Vonage.

[JsonPropertyName("id")]
public Guid Id { get; init; }

Property Value

Guid

Line1

The first line of the street address.

[JsonPropertyName("address_line1")]
public string Line1 { get; init; }

Property Value

string

Line2

The second line of the street address (e.g., suite or apartment number).

[JsonPropertyName("address_line2")]
public string Line2 { get; init; }

Property Value

string

LocationType

Whether the address is a business or residential location.

[JsonPropertyName("address_location_type")]
[JsonConverter(typeof(EnumDescriptionJsonConverter<Address.AddressLocationType>))]
public Address.AddressLocationType LocationType { get; init; }

Property Value

Address.AddressLocationType

Name

A friendly name to identify the address (e.g., "Office HQ").

[JsonPropertyName("address_name")]
public string Name { get; init; }

Property Value

string

PostalCode

The postal or ZIP code of the address.

[JsonPropertyName("postal_code")]
public string PostalCode { get; init; }

Property Value

string

Region

The state, province, or region of the address.

[JsonPropertyName("region")]
public string Region { get; init; }

Property Value

string

Type

The type of address (currently only "emergency").

[JsonPropertyName("type")]
[JsonConverter(typeof(EnumDescriptionJsonConverter<Address.AddressType>))]
public Address.AddressType Type { get; init; }

Property Value

Address.AddressType