private async void Validate() { SALLab05.ServiceClient ServiceClient = new SALLab05.ServiceClient(); var TextValidator = FindViewById <TextView>(Resource.Id.TextValidator); string StudentEmail = "xxxx"; string Password = "******"; string myDevice = Android.Provider .Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId); SALLab05.ResultInfo Result = await ServiceClient.ValidateAsync(StudentEmail, Password, myDevice); //Android.App.AlertDialog.Builder Builder = new Android.App.AlertDialog.Builder(this); //AlertDialog Alert = Builder.Create(); //Alert.SetTitle("Resultado de la Verificacion"); // Alert.SetIcon(Resource.Drawable.Icon); TextValidator.Text = ($"{Result.Status} \n{Result.Fullname}\n {Result.Token}"); //TextValidator.Gravity= ($"{Result.Status} \n{Result.Fullname}\n {Result.Token}"); // Alert.SetButton("Ok", (s, ev) => { }); // Alert.Show(); }
async void Validate() { var client = new SALLab05.ServiceClient(); var resulta = await client.ValidateAsync(“correo”, “pass”, this); var alert = UIAlertController.Create("Resultado", $"{resulta.Status}\n{resulta.FullName}\n{resulta.Token}", UIAlertControllerStyle.Alert); alert.AddAction(UIAlertAction.Create("Ok", UIAlertActionStyle.Default, null)); PresentViewController(alert, true, null); }
private async void Validate() { var client = new SALLab05.ServiceClient(); var result = await client.ValidateAsync("*****@*****.**", "rabetao6nove", this); var alert = UIAlertController.Create("OK", $"{result.Status}\n{result.FullName}\n{result.Token}", UIAlertControllerStyle.Alert); alert.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null)); PresentViewController(alert, true, null); }
async void Validate() { var Client = new SALLab05.ServiceClient(); var Result = await Client.ValidateAsync("email", "password", this); var Alert = UIAlertController.Create("Resultado", $"{Result.Status}\n{Result.FullName}\n{Result.Token}", UIAlertControllerStyle.Alert); Alert.AddAction(UIAlertAction.Create("Ok", UIAlertActionStyle.Default, null)); PresentViewController(Alert, true, null); }
public async void Validate(string device) { string Result; var ValidationText = FindViewById <TextView>(Resource.Id.ValidationText); var ServiceClient = new SALLab05.ServiceClient(); var SvcResult = await ServiceClient.ValidateAsync( "*****@*****.**", "**************", device); Result = $"{SvcResult.Status}\n{SvcResult.Fullname}\n{SvcResult.Token}"; ValidationText.Text = Result; }
async void validar() { var serviceClient = new SALLab05.ServiceClient(); var user = "******"; var pass = "******"; var phoneInfo = Android.Provider.Settings.Secure.GetString( ContentResolver, Android.Provider.Settings.Secure.AndroidId);; var serviceResult = await serviceClient.ValidateAsync(user, pass, phoneInfo); tvPrimero.Text = serviceResult.Status.ToString(); tvSegundo.Text = serviceResult.Fullname; tvTercero.Text = serviceResult.Token; }
private async void Validate() { string StudentEmail = "email"; string Password = "******"; string myDevice = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId); var ServiceClient = new SALLab05.ServiceClient(); var Result = await ServiceClient.ValidateAsync(StudentEmail, Password, myDevice); var ResultText = FindViewById <TextView>(Resource.Id.ResultTextView); ResultText.SetPadding(40, 20, 0, 0); ResultText.Text = $"{Result.Status}\n{Result.Fullname}\n{Result.Token}"; }
private async Task SendEvidence() { SALLab05.ServiceClient client = new SALLab05.ServiceClient(); string email = "*****@*****.**"; string password = @"p4$§\/\/*Rd"; string deviceInfo = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId); var resultInfo = await client.ValidateAsync(email, password, deviceInfo); textView.Text = resultInfo.Status.ToString() + "\n"; textView.Text += resultInfo.Fullname + "\n"; textView.Text += resultInfo.Token; }
async Task Validate() { SALLab05.ServiceClient ServiceClient = new SALLab05.ServiceClient(); string StudentMail = "*****@*****.**"; string Password = "******"; string myDevice = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId); var Result = await ServiceClient.ValidateAsync(StudentMail, Password, myDevice); var TextViewValidacion = FindViewById <TextView>(Resource.Id.ValidacionTextView); TextViewValidacion.Text = $"{Result.Status}\n{Result.Fullname}\n{Result.Token}"; }
private async void Validate() { var menssage = FindViewById <TextView>(Resource.Id.message); var ServiceClient = new SALLab05.ServiceClient(); string StudentEmail = "*****@*****.**"; string Password = "******"; string myDevice = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId); var Result = await ServiceClient.ValidateAsync(StudentEmail, Password, myDevice); menssage.Text = $"{Result.Status}\n{Result.Fullname}\n{Result.Token}"; }
private async void Validate() { // enviando evidencia var serviceClient = new SALLab05.ServiceClient(); string email = ""; string password = ""; string myDevice = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId ); var result = await serviceClient.ValidateAsync(email, password, myDevice); RunOnUiThread(() => { FindViewById <TextView>(Resource.Id.EvidenciaTextView).Text = $"{result.Status}\n{result.Fullname}\n{result.Token}"; }); }
async void Validate() { var Client = new SALLab05.ServiceClient(); var Result = await Client.ValidateAsync("*****@*****.**", "fsoe250asot600", this); var Alert = UIAlertController.Create("Resultado", $"{Result.Status}\n{Result.FullName}\n{Result.Token}", UIAlertControllerStyle.Alert); Alert.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null)); PresentViewController(Alert, true, null); }
private async void Validate() { var TextValidator = FindViewById <TextView>(Resource.Id.TextValidator); SALLab05.ServiceClient ServiceClient = new SALLab05.ServiceClient(); string StudentEmail = "*****@*****.**"; string Password = "******"; string myDevice = Android.Provider .Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId); SALLab05.ResultInfo Result = await ServiceClient.ValidateAsync(StudentEmail, Password, myDevice); TextValidator.Text = ($"{Result.Status} \n{Result.Fullname}\n {Result.Token}"); }