HealthCardCommandType

public protocol HealthCardCommandType : CommandType

Undocumented

  • responseStatus(from:) Extension method

    Returns context specific ResponseStatus from a UInt16 code (like 0x9000, 0x6400, …)

    Declaration

    Swift

    public func responseStatus(from code: UInt16) -> ResponseStatus

    Return Value

    ResponseStatus

  • Execute the command on a given card

    Note

    the Executable itself is not yet executed. You have to schedule/execute it on an ExecutorType

    Declaration

    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 the currentCardChannel form the card to transmit on

    writeTimeout

    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 the command on a given channel

    Note

    the Executable itself is not yet executed. You have to schedule/execute it on an ExecutorType

    Declaration

    Swift

    public func execute(on channel: CardChannelType, writeTimeout: TimeInterval = 0, readTimeout: TimeInterval = 0)
                    -> Executable<HealthCardResponseType>

    Parameters

    channel

    the channe to use for executing self on

    writeTimeout

    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