public async void Validate(string device, string correo, string contrasena)
        {
            var ValidationText = FindViewById <TextView>(Resource.Id.ValidationText);
            var ServiceClient  = new SALLab12.ServiceClient();
            var SvcResult      = await ServiceClient.ValidateAsync(
                correo,
                contrasena,
                device);

            ValidationText.Text = $"{SvcResult.FullName}\n{SvcResult.Status}\n{SvcResult.Token}";
        }
Example #2
0
        private async void Validate()
        {
            var ServiceClient = new SALLab12.ServiceClient();

            string StudentEmail = "*****@*****.**";
            string Password     = "******";
            string myDevice     = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId);

            var txtValidar = FindViewById <TextView>(Resource.Id.txtValidar);

            var Result = await ServiceClient.ValidateAsync(StudentEmail, Password, myDevice);

            txtValidar.Text = $"{Result.FullName}\n{Result.Status}\n{Result.Token}";
        }
        async Task Validate()
        {
            SALLab12.ServiceClient ServiceClient = new SALLab12.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}";
        }
Example #4
0
        private async Task Validar()
        {
            var device = Android.Provider.Settings.Secure.GetString(ContentResolver,
                                                                    Android.Provider.Settings.Secure.AndroidId);
            var email    = "";
            var password = "";

            //Llamar al servicio para registrar la actividad:
            var client   = new SALLab12.ServiceClient();
            var response = await client.ValidateAsync(email, password, device);

            var result = $"{response.Status}\n{response.FullName}\n{response.Token}";

            tvResultados.Text = result;
        }
Example #5
0
        public async System.Threading.Tasks.Task <string> Validate()
        {
            SALLab12.ServiceClient client = new SALLab12.ServiceClient();

            string myD = Android.Provider.Settings.Secure.GetString(
                ContentResolver, Android.Provider.Settings.Secure.AndroidId);


            SALLab12.ResultInfo Result =
                await client.ValidateAsync(
                    Email, Password, myD);


            return($"{Result.Status}\n{Result.FullName}\n{Result.Token}");
        }
        private async void ValidarActividad()
        {
            string deviceId      = Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId);
            var    ResultadoText = FindViewById <TextView>(Resource.Id.ResultadoText);

            DataValidar = (ValidacionComplex)this.FragmentManager.FindFragmentByTag("DataValidar");
            if (DataValidar == null)
            {
                DataValidar = new ValidacionComplex();
                var FragmentTransaction = this.FragmentManager.BeginTransaction();
                FragmentTransaction.Add(DataValidar, "DataValidar");
                FragmentTransaction.Commit();

                SALLab12.ServiceClient ServiceClient = new SALLab12.ServiceClient();
                DataValidar.Result = await ServiceClient.ValidateAsync(studentEmail, studentPassword, deviceId);
            }
            ResultadoText.Text = DataValidar.ToString();
        }