Class PrintToken
Represents identifier and parameters with optional values.
Namespace: NineDigiteKasa
Assembly: NineDigit.eKasa.dll
Syntax
public abstract class PrintToken
Constructors
PrintToken(string)
Declaration
protected PrintToken(string id)
Parameters
| Type |
Name |
Description |
| string |
id |
|
PrintToken(string, IReadOnlyDictionary<string, string>)
Declaration
protected PrintToken(string id, IReadOnlyDictionary<string, string> parameters)
Parameters
Fields
TokenDelimiter
Declaration
public const char TokenDelimiter = '\u001a'
Field Value
Properties
this[string]
Declaration
protected string this[string key] { get; }
Parameters
| Type |
Name |
Description |
| string |
key |
|
Property Value
Exceptions
Methods
ContainsKey(string)
Gets whether token contains specified parameter key.
Declaration
protected bool ContainsKey(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
Returns
GetIntValueOrDefault(string)
Gets the value associated with specified key.
If key is not found, or value associated with given key is not integer, null value is returned.
Declaration
protected int? GetIntValueOrDefault(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
Returns
GetValueOrDefault(string)
Gets the value associated with specified key.
If key is not found, null value is returned.
Declaration
protected string GetValueOrDefault(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
TryGetEnumValue<TEnum>(string)
Gets enum value associated with specified key.
If enum value can be parsed, true is returned. false otherwise.
Declaration
protected TEnum? TryGetEnumValue<TEnum>(string key) where TEnum : struct
Parameters
| Type |
Name |
Description |
| string |
key |
|
Returns
Type Parameters
TryGetValue(string, out string)
Gets the value associated with specified key.
Declaration
protected bool TryGetValue(string key, out string value)
Parameters
Returns
TryParse(string, out PrintToken)
Declaration
public static bool TryParse(string data, out PrintToken token)
Parameters
Returns