public PushNotificationsController( IPushNotificationsService pushNotificationsService, IUserEmployeeSearch userEmployeeSearch) { this.pushNotificationsService = pushNotificationsService; this.userEmployeeSearch = userEmployeeSearch; }
public void TestInitialize() { _registrationRepository = new MongoDBRepositoryTest <PushRegistration>(); _messageRepository = new MongoDBRepositoryTest <PushMessage>(); var eventPublisher = new Mock <IMediator>(); //eventPublisher.Setup(x => x.PublishAsync(new object())); _eventPublisher = eventPublisher.Object; var pushNotificationsSettings = new Mock <PushNotificationsSettings>(); _pushNotificationsSettings = pushNotificationsSettings.Object; var localizationService = new Mock <ILocalizationService>(); _localizationService = localizationService.Object; var logger = new Mock <ILogger>(); _logger = logger.Object; _pushNotificationsService = new PushNotificationsService(_registrationRepository, _messageRepository, _eventPublisher, _pushNotificationsSettings, _localizationService, _logger); }
public PushNotificationsController(IWorkContext workContext, IPushNotificationsService pushNotificationsService, ILogger logger, ILocalizationService localizationService) { this._workContext = workContext; this._pushNotificationsService = pushNotificationsService; this._logger = logger; this._localizationService = localizationService; }
public ApplicationService(IAccountsService accounts, IMvxViewDispatcher viewDispatcher, IFeaturesService features, IPushNotificationsService pushNotifications, IAlertDialogService alertDialogService) { _viewDispatcher = viewDispatcher; _pushNotifications = pushNotifications; Accounts = accounts; _features = features; _alertDialogService = alertDialogService; }
public UserProfileViewModel( INavigationService navigationService, IUserService userService, IPushNotificationsService pushNotificationsService, IAppPreferencesService appStateContainer) : base(navigationService) { _userService = userService; _pushNotificationsService = pushNotificationsService; _appStateContainer = appStateContainer; }
public ConversationsNoticeService(IAppServiceProvider appServiceProvider) { this.connectionsService = appServiceProvider.ConnectionsService; this.nodeNoticeService = appServiceProvider.NodeNoticeService; this.pushNotificationsService = appServiceProvider.PushNotificationsService; this.loadChatsService = appServiceProvider.LoadChatsService; this.loadChannelsService = appServiceProvider.LoadChannelsService; this.loadDialogsService = appServiceProvider.LoadDialogsService; this.pendingMessagesService = appServiceProvider.PendingMessagesService; this.loadUsersService = appServiceProvider.LoadUsersService; this.privacyService = appServiceProvider.PrivacyService; }
public TestViewModel(IAppNotificationsService appNotificationsService, IVKLongPollService vkLongPollService, IGrooveMusicService gms, IPushNotificationsService pushNotificationsService, ISettingsService settingsService) { this.appNotificationsService = appNotificationsService; this.vkLongPollService = vkLongPollService; this.gms = gms; this.pushNotificationsService = pushNotificationsService; this.settingsService = settingsService; ShowSimplePush = new DelegateCommand <string>(OnShowSimplePush); ShowCustomPush = new DelegateCommand(OnShowCustomPush); DeserializeLongPollResponse = new DelegateCommand(OnDeserializeLongPollResponse); }
public PushNotificationsController(PushNotificationsSettings pushNotificationsSettings, ILocalizationService localizationService, ISettingService settingService, IStoreService storeService, IPushNotificationsService pushNotificationsService, IWorkContext workContext, ICustomerService customerService, IPictureService pictureService, IDateTimeHelper dateTimeHelper) { this._pushNotificationsSettings = pushNotificationsSettings; this._localizationService = localizationService; this._settingService = settingService; this._storeService = storeService; this._pushNotificationsService = pushNotificationsService; this._workContext = workContext; this._customerService = customerService; this._pictureService = pictureService; this._dateTimeHelper = dateTimeHelper; }
public PushNotificationsController( PushNotificationsSettings pushNotificationsSettings, ITranslationService translationService, ISettingService settingService, IPushNotificationsService pushNotificationsService, ICustomerService customerService, IPictureService pictureService, IDateTimeService dateTimeService) { _pushNotificationsSettings = pushNotificationsSettings; _translationService = translationService; _settingService = settingService; _pushNotificationsService = pushNotificationsService; _customerService = customerService; _pictureService = pictureService; _dateTimeService = dateTimeService; }
public PushNotificationsController( PushNotificationsSettings pushNotificationsSettings, ILocalizationService localizationService, ISettingService settingService, IPushNotificationsService pushNotificationsService, ICustomerService customerService, IPictureService pictureService, IDateTimeHelper dateTimeHelper) { _pushNotificationsSettings = pushNotificationsSettings; _localizationService = localizationService; _settingService = settingService; _pushNotificationsService = pushNotificationsService; _customerService = customerService; _pictureService = pictureService; _dateTimeHelper = dateTimeHelper; }
public PushNotificationsController(IPushNotificationsService pushNotificationsService) { _pushNotificationsService = pushNotificationsService; }
public PushNotificationsController(IWorkContext workContext, IPushNotificationsService pushNotificationsService) { _workContext = workContext; _pushNotificationsService = pushNotificationsService; }
public AdminsPostController(IAdminsPostService adminsPostService, IPushNotificationsService pushNotificationsService) { this.adminsPostService = adminsPostService; this.pushNotificationsService = pushNotificationsService; }
public SettingsViewModel(IApplicationService applicationService, IFeaturesService featuresService, IAccountsService accountsService, IEnvironmentalService environmentalService, IPushNotificationsService pushNotificationsService) { Title = "Account Settings"; _applicationService = applicationService; _featuresService = featuresService; _accountsService = accountsService; _environmentService = environmentalService; _pushNotificationsService = pushNotificationsService; AccountImageUrl = _accountsService.ActiveAccount.AvatarUrl; GoToDefaultStartupViewCommand = ReactiveCommand.Create(); GoToDefaultStartupViewCommand.Subscribe(_ => { var vm = this.CreateViewModel <DefaultStartupViewModel>(); vm.WhenAnyValue(x => x.SelectedStartupView).Subscribe(x => DefaultStartupViewName = x); NavigateTo(vm); }); GoToSyntaxHighlighterCommand = ReactiveCommand.Create().WithSubscription(_ => { var vm = this.CreateViewModel <SyntaxHighlighterSettingsViewModel>(); vm.SaveCommand.Subscribe(__ => SyntaxHighlighter = vm.SelectedTheme); NavigateTo(vm); }); DeleteAllCacheCommand = ReactiveCommand.Create(); GoToSourceCodeCommand = ReactiveCommand.Create().WithSubscription(_ => { var vm = this.CreateViewModel <RepositoryViewModel>(); vm.RepositoryOwner = "thedillonb"; vm.RepositoryName = "codehub"; NavigateTo(vm); }); ShowOrganizationsInEvents = accountsService.ActiveAccount.ShowOrganizationsInEvents; this.WhenAnyValue(x => x.ShowOrganizationsInEvents).Skip(1).Subscribe(x => { accountsService.ActiveAccount.ShowOrganizationsInEvents = x; accountsService.Update(accountsService.ActiveAccount); }); ExpandOrganizations = accountsService.ActiveAccount.ExpandOrganizations; this.WhenAnyValue(x => x.ExpandOrganizations).Skip(1).Subscribe(x => { accountsService.ActiveAccount.ExpandOrganizations = x; accountsService.Update(accountsService.ActiveAccount); }); ShowRepositoryDescriptionInList = accountsService.ActiveAccount.ShowRepositoryDescriptionInList; this.WhenAnyValue(x => x.ShowRepositoryDescriptionInList).Skip(1).Subscribe(x => { accountsService.ActiveAccount.ShowRepositoryDescriptionInList = x; accountsService.Update(accountsService.ActiveAccount); }); SaveCredentials = accountsService.ActiveAccount.SaveCredentails; this.WhenAnyValue(x => x.SaveCredentials).Skip(1).Subscribe(x => { accountsService.ActiveAccount.SaveCredentails = x; accountsService.Update(accountsService.ActiveAccount); }); }
public SettingsViewModel(ISessionService applicationService, IFeaturesService featuresService, IAccountsRepository accountsService, IEnvironmentalService environmentalService, IPushNotificationsService pushNotificationsService) { Title = "Account Settings"; _sessionService = applicationService; _featuresService = featuresService; _accountsService = accountsService; _environmentService = environmentalService; _pushNotificationsService = pushNotificationsService; AccountImageUrl = applicationService.Account.AvatarUrl; GoToDefaultStartupViewCommand = ReactiveCommand.Create(); GoToDefaultStartupViewCommand.Subscribe(_ => { var vm = this.CreateViewModel<DefaultStartupViewModel>(); vm.WhenAnyValue(x => x.SelectedStartupView) .Subscribe(x => DefaultStartupViewName = x); NavigateTo(vm); }); GoToSyntaxHighlighterCommand = ReactiveCommand.Create().WithSubscription(_ => { var vm = this.CreateViewModel<SyntaxHighlighterSettingsViewModel>(); vm.SaveCommand.Subscribe(__ => SyntaxHighlighter = vm.SelectedTheme); NavigateTo(vm); }); DeleteAllCacheCommand = ReactiveCommand.Create(); GoToSourceCodeCommand = ReactiveCommand.Create().WithSubscription(_ => { var vm = this.CreateViewModel<RepositoryViewModel>(); vm.RepositoryOwner = "thedillonb"; vm.RepositoryName = "codehub"; NavigateTo(vm); }); ShowOrganizationsInEvents = applicationService.Account.ShowOrganizationsInEvents; this.WhenAnyValue(x => x.ShowOrganizationsInEvents).Skip(1).Subscribe(x => { applicationService.Account.ShowOrganizationsInEvents = x; accountsService.Update(applicationService.Account); }); ExpandOrganizations = applicationService.Account.ExpandOrganizations; this.WhenAnyValue(x => x.ExpandOrganizations).Skip(1).Subscribe(x => { applicationService.Account.ExpandOrganizations = x; accountsService.Update(applicationService.Account); }); ShowRepositoryDescriptionInList = applicationService.Account.ShowRepositoryDescriptionInList; this.WhenAnyValue(x => x.ShowRepositoryDescriptionInList).Skip(1).Subscribe(x => { applicationService.Account.ShowRepositoryDescriptionInList = x; accountsService.Update(applicationService.Account); }); }
public NoticeService(IAppServiceProvider appServiceProvider) { connectionsService = appServiceProvider.ConnectionsService; pushNotificationsService = appServiceProvider.PushNotificationsService; }