C# Class XTAPI_Samples.GatewayStatusData

Placeholder class to store all the exchange statuses
Show file Open project: tradingtechnologies/CodeSamples_XTAPI_CSharp

Public Methods

Method Description
GatewayStatusData ( string sExchange, string sText, int bOpened, int bServerUp ) : System
IsDownloading ( ServerType type ) : bool

Check if the server is currently downloading

IsOpen ( ServerType type ) : bool

Check if the server is open

IsServerUp ( ServerType type ) : bool

Check if the server is up

SetStatusData ( string sText, int bOpened, int bServerUp ) : void

Set the status data

Private Methods

Method Description
GetServerType ( string server ) : ServerType

Returns the ServerType enumeration value based on the string parameter

Method Details

GatewayStatusData() public method

public GatewayStatusData ( string sExchange, string sText, int bOpened, int bServerUp ) : System
sExchange string
sText string
bOpened int
bServerUp int
return System

IsDownloading() public method

Check if the server is currently downloading
public IsDownloading ( ServerType type ) : bool
type ServerType ServerType to request
return bool

IsOpen() public method

Check if the server is open
public IsOpen ( ServerType type ) : bool
type ServerType ServerType to request
return bool

IsServerUp() public method

Check if the server is up
public IsServerUp ( ServerType type ) : bool
type ServerType ServerType to request
return bool

SetStatusData() public method

Set the status data
public SetStatusData ( string sText, int bOpened, int bServerUp ) : void
sText string sText value from OnExchangeStateUpdate
bOpened int bOpened value from OnExchangeStateUpdate
bServerUp int bServerUp value from OnExchangeStateUpdate
return void