Class Location
Poloha prenosnej registračnej pokladne
Inheritance
System.Object
Location
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class Location : Object, IDeepCloneable<Location>, IDeepCloneable, IEquatable<Location>
Constructors
Location(CashRegisterOtherLocation)
Vytvorí objekt polohy prenosnej registračnej pokladne z inak určenej polohy
Declaration
public Location(CashRegisterOtherLocation other)
Parameters
Type |
Name |
Description |
CashRegisterOtherLocation |
other |
Iný spôsob definovania umiestnenia
prenosnej pokladnice, na ktorej podnikateľ v danom
čase prijíma tržbu. ORP použije tento typ definovania
polohy, ak nie je možné uviesť adresu umiestnenia
prenosnej pokladnice alebo GPS súradnice.
Príklad: Taxi ABC ŠPZ=BA 123 AA; odpočívadlo Zeleneč D1
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
other je null
|
Location(GeoCoordinates)
Vytvorí objekt polohy prenosnej registračnej pokladne z GPS koordinátov
Declaration
public Location(GeoCoordinates gps)
Parameters
Type |
Name |
Description |
GeoCoordinates |
gps |
GPS súradnice miesta podľa súradnicového
systému WGS 84, na ktorom ORP vyhotovuje doklady.
ORP použije tento typ, ak vie získať svoje GPS
súradnice v rámci súradnicového systému WGS 84.
|
Location(PhysicalAddress)
Vytvorí objekt polohy prenosnej registračnej pokladne z fyzickej adresy
Declaration
public Location(PhysicalAddress address)
Parameters
Type |
Name |
Description |
PhysicalAddress |
address |
Adresa umiestnenia prenosnej pokladnice,
na ktorej podnikateľ prijíma v danom čase tržbu.
ORP použije daný typ na definovanie polohy ako adresu,
ak nemá možnosť získať presné GPS súradnice podľa
súradnicového systému WGS 84.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
address je null
|
Properties
Type
Typ polohy prenosnej registračnej pokladne
Declaration
public LocationType Type { get; }
Property Value
Value
Poloha prenosnej registračnej pokladne
Declaration
public ICloneable Value { get; }
Property Value
Type |
Description |
System.ICloneable |
|
Methods
DeepClone()
Declaration
public Location DeepClone()
Returns
Equals(Location)
Declaration
public bool Equals(Location other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Location, Location)
Declaration
public static bool Equals(Location x, Location y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetGeoCoordinates()
Získa súradnice polohy prenosnej registračnej pokladne
Declaration
public GeoCoordinates GetGeoCoordinates()
Returns
Exceptions
Type |
Condition |
System.InvalidOperationException |
Poloha nie je typu GPS
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
GetOther()
Získa inak definovanú polohu prenosnej registračnej pokladne
Declaration
public CashRegisterOtherLocation GetOther()
Returns
Exceptions
Type |
Condition |
System.InvalidOperationException |
Poloha nie je typu Other
|
GetPhysicalAddress()
Získa fyzickú adresu polohy prenosnej registračnej pokladne
Declaration
public PhysicalAddress GetPhysicalAddress()
Returns
Exceptions
Type |
Condition |
System.InvalidOperationException |
Poloha nie je typu Address
|
Operators
Equality(Location, Location)
Declaration
public static bool operator ==(Location x, Location y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(Location, Location)
Declaration
public static bool operator !=(Location x, Location y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
IDeepCloneable.DeepClone()
Declaration
object IDeepCloneable.DeepClone()
Returns
Type |
Description |
System.Object |
|
Implements
System.IEquatable<>
Extension Methods