HealthCardCommandBuilder
Builder to assemble an instance of HealthCardCommand
which is holding a CommandType
and a dictionary responseStatuses [UInt16: ResponseStatus].
Note
This builder is extended by static convenience functions which provide fully configured instances ofHealthCardCommandBuilder
for their respective use cases (e.g. Select, Activate, …)
Usage Example:
let hcc: HealthCardCommand = try HealthCardCommandBuilder.Erase.eraseFileCommand().build()
-
Constructor of this builder containing all parameters.
-
Convenience constructor initializing this class with some default values to be overwritten.
-
Constructs a
HealthCardCommand
from this builder instance. Returns:HealthCardCommand
-
Deconstruct(s) a given
HealthCardCommand
back into a builder. Parameter: - healthCardCommand: theHealthCardCommand
theHealthCardCommandBuilder
will copy the parameters from Returns:HealthCardCommandBuilder
holding the properties of the givenHealthCardCommand
-
Returns a
HealthCardCommandBuilder
with cla set. -
Returns a
HealthCardCommandBuilder
with ins set. -
Returns a
HealthCardCommandBuilder
with p1 set. -
Returns a
HealthCardCommandBuilder
with p2 set. -
Returns a
HealthCardCommandBuilder
with data set. -
Returns a
HealthCardCommandBuilder
with data appended to existing data. -
Returns a
HealthCardCommandBuilder
with ne set. -
Returns a
HealthCardCommandBuilder
with responseStatuses set. -
Marker for setting the first bit (i.e. 0x80) when working with
ShortFileIdentifier