public static async Task <bool> TryToSignInAsync(string name, string password)
        {
            var response = await LoginAsync(name, password);

            if (response.IsError)
            {
                return(false);
            }

            await ResourceDataClient.SetBearer(response.AccessToken);

            return(true);
        }
 private async Task DownloadFilesAsync()
 {
     if (Program.ImageExists())
     {
         await ResourceDataClient.DownloadFile("Image.png");
     }
     if (Log.LogExists())
     {
         await ResourceDataClient.DownloadFile("Sesion.log");
     }
     if (SerialData.DataExists())
     {
         await ResourceDataClient.DownloadFile("Data.ev");
     }
 }