libs.nfc/NFC/APDUResponse.cs
2023-01-29 18:43:53 +01:00

25 lines
586 B
C#

using System;
namespace NFC
{
public class APDUResponse
{
public byte SW1 { get; set; }
public byte SW2 { get; set; }
public byte[] Body { get; set; }
public override string ToString()
{
if(Body != null)
{
return string.Format("SW: {0:x} {1:x} Body: {2:x}", SW1, SW2, BitConverter.ToString(Body).Replace("-", "").ToLower());
}
else
{
return string.Format("SW: {0:x} {1:x} Body: null", SW1, SW2);
}
}
}
}