C# Class SPH.SPH_IngenicoRBA_Common

Inheritance: SerialPortHandler
显示文件 Open project: CORE-POS/IS4C

Protected Properties

Property Type Description
auto_state_change bool
last_message byte[]

Public Methods

Method Description
HandleMessageFromDevice ( byte buffer ) : void
HandleMsg ( String msg ) : void
Read ( ) : void
SPH_IngenicoRBA_Common ( ) : System
SPH_IngenicoRBA_Common ( string p ) : System
WriteMessageToDevice ( byte msg ) : void

Protected Methods

Method Description
GetCardType ( ) : byte[]
GetVariableMessage ( string var_code ) : byte[]
HardResetMessage ( ) : byte[]
OfflineMessage ( ) : byte[]
OnlineMessage ( ) : byte[]
ParseAuthMessage ( byte msg ) : void
ParseSigBlockMessage ( int status, byte msg ) : void
ParseSigLengthMessage ( int status, byte msg ) : void
PinEntryScreen ( ) : byte[]
ReadConfigMessage ( string group_num, string index_num ) : byte[]
SaveStateMessage ( ) : byte[]
ScreenLinesReset ( ) : byte[]
SetVariableMessage ( string var_code, string var_value ) : byte[]
SigRequestMessage ( ) : byte[]
SimpleMessageScreen ( string the_message ) : byte[]
StatusRequestMessage ( ) : byte[]
SwipeCardScreen ( ) : byte[]
TermApprovedScreen ( ) : byte[]
TermWaitScreen ( ) : byte[]
UpdateScreenMessage ( string update ) : byte[]
WriteConfigMessage ( string group_num, string index_num, string val ) : byte[]

Private Methods

Method Description
CheckLRC ( byte b ) : bool
PushOutput ( string s ) : void

Method Details

GetCardType() protected method

protected GetCardType ( ) : byte[]
return byte[]

GetVariableMessage() protected method

protected GetVariableMessage ( string var_code ) : byte[]
var_code string
return byte[]

HandleMessageFromDevice() public method

public HandleMessageFromDevice ( byte buffer ) : void
buffer byte
return void

HandleMsg() public method

public HandleMsg ( String msg ) : void
msg String
return void

HardResetMessage() protected method

protected HardResetMessage ( ) : byte[]
return byte[]

OfflineMessage() protected method

protected OfflineMessage ( ) : byte[]
return byte[]

OnlineMessage() protected method

protected OnlineMessage ( ) : byte[]
return byte[]

ParseAuthMessage() protected method

protected ParseAuthMessage ( byte msg ) : void
msg byte
return void

ParseSigBlockMessage() protected method

protected ParseSigBlockMessage ( int status, byte msg ) : void
status int
msg byte
return void

ParseSigLengthMessage() protected method

protected ParseSigLengthMessage ( int status, byte msg ) : void
status int
msg byte
return void

PinEntryScreen() protected method

protected PinEntryScreen ( ) : byte[]
return byte[]

Read() public method

public Read ( ) : void
return void

ReadConfigMessage() protected method

protected ReadConfigMessage ( string group_num, string index_num ) : byte[]
group_num string
index_num string
return byte[]

SPH_IngenicoRBA_Common() public method

public SPH_IngenicoRBA_Common ( ) : System
return System

SPH_IngenicoRBA_Common() public method

public SPH_IngenicoRBA_Common ( string p ) : System
p string
return System

SaveStateMessage() protected method

protected SaveStateMessage ( ) : byte[]
return byte[]

ScreenLinesReset() protected method

protected ScreenLinesReset ( ) : byte[]
return byte[]

SetVariableMessage() protected method

protected SetVariableMessage ( string var_code, string var_value ) : byte[]
var_code string
var_value string
return byte[]

SigRequestMessage() protected method

protected SigRequestMessage ( ) : byte[]
return byte[]

SimpleMessageScreen() protected method

protected SimpleMessageScreen ( string the_message ) : byte[]
the_message string
return byte[]

StatusRequestMessage() protected method

protected StatusRequestMessage ( ) : byte[]
return byte[]

SwipeCardScreen() protected method

protected SwipeCardScreen ( ) : byte[]
return byte[]

TermApprovedScreen() protected method

protected TermApprovedScreen ( ) : byte[]
return byte[]

TermWaitScreen() protected method

protected TermWaitScreen ( ) : byte[]
return byte[]

UpdateScreenMessage() protected method

protected UpdateScreenMessage ( string update ) : byte[]
update string
return byte[]

WriteConfigMessage() protected method

protected WriteConfigMessage ( string group_num, string index_num, string val ) : byte[]
group_num string
index_num string
val string
return byte[]

WriteMessageToDevice() public method

public WriteMessageToDevice ( byte msg ) : void
msg byte
return void

Property Details

auto_state_change protected_oe property

protected bool auto_state_change
return bool

last_message protected_oe property

protected byte[] last_message
return byte[]