public App(IFacebookLoginService facebookLoginService) { InitializeComponent(); FacebookLoginService = facebookLoginService; MainPage = new XFFacebookExamplePage(); }
public AuthorizationApiService(IUniqueDeviceIdService uniqueDeviceIdService, IFacebookLoginService facebookLoginService, ITimelessTokenService timelessTokenService) { this.uniqueDeviceIdService = uniqueDeviceIdService; this.facebookLoginService = facebookLoginService; this.timelessTokenService = timelessTokenService; _client = new UserAuth.UserAuthClient(ConnectionChannel); }
public FacebookLoginConfiguration( IFacebookService coreService, IFacebookLoginService loginService, IDataProtectionProvider dataProtectionProvider, ILogger <FacebookLoginConfiguration> logger) { _coreService = coreService; _loginService = loginService; _dataProtectionProvider = dataProtectionProvider; _logger = logger; }
public LoginViewModel() { _storedSettingsService = Mvx.Resolve <IStoredSettingsService>(); _facebookLoginService = Mvx.Resolve <IFacebookLoginService>(); _gPlusLoginService = Mvx.Resolve <IGPlusLoginService>(); _emailLoginCommand = new MvxCommand(() => ServerCommandWrapper(() => LoginTask(EmailLoginData))); _facebookLoginCommand = new MvxCommand(() => ServerCommandWrapper(async() => await LoginTask(await _facebookLoginService.GetPersonData()))); _gPlusLoginCommand = new MvxCommand(() => ServerCommandWrapper(async() => await LoginTask(await _gPlusLoginService.GetPersonData()))); _registrationCommand = new MvxCommand(() => { ShowViewModel <RegistrationViewModel>(); }); _forgotPasswordCommand = new MvxCommand(() => { }); }
public LoginViewModel(IStoredSettingsService storedSettingsService, IFacebookLoginService facebookLoginService, IGPlusLoginService gPlusLoginService, IServerApiService serverApiService) { _storedSettingsService = storedSettingsService; _facebookLoginService = facebookLoginService; _gPlusLoginService = gPlusLoginService; _serverApiService = serverApiService; _emailLoginCommand = new MvxCommand(() => ServerCommandWrapperAsync(() => LoginTaskAsync(EmailLoginData))); _facebookLoginCommand = new MvxCommand(() => ServerCommandWrapperAsync(async() => await LoginTaskAsync(await _facebookLoginService.GetPersonDataAsync()))); _gPlusLoginCommand = new MvxCommand(() => ServerCommandWrapperAsync(async() => await LoginTaskAsync(await _gPlusLoginService.GetPersonDataAsync()))); _registrationCommand = new MvxCommand(() => { ShowViewModel <RegistrationViewModel>(); }); _forgotPasswordCommand = new MvxCommand(() => { }); }
public LoginViewModel() { facebookLoginService = (Application.Current as App).FacebookLoginService; facebookLoginService.AccessTokenChanged = (string oldToken, string newToken) => FacebookLogoutCmd.ChangeCanExecute(); FacebookLogoutCmd = new Command(() => facebookLoginService.Logout(), () => !string.IsNullOrEmpty(facebookLoginService.AccessToken)); OnFacebookLoginSuccessCmd = new Command <string>( (authToken) => DisplayAlert("Success", $"Authentication succeed: {authToken}")); OnFacebookLoginErrorCmd = new Command <string>( (err) => DisplayAlert("Error", $"Authentication failed: {err}")); OnFacebookLoginCancelCmd = new Command( () => DisplayAlert("Cancel", "Authentication cancelled by the user.")); }
protected override void OnAppearing() { base.OnAppearing(); service = DependencyService.Get <IFacebookLoginService>(); service.InitButton(rootLayout); }
public FacebookLoginSettingsStep(IFacebookLoginService loginService) { _loginService = loginService; }
public MyAccessTokenTracker(FacebookLoginService facebookLoginService) { this.facebookLoginService = facebookLoginService; }
public FacebookLoginManager(IFacebookLoginService facebookLoginService, IUserMapper userMapper) { _facebookLoginService = facebookLoginService; _userMapper = userMapper; }