Class Address
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
IdGuidThe unique identifier assigned to this address by Vonage.
NamestringA friendly name to identify the address (e.g., "Office HQ").
Line1stringThe first line of the street address.
Line2stringThe second line of the street address (e.g., suite or apartment number).
CitystringThe city where this address is located.
RegionstringThe state, province, or region of the address.
TypeAddress.AddressTypeThe type of address (currently only "emergency").
LocationTypeAddress.AddressLocationTypeWhether the address is a business or residential location.
PostalCodestringThe postal or ZIP code of the address.
CountrystringThe 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
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
Id
The unique identifier assigned to this address by Vonage.
[JsonPropertyName("id")]
public Guid Id { get; init; }
Property Value
Line1
The first line of the street address.
[JsonPropertyName("address_line1")]
public string Line1 { get; init; }
Property Value
Line2
The second line of the street address (e.g., suite or apartment number).
[JsonPropertyName("address_line2")]
public string Line2 { get; init; }
Property Value
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
Name
A friendly name to identify the address (e.g., "Office HQ").
[JsonPropertyName("address_name")]
public string Name { get; init; }
Property Value
PostalCode
The postal or ZIP code of the address.
[JsonPropertyName("postal_code")]
public string PostalCode { get; init; }
Property Value
Region
The state, province, or region of the address.
[JsonPropertyName("region")]
public string Region { get; init; }
Property Value
Type
The type of address (currently only "emergency").
[JsonPropertyName("type")]
[JsonConverter(typeof(EnumDescriptionJsonConverter<Address.AddressType>))]
public Address.AddressType Type { get; init; }