Exemplo n.º 1
0
        public async Task StorePreset(int presetNum)
        {
            int finalPresetNum = presetNum - 1 >= 0 ? presetNum - 1 : 0;
            var message        = new VaddioCameraPresetRequest()
            {
                store = new VaddioCameraPresetStoreDirections()
                {
                    id = presetNum - 1, focus = false, color_correction = true
                }
            };

            await ExecutePresetCallAsync(message);
        }
Exemplo n.º 2
0
        public async Task RecallPreset(int presetNum)
        {
            int finalPresetNum = presetNum - 1 >= 0 ? presetNum - 1 : 0;
            var message        = new VaddioCameraPresetRequest()
            {
                recall = new VaddioCameraPresetRecallDirections()
                {
                    id = presetNum - 1
                }
            };

            await ExecutePresetCallAsync(message);
        }
Exemplo n.º 3
0
        private async Task ExecutePresetCallAsync(VaddioCameraPresetRequest request)
        {
            var content = JsonContent.Create <VaddioCameraPresetRequest>(request);

            await ExecuteCall(presetEndpoint, content);
        }