Class PhysicalAddress
Reprezentuje fyzickú adresu.
Inheritance
System.Object
PhysicalAddress
Implements
System.ICloneable
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class PhysicalAddress : Object, IDeepCloneable<PhysicalAddress>, IDeepCloneable, ICloneable
Constructors
PhysicalAddress(PhysicalAddress)
Declaration
public PhysicalAddress(PhysicalAddress address)
Parameters
PhysicalAddress(String, String, String, String, Nullable<Int64>)
Declaration
public PhysicalAddress(string streetName, string municipality, string buildingNumber = "", string postalCode = null, Nullable<long> propertyRegistrationNumber = null)
Parameters
Type |
Name |
Description |
System.String |
streetName |
|
System.String |
municipality |
|
System.String |
buildingNumber |
|
System.String |
postalCode |
|
System.Nullable<System.Int64> |
propertyRegistrationNumber |
|
Fields
BuildingNumberMaxLength
Declaration
public const byte BuildingNumberMaxLength = 20
Field Value
Type |
Description |
System.Byte |
|
BuildingNumberMinLength
Declaration
public const byte BuildingNumberMinLength = 1
Field Value
Type |
Description |
System.Byte |
|
MunicipalityMaxLength
Declaration
public const byte MunicipalityMaxLength = 100
Field Value
Type |
Description |
System.Byte |
|
MunicipalityMinLength
Declaration
public const byte MunicipalityMinLength = 1
Field Value
Type |
Description |
System.Byte |
|
PostalCodeFormat
Declaration
public const string PostalCodeFormat = "[0-9]{5}"
Field Value
Type |
Description |
System.String |
|
PropertyRegistrationNumberMaxValue
Declaration
public const long PropertyRegistrationNumberMaxValue = 9999999999L
Field Value
Type |
Description |
System.Int64 |
|
PropertyRegistrationNumberMinValue
Declaration
public const long PropertyRegistrationNumberMinValue = 1L
Field Value
Type |
Description |
System.Int64 |
|
StreetNameMaxLength
Declaration
public const byte StreetNameMaxLength = 100
Field Value
Type |
Description |
System.Byte |
|
StreetNameMinLength
Declaration
public const byte StreetNameMinLength = 1
Field Value
Type |
Description |
System.Byte |
|
Properties
BuildingNumber
(Nepovinné) Názov budovy alebo číslo domu.
Declaration
public string BuildingNumber { get; }
Property Value
Type |
Description |
System.String |
|
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
Type |
Description |
System.String |
|
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
Type |
Description |
System.String |
|
PropertyRegistrationNumber
(Nepovinné) Súpisné číslo budovy.
Declaration
public Nullable<long> PropertyRegistrationNumber { get; }
Property Value
Type |
Description |
System.Nullable<System.Int64> |
|
StreetName
Názov ulice. Ak obec nemá názov ulice, udáva sa tu
názov obce.
Declaration
public string StreetName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
IsBuildingNumberValid(String)
Declaration
public static bool IsBuildingNumberValid(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
System.Boolean |
|
IsMunicipalityValid(String)
Gets whether candidate value representing Municipality is valid.
Declaration
public static bool IsMunicipalityValid(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
System.Boolean |
|
IsPostalCodeValid(String)
Gets whether candidate value representing PostalCode is valid.
Declaration
public static bool IsPostalCodeValid(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
System.Boolean |
|
IsPropertyRegistrationNumberValid(Nullable<Int64>)
Declaration
public static bool IsPropertyRegistrationNumberValid(Nullable<long> value)
Parameters
Type |
Name |
Description |
System.Nullable<System.Int64> |
value |
|
Returns
Type |
Description |
System.Boolean |
|
IsStreetNameValid(String)
Gets whether candidate value representing StreetName is valid.
Declaration
public static bool IsStreetNameValid(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
IDeepCloneable<PhysicalAddress>.DeepClone()
Declaration
PhysicalAddress IDeepCloneable<PhysicalAddress>.DeepClone()
Returns
IDeepCloneable.DeepClone()
Declaration
object IDeepCloneable.DeepClone()
Returns
Type |
Description |
System.Object |
|
Implements
System.ICloneable