C# Class XTAPI_Samples.GatewayStatusData

Placeholder class to store all the exchange statuses
Afficher le fichier Open project: tradingtechnologies/CodeSamples_XTAPI_CSharp

Méthodes publiques

Méthode 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

Méthode Description
GetServerType ( string server ) : ServerType

Returns the ServerType enumeration value based on the string parameter

Method Details

GatewayStatusData() public méthode

public GatewayStatusData ( string sExchange, string sText, int bOpened, int bServerUp ) : System
sExchange string
sText string
bOpened int
bServerUp int
Résultat System

IsDownloading() public méthode

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

IsOpen() public méthode

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

IsServerUp() public méthode

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

SetStatusData() public méthode

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
Résultat void