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
HealthCardCommandfrom this builder instance. Returns:HealthCardCommand -
Deconstruct(s) a given
HealthCardCommandback into a builder. Parameter: - healthCardCommand: theHealthCardCommandtheHealthCardCommandBuilderwill copy the parameters from Returns:HealthCardCommandBuilderholding the properties of the givenHealthCardCommand -
Returns a
HealthCardCommandBuilderwith cla set. -
Returns a
HealthCardCommandBuilderwith ins set. -
Returns a
HealthCardCommandBuilderwith p1 set. -
Returns a
HealthCardCommandBuilderwith p2 set. -
Returns a
HealthCardCommandBuilderwith data set. -
Returns a
HealthCardCommandBuilderwith data appended to existing data. -
Returns a
HealthCardCommandBuilderwith ne set. -
Returns a
HealthCardCommandBuilderwith responseStatuses set. -
Marker for setting the first bit (i.e. 0x80) when working with
ShortFileIdentifier
View on GitHub
HealthCardCommandBuilder Class Reference