HealthCardCommandType
public protocol HealthCardCommandType : CommandType
Undocumented
-
Returns a dictionary mapping from UInt16 status codes (e.g. 0x9000) to its command context specific
ResponseStatus
es.Declaration
Swift
var responseStatuses: [UInt16 : ResponseStatus] { get }
-
responseStatus(from:)
Extension methodReturns context specific
ResponseStatus
from a UInt16 code (like 0x9000, 0x6400, …)Declaration
Swift
public func responseStatus(from code: UInt16) -> ResponseStatus
Return Value
-
execute(on:writeTimeout:readTimeout:)
Extension methodExecute the command on a given card
Note
the Executable itself is not yet executed. You have to schedule/execute it on an ExecutorTypeDeclaration
Swift
public func execute(on card: HealthCardType, writeTimeout: TimeInterval = 0, readTimeout: TimeInterval = 0) -> Executable<HealthCardResponseType>
Parameters
card
the card to use for executing
self
on. Uses thecurrentCardChannel
form the card to transmit onwriteTimeout
the time in seconds to allow for the write to begin. time <= 0 no timeout
readTimeout
the time in seconds to allow for the receiving to begin. time <= 0 no timeout
Return Value
Executable that holds a strong reference to the command:
self
-
execute(on:writeTimeout:readTimeout:)
Extension methodExecute the command on a given channel
Note
the Executable itself is not yet executed. You have to schedule/execute it on an ExecutorTypeDeclaration
Swift
public func execute(on channel: CardChannelType, writeTimeout: TimeInterval = 0, readTimeout: TimeInterval = 0) -> Executable<HealthCardResponseType>
Parameters
channel
the channe to use for executing
self
onwriteTimeout
the time in seconds to allow for the write to begin. time <= 0 no timeout
readTimeout
the time in seconds to allow for the receiving to begin. time <= 0 no timeout
Return Value
Executable that holds a strong reference to the command:
self