public async Task SetModeAsync(CameraGenericMode mode) { await this.ApiCaller.RequestAsync<object>( HttpMethod.Get, "ctrl/mode", new Dictionary<string, string>() { { "action", mode == CameraGenericMode.Playback ? "to_pb" : mode == CameraGenericMode.Still ? "to_cap" : "to_rec" } }); }
public async Task SetModeAsync(CameraGenericMode mode) { await this.ApiCaller.RequestAsync <object>( HttpMethod.Get, "ctrl/mode", new Dictionary <string, string>() { { "action", mode == CameraGenericMode.Playback ? "to_pb" : mode == CameraGenericMode.Still ? "to_cap" : "to_rec" } }); }