private async Task <SALLab03.ResultInfo> Validate() { var ServiceClient = new SALLab03.ServiceClient(); string Email = "XXXXXXX"; string Password = "******"; string myDevice = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId); SALLab03.ResultInfo Result = await ServiceClient.ValidateAsync( Email, Password, myDevice); return(Result); }
private async void Validate() { var serviceClient = new SALLab03.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); var dialog = new AlertDialog.Builder(this); AlertDialog alert = dialog.Create(); alert.SetMessage($"{result.Status}\n{result.Fullname}\n{result.Token}"); alert.SetButton("Ok", (s, ev) => { }); alert.Show(); }
private async void Validate() { var ServiceClient = new SALLab03.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); Android.App.AlertDialog.Builder Builder = new AlertDialog.Builder(this); AlertDialog Alert = Builder.Create(); Alert.SetTitle("Resultado de verificacion"); //Alert.SetIcon(Resource.Drawable.notification_template_icon_bg); Alert.SetMessage($"{Result.Status}\n{Result.Fullname})\n{Result.Token}"); Alert.SetButton("OK", (s, ev) => { }); Alert.Show(); }
private async void Validate() { var ServiceClient = new SALLab03.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); Android.App.AlertDialog.Builder Builder = new AlertDialog.Builder(this); AlertDialog Alert = Builder.Create(); Alert.SetTitle("Resultado de la verificacion"); Alert.SetIcon(Resource.Drawable.Icon); Alert.SetMessage($"{Result.Status}\n{Result.Fullname} \n Result.Token"); Alert.SetButton("OK", (s, ev) => { }); Alert.Show(); }
private async void Validate() { var serviceClient = new SALLab03.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); var alert = new AlertDialog.Builder(this).Create(); alert.SetTitle("Resultado dela verificación"); alert.SetIcon(Resource.Drawable.Icon); alert.SetMessage($"{result.Status}\n{result.Fullname}\n{result.Token}"); alert.SetButton("OK", (sender, e) => { }); alert.Show(); }
private async void Validate() { SALLab03.ServiceClient ServiceClient = new SALLab03.ServiceClient(); string StudentMail = "*****@*****.**"; string Password = "******"; string myDevice = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId); //SALLab03.ResultInfo Result = await ServiceClient.ValidateAsync(StudentMail, Password, myDevice); var Result = await ServiceClient.ValidateAsync(StudentMail, Password, myDevice); Android.App.AlertDialog.Builder Builder = new AlertDialog.Builder(this); AlertDialog Alert = Builder.Create(); Alert.SetTitle("Resultado de la verificación"); Alert.SetIcon(Resource.Drawable.Icon); Alert.SetMessage($"{Result.Status}\n{Result.Fullname}\n{Result.Token}"); Alert.SetButton("Ok", (s, ev) => { }); Alert.Show(); }