Пример #1
0
 public SettingsViewModel(ISettingsView view, IMessageService messageService, IWebStorageService webStorageService,
                          IAppInfoService appInfoService) : base(view, false)
 {
     this.messageService = messageService;
     AppInfo             = appInfoService;
     WebStorageService   = webStorageService;
     ItemLifetimes       = Enum.GetValues(typeof(DisplayItemLifetime)).Cast <DisplayItemLifetime>().ToArray();
     MaxItemsLimits      = Enum.GetValues(typeof(DisplayMaxItemsLimit)).Cast <DisplayMaxItemsLimit>().ToArray();
 }
Пример #2
0
 public DataController(IDataService dataService, IWebStorageService webStorageService, IMessageService messageService)
 {
     this.dataService       = dataService;
     this.webStorageService = webStorageService;
     this.messageService    = messageService;
     signInCommand          = new AsyncDelegateCommand(SignIn, () => isInitialized);
     signOutCommand         = new AsyncDelegateCommand(SignOutAsync);
     loadCompletion         = new TaskCompletionSource <FeedManager>();
 }
Пример #3
0
 public DataController(IAppDataService appDataService, IAccountService accountService, IWebStorageService webStorageService, ICryptographicService cryptographicService,
     IMessageService messageService, IResourceService resourceService)
 {
     this.appDataService = appDataService;
     this.accountService = accountService;
     this.webStorageService = webStorageService;
     this.cryptographicService = cryptographicService;
     this.messageService = messageService;
     this.resourceService = resourceService;
     feedManagerCompletion = new TaskCompletionSource<FeedManager>();
 }
Пример #4
0
 public DataController(IAppDataService appDataService, IAccountService accountService, IWebStorageService webStorageService, ICryptographicService cryptographicService,
                       IMessageService messageService, IResourceService resourceService)
 {
     this.appDataService       = appDataService;
     this.accountService       = accountService;
     this.webStorageService    = webStorageService;
     this.cryptographicService = cryptographicService;
     this.messageService       = messageService;
     this.resourceService      = resourceService;
     feedManagerCompletion     = new TaskCompletionSource <FeedManager>();
 }
Пример #5
0
 public DataController(ISettingsService settingsService, IDataService dataService, INetworkInfoService networkInfoService,
                       IWebStorageService webStorageService, IMessageService messageService)
 {
     appSettings                        = settingsService.Get <AppSettings>();
     this.dataService                   = dataService;
     this.networkInfoService            = networkInfoService;
     this.webStorageService             = webStorageService;
     this.messageService                = messageService;
     signInCommand                      = new AsyncDelegateCommand(SignIn, () => isInitialized);
     signOutCommand                     = new AsyncDelegateCommand(SignOutAsync);
     loadCompletion                     = new TaskCompletionSource <FeedManager>();
     webStorageService.PropertyChanged += WebStorageServicePropertyChanged;
 }
Пример #6
0
 public ImagesService(
     IRepository<Image> imagesRepo,
     IRepository<User> usersRepo,
     IRepository<Album> albumRepo,
     IImageProcessorService imageProcessor,
     IWebStorageService webSrorageService,
     INotificationService notifier)
     : base(usersRepo)
 {
     this.images = imagesRepo;
     this.albums = albumRepo;
     this.imageProcessor = imageProcessor;
     this.webSrorageService = webSrorageService;
     this.notifier = notifier;
 }
Пример #7
0
 public ImagesService(
     IRepository <Image> imagesRepo,
     IRepository <User> usersRepo,
     IRepository <Album> albumRepo,
     IImageProcessorService imageProcessor,
     IWebStorageService webSrorageService,
     INotificationService notifier)
     : base(usersRepo)
 {
     this.images            = imagesRepo;
     this.albums            = albumRepo;
     this.imageProcessor    = imageProcessor;
     this.webSrorageService = webSrorageService;
     this.notifier          = notifier;
 }