Exemple #1
0
        public Task CenterOnScreenAsync()
        {
            var request = new JsonRcRequest("centerOnScreen", typeof(JsonRcResponse <object>));

            request.AddParam("resource", resourceId);
            return(Obs.SendRequestAsync <object>(request));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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));
        }
Exemple #4
0
        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));
        }