C# Class com.clover.remotepay.transport.CloverTransport

显示文件 Open project: clover/remote-pay-windows Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Subscribe ( CloverTransportObserver observer ) : void
Unsubscribe ( CloverTransportObserver observer ) : void
sendMessage ( string message ) : int

Protected Methods

Method Description
EnableLogging ( ) : void
EnablePinging ( int pingSleepSeconds ) : void
LoggingEnabled ( ) : bool
TransportLog ( string msg ) : void
getPingSleepSeconds ( ) : int
onDeviceConnected ( ) : void
onDeviceDisconnected ( ) : void
onDeviceError ( int code, string message ) : void
onDeviceReady ( ) : void
onMessage ( string message ) : void

Should be called by subclasses when a message is received.

Method Details

Dispose() public abstract method

public abstract Dispose ( ) : void
return void

EnableLogging() protected method

protected EnableLogging ( ) : void
return void

EnablePinging() protected method

protected EnablePinging ( int pingSleepSeconds ) : void
pingSleepSeconds int
return void

LoggingEnabled() protected method

protected LoggingEnabled ( ) : bool
return bool

Subscribe() public method

public Subscribe ( CloverTransportObserver observer ) : void
observer CloverTransportObserver
return void

TransportLog() protected method

protected TransportLog ( string msg ) : void
msg string
return void

Unsubscribe() public method

public Unsubscribe ( CloverTransportObserver observer ) : void
observer CloverTransportObserver
return void

getPingSleepSeconds() protected method

protected getPingSleepSeconds ( ) : int
return int

onDeviceConnected() protected method

protected onDeviceConnected ( ) : void
return void

onDeviceDisconnected() protected method

protected onDeviceDisconnected ( ) : void
return void

onDeviceError() protected method

protected onDeviceError ( int code, string message ) : void
code int
message string
return void

onDeviceReady() protected method

protected onDeviceReady ( ) : void
return void

onMessage() protected method

Should be called by subclasses when a message is received.
protected onMessage ( string message ) : void
message string
return void

sendMessage() public abstract method

public abstract sendMessage ( string message ) : int
message string
return int