Output data from a BasicCard command call.
Namespace: BasicCard.BasicCardsAssembly: 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
![]() | |
---|---|
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:
![]() | |
---|---|
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:
![]() | |
---|---|
<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:
![]() | |
---|---|
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
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.