Output data from a BasicCard command call.

Namespace: BasicCard.BasicCards
Assembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)

Syntax

C#
[SerializableAttribute]
[CLSCompliantAttribute(true)]
public class BasicCardResponse : ResponseApdu
Visual Basic
<SerializableAttribute>
<CLSCompliantAttribute(true)>
Public Class BasicCardResponse
	Inherits ResponseApdu
Visual C++
[SerializableAttribute]
[CLSCompliantAttribute(true)]
public ref class BasicCardResponse : public ResponseApdu
F#
[<SerializableAttribute>]
[<CLSCompliantAttribute(true)>]
type BasicCardResponse =  
    class
        inherit ResponseApdu
    end

Examples

BasicCard command declaration

 Copy imageCopy
Declare Command &H60 &H04 TestOne(Value1 as Byte, Value2 as Integer, Value3 as Long, _
                                          Value4 as String*5, Value5 as String)

Calling this command using the BasicCard BASIC compiler:

 Copy imageCopy
Private Value1 as Byte
Private Value2 as Integer
Private Value3 as Long
Private Value4 as String*5
Private Value5 as String
Call TestOne(Value1, Value2, Value3, Value4, Value5) : CheckSW1SW2

Examine an equivalent BasicCardResponse using C# and this library:

 Copy imageCopy
<see cref="T:BasicCard.BasicCards.BasicCardCommand">...</see>
            BasicCardResponse rsp=DoCommandAndResponse(cmd)
            rsp.CheckSW1SW2()
            byte Value1=rsp.GetBasicByte();
            short Value2=rsp.GetBasicInteger();
            int Value3=rsp.GetBasicLong();
            BasicCardStringN Value4=rsp.GetBasicStringN(5);
            BasicCardString Value5=rsp.GetBasicString();

Examine an equivalent BasicCardResponse using Visual Basic and this library:

 Copy imageCopy
Dim Value1 as Byte
Dim Value2 as Short
Dim Value3 as Integer
Dim Value4 as BasicCardStringN
Dim Value5 as BasicCardString
Dim rsp as BasicCardResponse
<see cref="T:BasicCard.BasicCards.BasicCardCommand">...</see>
rsp=DoCommandAndResponse(cmd)
rsp.CheckSW1SW2()
Value1=rsp.GetBasicByte()
Value2=rsp.GetBasicInteger()
Value3=rsp.GetBasicLong()
Value4=rsp.GetBasicStringN(5)
Value5=rsp.GetBasicString()

Inheritance Hierarchy

System..::..Object
  BasicCard.ProcessorCards..::..ResponseApdu
    BasicCard.BasicCards..::..BasicCardResponse

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also