public AccountInfoViewModel(IProfileProvider profileProvider, ICredentialsProvider credentialsProvider, IDataCacheService dataCacheService, IFileCacheService fileCacheService, INavigationService navigationService,
            INotificationsProvider notificationsProvider, IBookmarksProvider bookmarksProvider, ICatalogProvider catalogProvider, IBookProvider bookProvider, ICatalitClient client, ILitresPurchaseService purchaseService)
        {
			_navigationService = navigationService;
			_profileProvider = profileProvider;
			_credentialsProvider = credentialsProvider;
			_dataCacheService = dataCacheService;
			_fileCacheService = fileCacheService;
			_notificationsProvider = notificationsProvider;
			_bookmarksProvider = bookmarksProvider;
			_catalogProvider = catalogProvider;
            _bookProvider = bookProvider;
            _client = client;
            _purchaseService = purchaseService;
            RegisterAction(ClearUserInfoPart).AddPart(ClearUserInfoProceed, session => true);
            RegisterAction(AddToDepositPart).AddPart(AddToDepositProceed, session => true);
            RegisterAction(LoadUserInfoPart).AddPart(LoadUserInfoProceed, session => session.Parameters.GetValue<UserInformation>(ChangeUserInfoParameter, null) == null);

            ClearData = new RelayCommand(ClearUserInfo);

            ReloadInfo = new RelayCommand(ReloadUserInfo);

            AddToDeposit = new RelayCommand<DepositType>(dt => AddToDepositFunc(dt));


            Deposits = new List<Deposit> { 
                                       new Deposit { LitresPrice = "105 руб.", RealPrice = "149 руб." }, 
                                       new Deposit { LitresPrice = "189 руб.", RealPrice = "269 руб." }, 
                                       new Deposit { LitresPrice = "304 руб.", RealPrice = "434 руб." }};
		}
 public Detail1ViewModel(IDataCacheService dataCacheService)
 {
     if (dataCacheService.DataCache.ContainsKey(DetailViewModel.CacheKey))
     {
         Text = (string)dataCacheService.DataCache[DetailViewModel.CacheKey];
     }
 }
 public DetailViewModel(IDataCacheService dataCacheService)
 {
     _dataCacheService = dataCacheService;
     if (_dataCacheService.DataCache.ContainsKey(CacheKey))
     {
         _text = (string)_dataCacheService.DataCache[CacheKey];
     }
 }
		public NotificationsProvider(ICatalitClient client, 
            IDeviceInfoService deviceInfoService, 
            IDataCacheService dataCacheService)
		{
			_client = client;
			_dataCacheService = dataCacheService;
			_deviceInfoService = deviceInfoService;
		}
		public BookmarksProvider(ICatalitClient client, IDataCacheService dataCacheService, INetworkAvailabilityService networkAvailabilityService)
		{
			_client = client;
			_dataCacheService = dataCacheService;
			_networkAvailabilityService = networkAvailabilityService;

			_lock = string.Empty;
		}
 public EmployeeController(
     IDataCacheService dataCacheService,
     IService <Employee> employeeService,
     ICacheProvider cacheProvider)
 {
     this._dataCacheService = dataCacheService;
     this._employeeService  = employeeService;
     this._cacheProvider    = cacheProvider;
 }
 public BookProvider(ISessionAwareConnection awareConnection, IDataCacheService dataCacheService, IFileCacheService fileCacheService, IDeviceInfoService deviceInfoService, IFileDownloadService fileDownloadService, ISessionEstablisherService sessionEstablisherService)
 {
     _fileCacheService = fileCacheService;
     _dataCacheService = dataCacheService;
     _awareConnection = awareConnection;
     _deviceInfoService = deviceInfoService;
     _fileDownloadService = fileDownloadService;
     _sessionEstablisherService = sessionEstablisherService;
 }
        public ExpirationGuardian(IDataCacheService dataCacheService, ICatalitClient client, ICatalogProvider catalogProvider, IBookProvider bookProvider)
        {
            _expiredCallBacks = new List<IExpiredCallBack>();
            _client = client;
            _dataCacheService = dataCacheService;
            _catalogProvider = catalogProvider;
            _bookProvider = bookProvider;

            Instance = this;
        }
Beispiel #9
0
 public Synchronizer(
     INewsBlurClient newsBlurClient,
     IProgressService progressService,
     IAuthenticationService authenticationService,
     IDataCacheService dataCacheService)
 {
     _newsBlurClient        = newsBlurClient;
     _progressService       = progressService;
     _authenticationService = authenticationService;
     _dataCacheService      = dataCacheService;
 }
Beispiel #10
0
 public ActivationService(
     ISpectroNavigationService navigationService,
     IDataCacheService dataCacheService,
     IAuthenticationService authenticationService,
     IThemeService themeService)
 {
     _navigationService     = navigationService;
     _dataCacheService      = dataCacheService;
     _authenticationService = authenticationService;
     _themeService          = themeService;
     _authenticationService.LoggedInStatusChanged += AuthenticationServiceOnLoggedInStatusChanged;
 }
		public AuthorizationViewModel( ICredentialsProvider credentialsProvider, IProfileProvider profileProvider, INavigationService navigationService, INotificationsProvider notificationsProvider,
			IDataCacheService dataCacheService, IFileCacheService fileCacheService, IBookmarksProvider bookmarksProvider, ICatalogProvider catalogProvider, IBookProvider bookProvider)
		{
			_credentialsProvider = credentialsProvider;
			_navigationService = navigationService;
			_profileProvider = profileProvider;
			_notificationsProvider = notificationsProvider;
			_dataCacheService = dataCacheService;
			_fileCacheService = fileCacheService;
			_bookmarksProvider = bookmarksProvider;
			_catalogProvider = catalogProvider;
		    _bookProvider = bookProvider;

            RegisterAction(MainPart).AddPart(LoadCredential, session => true);
            RegisterAction(LoginPart).AddPart(LoginProceed, session => true);

		}
		/// <summary>
		/// Initializes a new instance of the SettingsService class.
		/// </summary>
		/// <param name="dataCacheService"></param>
		public SettingsService( IDataCacheService dataCacheService )
		{
			_dataCacheService = dataCacheService;
		}
		public CredentialsProvider(IDataCacheService dataCacheService)
		{
			_dataCacheService = dataCacheService;
		    //_applicationSettingsService = applicationSettingsService;
		}
        public CatalogProvider(ICatalitClient client, IFileDownloadService fileDownloadService, IProfileProvider profileProvider, IBookProvider bookProvider, IDataCacheService dataCacheService, INetworkAvailabilityService networkAvailabilityService, IDeviceInfoService deviceInfoService)
		{
			_client = client;
			_dataCacheService = dataCacheService;
			_fileDownloadService = fileDownloadService;
			_bookProvider = bookProvider;
            _networkAvailabilityService = networkAvailabilityService;
			_myBooksIds = new List<int>();
			_myHistoryBooksIds = new List<int>();
            _profileProvider = profileProvider;
            _deviceInfoService = deviceInfoService;
            //_expirationGuardian = expirationGuardian;
		}
Beispiel #15
0
 public NewsFeedListViewModel(IDataCacheService dataCacheService)
 {
     _dataCacheService              = dataCacheService;
     _dataCacheService.DataChanged += DataCacheServiceOnDataChanged;
 }
		public GenresProvider( ICatalitClient client, IDataCacheService dataCacheService )
		{
			_client = client;
			_dataCacheService = dataCacheService;
		}
Beispiel #17
0
 public JobService(CanvasExtendContenxt contenxt, IDataCacheService cache)
 {
     _contenxt = contenxt;
     _cache    = cache;
 }
 public AskReviewViewModel(IDataCacheService dataCacheService, INavigationService navigationService, IDeviceInfoService deviceInfoService)
 {
     _dataCacheService = dataCacheService;
     _navigationService = navigationService;
     _deviceInfoService = deviceInfoService;
 }
		public SearchHistoryProvider(IDataCacheService dataCacheService)
		{
			_dataCacheService = dataCacheService;
		}
 public GestorAppServices(IEstudios estudiosService, IDataCacheService dataCache)
 {
     _estudiosService = estudiosService;
     _dataCache       = dataCache;
 }