Show / Hide Table of Contents

Class PrintToken

Represents identifier and parameters with optional values.

Inheritance
object
PrintToken
BarcodeToken
LogoToken
PageBreakToken
QrCodeToken
TextToken
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
Type Name Description
string id
IReadOnlyDictionarystringstring parameters

Fields

TokenDelimiter

Declaration
public const char TokenDelimiter = '\u001a'
Field Value
Type Description
char

Properties

this[string]

Declaration
protected string this[string key] { get; }
Parameters
Type Name Description
string key
Property Value
Type Description
string
Exceptions
Type Condition
KeyNotFoundException

The property is retrieved and key is not found.

Methods

ContainsKey(string)

Gets whether token contains specified parameter key.

Declaration
protected bool ContainsKey(string key)
Parameters
Type Name Description
string key
Returns
Type Description
bool

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
Type Description
int

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
Type Description
string

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

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 Description
Type Parameters
Name Description
TEnum

TryGetValue(string, out string)

Gets the value associated with specified key.

Declaration
protected bool TryGetValue(string key, out string value)
Parameters
Type Name Description
string key
string value
Returns
Type Description
bool

TryParse(string, out PrintToken)

Declaration
public static bool TryParse(string data, out PrintToken token)
Parameters
Type Name Description
string data
PrintToken token
Returns
Type Description
bool
In This Article
Na začiatok stránky Nine Digit, s.r.o. ©