SpringCard AppleVAS .NET  19.06
Terminal-side implementation of Apple Pass Kit NFC
SpringCard.AppleVas.AppleVasTerminalConfig Class Reference

Encapsulate the global configuration of an Apple VAS terminal : operation mode, capabilites, and list of merchant configurations. More...

Public Member Functions

 AppleVasTerminalConfig ()
 Instantiate an empty Terminal configuration (copy of the default configuration until modified)
 

Static Public Member Functions

static AppleVasTerminalConfig LoadFromJson (JSONObject jsonData)
 Import a terminal configuration form a JSON object.
 
static AppleVasTerminalConfig LoadFromJson (string jsonString)
 Import a terminal configuration form a JSON string. Raise an exception on error.
 
static bool TryLoadFromJson (string jsonString, out AppleVasTerminalConfig terminalConfig)
 Import a terminal configuration form a JSON string. Return false on error.
 
static AppleVasTerminalConfig LoadFromJsonFile (string fileName)
 Import a terminal configuration form a JSON file. Raise an exception on error.
 
static bool TryLoadFromJsonFile (string fileName, out AppleVasTerminalConfig terminalConfig)
 Import a terminal configuration form a JSON file. Return false on error.
 

Public Attributes

const byte P2_URL_Only = 0x00
 Terminal's P2 value for URL Only.
 
const byte P2_Full_VAS = 0x01
 Terminal's P2 value for Full VAS.
 
const byte CapabilitesSet1_DualMode = 0x00
 Terminal's Capability byte 3 (SET#1) for Dual Mode (VAS app AND payment)
 
const byte CapabilitesSet1_SingleMode = 0x01
 Terminal's Capability byte 3 (SET#1) for Single Mode (VAS app OR payment)
 
const byte CapabilitesSet1_VASOnly = 0x02
 Terminal's Capability byte 3 (SET#1) for VAS Only (no payment at all)
 

Static Public Attributes

static readonly AppleVasTerminalConfig Default = new AppleVasTerminalConfig()
 Default configuration of the terminal - Suits most use cases.
 

Properties

byte P2 = P2_Full_VAS [get]
 Actual value of Terminal's P2.
 
byte CapabilitiesSet1 = CapabilitesSet1_VASOnly [get]
 Actual value of Terminal's Capability byte 3 (SET#1)
 
List< AppleVasConfigMerchants = new List<AppleVasConfig>() [get]
 Merchant(s) supported by the Terminal.
 
string Description [get]
 Description of the configuration (for test only)
 

Detailed Description

Encapsulate the global configuration of an Apple VAS terminal : operation mode, capabilites, and list of merchant configurations.


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