C# 클래스 XTAPI_Samples.GatewayStatusData

Placeholder class to store all the exchange statuses
파일 보기 프로젝트 열기: tradingtechnologies/CodeSamples_XTAPI_CSharp

공개 메소드들

메소드 설명
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