/// <summary> /// --------------------------- CONSTRUCTORS --------------------------- /// </summary> public HeadsetFinder() { this.ctxClient = CortexClient.Instance; this.headsetId = ""; this.isFoundHeadset = false; this.ctxClient.OnQueryHeadset += QueryHeadsetOK; this.ctxClient.OnHeadsetConnected += HeadsetConnectedOK; this.ctxClient.OnHeadsetDisConnected += HeadsetDisconnectedOK; }
/// <summary> /// --------------------------- CONSTRUCTORS --------------------------- /// </summary> public Authorizer() { cortexClient = CortexClient.Instance; cortexToken = ""; emotivId = ""; isEulaAccepted = false; hasAccessRight = false; SubscribeToEvents(); }
/// <summary> /// --------------------------- CONSTRUCTORS --------------------------- /// </summary> public SessionCreator() { this.sessionId = ""; this.applicationId = ""; this.ctxClient = CortexClient.Instance; this.ctxClient.OnCreateSession += CreateSessionOk; this.ctxClient.OnUpdateSession += UpdateSessionOk; }
/// <summary> /// --------------------------- CONSTRUCTORS --------------------------- /// </summary> public DataStream() { authorizer = new Authorizer(); headsetFinder = new HeadsetFinder(); sessionCreator = new SessionCreator(); profileHandler = new ProfileHandler(); cortexToken = ""; sessionId = ""; isActiveSession = false; this.profileName = "Arild"; streams = new List <string>(); // Event register ctxClient = CortexClient.Instance; SubscribeToEvents(); }