示例#1
0
 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"
                     }
                 });
 }
示例#2
0
 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"
         }
     });
 }