public Task CenterOnScreenAsync() { var request = new JsonRcRequest("centerOnScreen", typeof(JsonRcResponse <object>)); request.AddParam("resource", resourceId); return(Obs.SendRequestAsync <object>(request)); }
public Task SetTransformAsync(IPartialTransform transform) { var request = new JsonRcRequest("setTransform", typeof(JsonRcResponse <object>)); request.AddParam("resource", resourceId); request.AddParam("args", new[] { transform }); return(Obs.SendRequestAsync <object>(request)); }
public Task RotateAsync(float deg) { var request = new JsonRcRequest("rotate", typeof(JsonRcResponse <object>)); request.AddParam("resource", resourceId); request.AddParam("args", new[] { deg }); return(Obs.SendRequestAsync <object>(request)); }
public Task SetVisibilityAsync(bool visible) { var request = new JsonRcRequest("setVisibility", typeof(JsonRcResponse <object>)); request.AddParam("resource", resourceId); request.AddParam("args", new[] { visible }); return(Obs.SendRequestAsync <object>(request)); }