Class PhysicalAddress
Reprezentuje fyzickú adresu.
Inheritance
PhysicalAddress
Namespace: NineDigiteKasa
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class PhysicalAddress : IDeepCloneable<PhysicalAddress>, IDeepCloneable, ICloneable
Constructors
PhysicalAddress(PhysicalAddress)
Declaration
public PhysicalAddress(PhysicalAddress address)
Parameters
PhysicalAddress(string, string, string, string?, long?)
Declaration
public PhysicalAddress(string streetName, string municipality, string buildingNumber = "", string? postalCode = null, long? propertyRegistrationNumber = null)
Parameters
Fields
BuildingNumberMaxLength
Declaration
public const byte BuildingNumberMaxLength = 20
Field Value
BuildingNumberMinLength
Declaration
public const byte BuildingNumberMinLength = 1
Field Value
MunicipalityMaxLength
Declaration
public const byte MunicipalityMaxLength = 100
Field Value
MunicipalityMinLength
Declaration
public const byte MunicipalityMinLength = 1
Field Value
PostalCodeFormat
Declaration
public const string PostalCodeFormat = "[0-9]{5}"
Field Value
PropertyRegistrationNumberMaxValue
Declaration
public const long PropertyRegistrationNumberMaxValue = 9999999999
Field Value
PropertyRegistrationNumberMinValue
Declaration
public const long PropertyRegistrationNumberMinValue = 1
Field Value
StreetNameMaxLength
Declaration
public const byte StreetNameMaxLength = 100
Field Value
StreetNameMinLength
Declaration
public const byte StreetNameMinLength = 1
Field Value
Properties
BuildingNumber
(Nepovinné) Názov budovy alebo číslo domu.
Declaration
public string BuildingNumber { get; }
Property Value
Municipality
Názov obce. Obcou je územnosprávna jednotka charakterizovaná
súvislým domovým osídlením a vlastným názvom. Obcou je aj mesto.
Declaration
public string Municipality { get; }
Property Value
PostalCode
(Nepovinné) Poštové smerové číslo - kód, ktorý ustanovili
poštové autority za účelom doručovania pošty.
Declaration
public string? PostalCode { get; }
Property Value
PropertyRegistrationNumber
(Nepovinné) Súpisné číslo budovy.
Declaration
public long? PropertyRegistrationNumber { get; }
Property Value
StreetName
Názov ulice. Ak obec nemá názov ulice, udáva sa tu
názov obce.
Declaration
public string StreetName { get; }
Property Value
Methods
IsBuildingNumberValid(string)
Declaration
public static bool IsBuildingNumberValid(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
IsMunicipalityValid(string)
Gets whether candidate value representing Municipality is valid.
Declaration
public static bool IsMunicipalityValid(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
IsPostalCodeValid(string?)
Gets whether candidate value representing PostalCode is valid.
Declaration
public static bool IsPostalCodeValid(string? value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
IsPropertyRegistrationNumberValid(long?)
Declaration
public static bool IsPropertyRegistrationNumberValid(long? value)
Parameters
| Type |
Name |
Description |
| long |
value |
|
Returns
IsStreetNameValid(string)
Gets whether candidate value representing StreetName is valid.
Declaration
public static bool IsStreetNameValid(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
Implements