Exemplo n.º 1
0
        static async Task AsyncMain()
        {
            _client = new QLabOSCClient("192.168.0.103");
            _client.Connect();
            Console.Write("Connected! press any key to continue");
            var response = await _client.SetAlwaysReply(true);

            await LightIntensityChange(_client);

            /*Console.ReadKey();
             * var workspaces = await _client.GetWorkSpaces();
             * var workspace = workspaces.data[0];
             * Console.WriteLine(workspace.displayName);
             * var response = await _client.ConnectToWorkSpace(workspace.uniqueID);
             * Console.WriteLine("connected to work space");
             * var y = await _client.CreateWorkSpaceCue(workspace.uniqueID, CueType.Text);
             * Console.WriteLine("Text cue created with id:");
             * Console.WriteLine(y.data);
             * var z = await _client.GetWorkspaceCueLists(workspace.uniqueID);
             * await _client.StartCue(workspace.uniqueID, y.data);
             * //await Task.Delay(500);
             * Console.WriteLine("Start entering some text!!");
             * string input = Console.ReadLine();
             * while (input != "end")
             * {
             *  await _client.SetCueLiveText(workspace.uniqueID, y.data, input);
             *  input = Console.ReadLine();
             * }
             * await _client.StopCue(workspace.uniqueID, y.data);
             * Console.ReadKey();
             */
        }