C# Класс XTAPI_Samples.GatewayStatusData

Placeholder class to store all the exchange statuses
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetServerType ( string server ) : ServerType

Returns the ServerType enumeration value based on the string parameter

Описание методов

GatewayStatusData() публичный Метод

public GatewayStatusData ( string sExchange, string sText, int bOpened, int bServerUp ) : System
sExchange string
sText string
bOpened int
bServerUp int
Результат System

IsDownloading() публичный Метод

Check if the server is currently downloading
public IsDownloading ( ServerType type ) : bool
type ServerType ServerType to request
Результат bool

IsOpen() публичный Метод

Check if the server is open
public IsOpen ( ServerType type ) : bool
type ServerType ServerType to request
Результат bool

IsServerUp() публичный Метод

Check if the server is up
public IsServerUp ( ServerType type ) : bool
type ServerType ServerType to request
Результат bool

SetStatusData() публичный Метод

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
Результат void