Beispiel #1
0
        private async Task <string> GetInfoStringTransact(string command)
        {
            var response = await Transact(command);

            if (response.IsOK)
            {
                return(response.ToInfoString());
            }
            throw UArmExceptionFactory.CreateExceptionFromResponse(response);
        }
Beispiel #2
0
        private async Task <bool> BoolTransact(string command)
        {
            var response = await Transact(command);

            if (response.IsOK)
            {
                return(response.ToBool());
            }
            throw UArmExceptionFactory.CreateExceptionFromResponse(response);
        }
Beispiel #3
0
        private async Task SetCommandTransact(string command)
        {
            var response = await Transact(command);

            if (response.IsOK)
            {
                return;
            }

            throw UArmExceptionFactory.CreateExceptionFromResponse(response);
        }