Ejemplo n.º 1
0
 public AccountController(ILoggerManager logger, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ITokenService tokenService, ApplicationDbContext userContext, IFirebaseTokenService firebaseToken)
 {
     _logger        = logger;
     _userManager   = userManager;
     _signInManager = signInManager;
     _tokenService  = tokenService;
     _userContext   = userContext;
     _firebaseToken = firebaseToken;
 }
 public LoginPageViewModel(INavigationService navigationService,
                           IAuthService authService,
                           ISettingsService settingsService,
                           IPageDialogService dialogService,
                           IFirebaseTokenService firebaseTokenService)
     : base(navigationService)
 {
     _authService          = authService;
     _settingsService      = settingsService;
     _dialogService        = dialogService;
     _firebaseTokenService = firebaseTokenService;
     //Title = "Login Page";
 }
        public MainPageViewModel(INavigationService navigationService, ISettingsService settingsService, IPageDialogService dialogService, IFirebaseTokenService firebaseTokenService, ITaskService taskService, INotificationService notificationService, IUtilityService utilityService)
            : base(settingsService, dialogService, navigationService)
        {
            _firebaseTokenService = firebaseTokenService;
            _taskService          = taskService;
            _notificationService  = notificationService;
            _utilityService       = utilityService;
            Title      = "";
            this.Menus = new ObservableCollection <string>()
            {
                "Receivable",
                "Task",
                "Setting",
                "Something funny",
                "Logout",
            };

            this.AccountName = settingsService.AuthUserName;

            Init();
        }
 public ProfileController(IProfileService profileService, ILogger <ProfileController> logger, IFirebaseTokenService firebaseTokenService)
 {
     _profileService       = profileService;
     _logger               = logger;
     _firebaseTokenService = firebaseTokenService;
 }
 public UserContoller(IUserService userService, IFirebaseTokenService firebaseTokenService)
 {
     _userService          = userService;
     _firebaseTokenService = firebaseTokenService;
 }