public LoginViewModel() { InicioSesion = new Command(() => InicioSesionCommand(), () => true); InicioSesionNormal = new Command(async() => await IniciarSesionNavegacion(), () => true); ContarLogin = 0; googleClientManager = CrossGoogleClient.Current; }
public LoginPageViewModel() { LoginCommand = new Command(LoginAsync); LogoutCommand = new Command(Logout); googleClientManager = CrossGoogleClient.Current; IsLoggedIn = false; }
public static void SetInstance(IGoogleClientManager googleClientManager) { if (instance != null) { return; } instance = googleClientManager; }
public LoginViewModel(ILoginService loginService) { _loginService = loginService; GoogleLoginCommand = new Command(GoogleLoginAsync); GoogleLogoutCommand = new Command(GoogleLogout); _googleClientManager = CrossGoogleClient.Current; IsLoggedIn = false; }
public LoginViewModel() { InicioSesion = new Command(InicioSesionCommand); googleClientManager = CrossGoogleClient.Current; loadDataHandler = new LoadDataHandler(); string urlCretateUsuario = Endpoints.URL_SERVIDOR + Endpoints.CREATE_USUARIO; string urlGetUsuario = Endpoints.URL_SERVIDOR + Endpoints.GET_USUARIO; CreateUsuario = new SelectRequest <UsuarioModel>(); CreateUsuario.SelectStrategy("POST", urlCretateUsuario); GetUsuario = new SelectRequest <UsuarioModel>(); GetUsuario.SelectStrategy("GET", urlGetUsuario); PopUp = new MessagePopupView(); }
/// <summary> /// Initializes a new instance for the <see cref="NoInternetConnectionPageViewModel" /> class. /// </summary> public LoginPageViewModel(INavigationService navigationService, IDialogService dialogService, IThemeService themeService) : base(navigationService) { this._googleService = CrossGoogleClient.Current; this._facebookService = CrossFacebookClient.Current; this.dialogService = dialogService; this._themeService = themeService; this.LoginCommand = new Command(this.Login); this.PushForgotPasswordCommand = new Command(this.ForgotPassword); this.PushRegisterCommand = new Command(this.PushRegisterPage); this.LoginWithFaceBookCommand = new Command(this.LoginWithFacebook); this.LoginWithGoogleCommand = new Command(this.LoginWithGoogle); InitValidations(); }
protected ViewController(IntPtr handle) : base(handle) { _googleClientManager = CrossGoogleClient.Current; }
public LoginViewModel() { LoginViewModelInit(); _googleClientManager = CrossGoogleClient.Current; }
public FlyoutHeader() { InitializeComponent(); _googleClientManager = CrossGoogleClient.Current; BindingContext = new FlyoutHeaderViewModel(); }
public GoogleAuthTokenProvider(IGoogleClientManager googleClientManager) => _googleClientManager = googleClientManager;