async void init(string query) { Task <List <ObjetoError> > pl = ConsultaAcceder.getJsonAcceder(query); List <ObjetoError> p = await pl; error = p[0]; if (error.Status.Equals("correcto")) { Application.Current.Properties["id"] = error.Mensaje; Application.Current.Properties["usuario"] = miCorreo; await Application.Current.SavePropertiesAsync(); //await Navigation.PushAsync(new NavigationPage(new MainPage())); Application.Current.MainPage = new NavigationPage(new MainPage()); await((NavigationPage)Application.Current.MainPage).PopAsync(); //MainPage = new NavigationPage(new MainPage()); } else { DependencyService.Get <IMessage>().LongAlert(error.Mensaje); } }
async void datosErrorGustos(string query) { do { Task <List <ObjetoError> > pl = ConsultaGustos.errorMisGustos(query); List <ObjetoError> p = await pl; error = p[0]; } while (error.Status.Equals("fallo")); datosGustos("query&id=" + Application.Current.Properties["id"]); }
public async void compruebaMGustas() { Task <List <ObjetoError> > errorMGustas = ConsultaPerfil.getJsonPerfilErrors("http://localhost/jsonErrors.php?set=gustas&id=" + Application.Current.Properties["id"]); List <ObjetoError> objMG = await errorMGustas; miError = objMG[0]; if (miError.Status.Equals("correcto")) { numMGustas.Text = miError.Mensaje; } else { numMGustas.Text = "0"; System.Diagnostics.Debug.WriteLine(miError.Mensaje); } }
async void init(string query) { Task <List <ObjetoError> > pl = ConsultaRestablecer.getJsonRestablecerErrors(query); List <ObjetoError> p = await pl; error = p[0]; if (error.Status.Equals("correcto")) { DependencyService.Get <IMessage>().LongAlert(error.Mensaje); await Navigation.PushAsync(new MiPerfil()); } else { DependencyService.Get <IMessage>().LongAlert(error.Mensaje); } }
async void getNacionalidadError(string query) { Task <List <ObjetoError> > er = ConsultaNacionalidad.getJsonNacionalidadError(query); List <ObjetoError> erro = await er; error = erro[0]; if (error.Status.Equals("correcto")) { System.Diagnostics.Debug.WriteLine("idxz ->" + Application.Current.Properties["id"]); //DisplayAlert("Alert", nombre, "OK"); getNacionalidad("http://localhost/getJson.php?get=nacionalidad"); } else { await DisplayAlert("Ups", error.Mensaje, "OK"); } }
async void init(string query) { Task <List <ObjetoError> > pl = ConsultaRegistro.getJsonRegistro(query); List <ObjetoError> p = await pl; error = p[0]; if (error.Status.Equals("correcto")) { System.Diagnostics.Debug.WriteLine("idxz ->" + Application.Current.Properties["id"]); //DisplayAlert("Alert", nombre, "OK"); await Navigation.PushAsync(new SubirFoto()); } else { await DisplayAlert("Ups", error.Mensaje, "OK"); } }
async void init(string query) { Task <List <ObjetoError> > pl = ConsultaGustos.actualizaGustos(query); List <ObjetoError> p = await pl; error = p[0]; if (error.Status.Equals("correcto")) { DependencyService.Get <IMessage>().LongAlert(error.Mensaje); await Navigation.PushAsync(new MainPage()); } else { DependencyService.Get <IMessage>().LongAlert(error.Mensaje); } }
async void init(string query) { Task <List <ObjetoError> > pl = ConsultaRestablecer.getJsonRestablecerErrors(query); List <ObjetoError> p = await pl; error = p[0]; System.Diagnostics.Debug.WriteLine("Error -> " + error); if (error.Status.Equals("correcto")) { DependencyService.Get <IMessage>().LongAlert("En breve recibirá un correo con su nueva contraseña"); await Navigation.PushAsync(new Login()); } else { DependencyService.Get <IMessage>().LongAlert(error.Mensaje); } }
public async void compruebaSeguidores() { Task <List <ObjetoError> > errorSeguidores = ConsultaPerfil.getJsonPerfilErrors("http://localhost/jsonErrors.php?set=seguidores&id=" + Application.Current.Properties["id"]); List <ObjetoError> objS = await errorSeguidores; miError = objS[0]; if (miError.Status.Equals("fallo")) { System.Diagnostics.Debug.WriteLine(miError.Mensaje); if (miError.Mensaje.Equals("No hay seguidores")) { numSeguidores.Text = "0"; } } else { getSeguidores("http://localhost/getJson.php?get=seguidores&id=" + Application.Current.Properties["id"]); } }
public async void compruebaRedes() { Task <List <ObjetoError> > errorRedes = ConsultaRedes.getJsonRedesErrors("http://localhost/jsonErrors.php?set=redes&id=" + Application.Current.Properties["id"]); List <ObjetoError> objR = await errorRedes; miError = objR[0]; if (miError.Status.Equals("fallo")) { System.Diagnostics.Debug.WriteLine(miError.Mensaje); if (miError.Mensaje.Equals("No tienes redes sociales")) { numRedes.Text = "0"; } } else { getRedes("http://localhost/getJson.php?get=redes&id=" + Application.Current.Properties["id"]); } }
async void init(string query) { Task <List <ObjetoError> > pl = ConsultaRegistro.getJsonRegistro(query); List <ObjetoError> p = await pl; error = p[0]; if (error.Status.Equals("correcto")) { Application.Current.Properties["id"] = error.Mensaje; Application.Current.Properties["usuario"] = correo; await Application.Current.SavePropertiesAsync(); await Navigation.PushAsync(new DatosPersonalesSinNomb()); } else { DependencyService.Get <IMessage>().LongAlert(error.Mensaje); } }