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(); }
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>(); }
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>(); }
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>(); }
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; }
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; }
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; }