Class AddressDistrict
- Namespace
- XENBIT.ResQueServe.Core.Models
- Assembly
- RQS.Core.dll
public record AddressDistrict : IAddressDistrict, IAddressCity, IAddressCommune, IAddressState, IEquatable<AddressDistrict>
- Inheritance
-
AddressDistrict
- Implements
- Inherited Members
Properties
AddressPackageId
public int AddressPackageId { get; set; }
Property Value
CityId
public long CityId { get; set; }
Property Value
CityName
The name of the city. This property is crucial for identifying the city within its broader regional context (e.g., state, commune).
public string CityName { get; set; }
Property Value
CommuneId
public long CommuneId { get; set; }
Property Value
CommuneName
The name of the commune.
public string CommuneName { get; set; }
Property Value
Country
The country to which this state belongs. The Country class encapsulates details like the country's name, its ISO codes, and other pertinent information.
public Country Country { get; set; }
Property Value
DistrictCoordinates
public Coordinates DistrictCoordinates { get; }
Property Value
DistrictId
public int DistrictId { get; set; }
Property Value
DistrictLat
The latitude coordinate of the district. This geographic detail supports mapping and location-based services. If the specific street coordinates are not available, these coordinates serve as a fallback location.
public double DistrictLat { get; set; }
Property Value
DistrictLng
The longitude coordinate of the district. Alongside latitude, this provides a precise location for the district on global mapping services. Like latitude, longitude will also be used as a fallback if specific street coordinates cannot be found.
public double DistrictLng { get; set; }
Property Value
DistrictName
The name of the district.
public string DistrictName { get; set; }
Property Value
DistrictPhonePrefix
The phone prefix used within the district. This property can be null if the phone prefix is not applicable or not defined.
public string? DistrictPhonePrefix { get; set; }
Property Value
DistrictZip
The postal code for the district.
public string DistrictZip { get; set; }
Property Value
StateId
public int StateId { get; set; }
Property Value
StateName
The name of the state.
public string StateName { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToString(string, string?)
Returns a string that represents the current address based on the specified format.
public string ToString(string format, string? houseNumber = null)
Parameters
formatstringUse "s" for short, the "l" format (long) includes additional address components. "td" is also available for "top-down".
houseNumberstringPlace the house number inside the address, if applicable.
Returns
- string
A string containing the address components based on the specified format.