HealthCardCommandType
public protocol HealthCardCommandType : CommandType
Undocumented
-
Returns a dictionary mapping from UInt16 status codes (e.g. 0x9000) to its command context specific
ResponseStatuses.Declaration
Swift
var responseStatuses: [UInt16 : ResponseStatus] { get }
-
responseStatus(from:)Extension methodReturns context specific
ResponseStatusfrom a UInt16 code (like 0x9000, 0x6400, …)Declaration
Swift
public func responseStatus(from code: UInt16) -> ResponseStatusReturn 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
cardthe card to use for executing
selfon. Uses thecurrentCardChannelform the card to transmit onwriteTimeoutthe time in seconds to allow for the write to begin. time <= 0 no timeout
readTimeoutthe 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
channelthe channe to use for executing
selfonwriteTimeoutthe time in seconds to allow for the write to begin. time <= 0 no timeout
readTimeoutthe 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