Class StorageConfiguration
Nastavenia úložiska
Inheritance
Implements
Namespace: NineDigit.eKasa
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class StorageConfiguration : Object, IEquatable<StorageConfiguration>, IDeepCloneable<StorageConfiguration>, IDeepCloneable
Constructors
StorageConfiguration()
Vytvorí inštanciu s predvolenými hodnotami
Declaration
public StorageConfiguration()
StorageConfiguration(StorageConfiguration)
Vytvorí kópiu nastavení
Declaration
public StorageConfiguration(StorageConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
StorageConfiguration | configuration | Nastavenia, ktorých hodnoty budú skopírované |
Properties
ChduPrinterBaudRate
Komunikačná rýchlosť medzi úložiskom a sériovou tlačiarňou. Predvolená hodnota je 19200.
Declaration
public int ChduPrinterBaudRate { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Examples
19200
ChduResponseTimeoutMilliseconds
Maximálny čas v milisekundách, počas ktorého bude aplikácia čakať na odpoveď z úložiska. Predvolená hodnota je 1200.
Declaration
public int ChduResponseTimeoutMilliseconds { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Examples
1200
ChduSerialPortName
Názov sérioveho portu, na ktorom je úložisko pripojené
Declaration
public string ChduSerialPortName { get; set; }
Property Value
Type | Description |
---|---|
System.String | Názov sérioveho portu. Predvolený názov portu je COM3. |
Examples
COM3 alebo /dev/ttyS0
IndexTableFilePath
Absolútna alebo relatívne cesta k adresáru alebo súboru, slúžiaceho ako umiestnenie indexovaciej tabuľky.
Declaration
public string IndexTableFilePath { get; set; }
Property Value
Type | Description |
---|---|
System.String | Okrem relatívnej alebo absolútnej cesty k súboru môže taktiež nadobúdať aj cestu k adresáru,
v ktorom bude vytvorený súbor so systémom generovaným názvom.
V prípade, že bude obshovať hodnotu |
Examples
indexTable.dat
SerialNumber
Sériové číslo úložiska. Iba pre potreby testovania alebo pre úložiská typu ChduLiteImage a ChduSkImage.
Declaration
public string SerialNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StorageModel
Typ chráneného dátového úložiska.
Declaration
public StorageModel StorageModel { get; set; }
Property Value
Type | Description |
---|---|
StorageModel | Predvolená hodnota je |
Methods
DeepClone()
Declaration
public StorageConfiguration DeepClone()
Returns
Type | Description |
---|---|
StorageConfiguration |
Equals(StorageConfiguration)
Declaration
public bool Equals(StorageConfiguration other)
Parameters
Type | Name | Description |
---|---|---|
StorageConfiguration | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(StorageConfiguration, StorageConfiguration)
Declaration
public static bool Equals(StorageConfiguration first, StorageConfiguration second)
Parameters
Type | Name | Description |
---|---|---|
StorageConfiguration | first | |
StorageConfiguration | second |
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 |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Explicit Interface Implementations
IDeepCloneable.DeepClone()
Declaration
object IDeepCloneable.DeepClone()
Returns
Type | Description |
---|---|
System.Object |