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

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

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

            if (response.IsOK)
            {
                return;
            }

            throw UArmExceptionFactory.CreateExceptionFromResponse(response);
        }