Esempio n. 1
0
        public AccountService(IHttpService httpService, IUserDataStorageService userDataStorageService)
        {
            _httpService            = httpService;
            _userDataStorageService = userDataStorageService;

            if (_userDataStorageService.IsUserLoggedIn())
            {
                _httpService.SetAuthenticationHeader(_userDataStorageService.GetUserEmail(), _userDataStorageService.GetUserPassword());
            }
        }
Esempio n. 2
0
 public bool IsUserLoggedIn()
 {
     return(_userDataStorageService.IsUserLoggedIn());
 }