Class EmergencyNumberResponse
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
NumberPhoneNumberThe phone number in E.164 format.
ContactNamestringThe contact name associated with this emergency number.
AddressAddressThe emergency address assigned to this number.
Properties
Address
The emergency address assigned to this number.
[JsonPropertyName("address")]
public Address Address { get; init; }
Property Value
ContactName
The contact name associated with this emergency number.
[JsonPropertyName("contact_name")]
public string ContactName { get; init; }
Property Value
Number
The phone number in E.164 format.
[JsonPropertyName("number")]
[JsonConverter(typeof(PhoneNumberJsonConverter))]
public PhoneNumber Number { get; init; }