SpringCard PC/SC Helpers for .NET  18.10.10
High-level access to a few current cards and to advanced coupler features
SpringCard.NfcForum.Ndef.RtdAlternativeCarrier Class Reference
Inheritance diagram for SpringCard.NfcForum.Ndef.RtdAlternativeCarrier:
SpringCard.NfcForum.Ndef.Rtd SpringCard.NfcForum.Ndef.NdefObject

Public Member Functions

 RtdAlternativeCarrier (byte[] payload)
 
 RtdAlternativeCarrier (string carrierDateReference, byte carrierPowerState)
 
override bool Encode (ref byte[] buffer)
 
- Public Member Functions inherited from SpringCard.NfcForum.Ndef.Rtd
 Rtd (byte TNF, string Type)
 
 Rtd (byte TNF, string Type, byte[] id)
 
 Rtd (byte TNF, string Type, byte[] id, byte[] payload)
 
 Rtd (NdefObject record)
 
- Public Member Functions inherited from SpringCard.NfcForum.Ndef.NdefObject
 NdefObject (NdefObject ndef)
 
 NdefObject (byte _TNF, string _TYPE)
 
 NdefObject (byte _TNF, string _TYPE, byte[] _PAYLOAD)
 
 NdefObject (byte _TNF, string _TYPE, byte[] ID, byte[] _PAYLOAD)
 
 NdefObject (byte _TNF, byte[] _TYPE, byte[] ID, byte[] _PAYLOAD)
 
void SetMessageBegin (bool mb)
 
void SetMessageEnd (bool me)
 
int Size (ref bool is_short_record)
 
byte [] GetBytes (bool isBegin, bool isEnd)
 
byte [] GetBytes ()
 
delegate void NdefFoundCallback (NdefObject ndef)
 

Properties

byte CarrierPowerState [get]
 
string CarrierDataReference [get]
 
- Properties inherited from SpringCard.NfcForum.Ndef.NdefObject
byte TNF [get, set]
 
string TYPE [get, set]
 
byte [] ID [get, set]
 
byte [] PAYLOAD [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from SpringCard.NfcForum.Ndef.NdefObject
static bool Parse (byte[] buffer, NdefFoundCallback callback)
 
static bool Parse (byte[] buffer, ref int offset, ref NdefObject ndef, ref bool terminated)
 
static NdefObject [] Parse (byte[] buffer)
 
- Public Attributes inherited from SpringCard.NfcForum.Ndef.NdefObject
const byte MESSAGE_BEGIN = 0x80
 
const byte MESSAGE_END = 0x40
 
const byte CHUNK_FLAG = 0x20
 
const byte SHORT_RECORD = 0x10
 
const byte ID_LENGTH_PRESENT = 0x08
 
const byte TNF_MASK = 0x07
 
const byte TNF_EMPTY = 0x00
 
const byte TNF_NFC_RTD_WKN = 0x01
 
const byte TNF_MEDIA_TYPE = 0x02
 
const byte TNF_ABSOLUTE_URI = 0x03
 
const byte TNF_NFC_RTD_EXT = 0x04
 
const byte TNF_UNKNOWN = 0x05
 
const byte TNF_UNCHANGED = 0x06
 
const byte TNF_RESERVED = 0x07
 
- Protected Attributes inherited from SpringCard.NfcForum.Ndef.NdefObject
byte [] _payload = null
 
List< NdefObject_children = new List<NdefObject>()
 

Detailed Description

c* SpringCard.NfcForum.Ndef/RtdAlternativeCarrier

NAME RtdAlternativeCarrier

DESCRIPTION Represents an Alternative Carrier Record in a Handover Selector NDEF message

SYNOPSIS RtdAlternativeCarrier alternativeCarrier = new RtdAlternativeCarrier() RtdAlternativeCarrier alternativeCarrier = new RtdAlternativeCarrier(byte[] payload) RtdAlternativeCarrier alternativeCarrier = new RtdAlternativeCarrier(string carrierDateReference, byte carrierPowerState)

DERIVED FROM Rtd

USED BY RtdHandoverSelector

Member Function Documentation

◆ Encode()

override bool SpringCard.NfcForum.Ndef.RtdAlternativeCarrier.Encode ( ref byte []  buffer)
virtual

m* SpringCard.NfcForum.Ndef/RtdAlternativeCarrier.Encode

SYNOPSIS public override bool Encode(ref byte[] buffer)

DESCRIPTION Serializes first the Carrier Power State, the Carrier Data Reference and the auxiliary data references, that will become the payload of the RtdAlternativeCarrier. Then, it calls base.Encode to serialize the whole content (header). Returns true if it succeeds.

Reimplemented from SpringCard.NfcForum.Ndef.NdefObject.

Property Documentation

◆ CarrierDataReference

string SpringCard.NfcForum.Ndef.RtdAlternativeCarrier.CarrierDataReference
get

v* SpringCard.NfcForum.Ndef/RtdAlternativeCarrier.CarrierDataReference

SYNOPSIS public byte CarrierPowerState

DESCRIPTION Gets the Carrier Data Reference of the Alternative Carrier

◆ CarrierPowerState

byte SpringCard.NfcForum.Ndef.RtdAlternativeCarrier.CarrierPowerState
get

v* SpringCard.NfcForum.Ndef/RtdAlternativeCarrier.CarrierPowerState

SYNOPSIS public byte CarrierPowerState

DESCRIPTION Gets the Carrier Power State of the Alternative Carrier


The documentation for this class was generated from the following file: