示例#1
0
 public DeviceService(
     IDeviceRepository deviceRepository,
     IPushRegistrationService pushRegistrationService)
 {
     _deviceRepository        = deviceRepository;
     _pushRegistrationService = pushRegistrationService;
 }
 public OrganizationService(
     IOrganizationRepository organizationRepository,
     IOrganizationUserRepository organizationUserRepository,
     ICollectionRepository collectionRepository,
     IUserRepository userRepository,
     IGroupRepository groupRepository,
     IDataProtectionProvider dataProtectionProvider,
     IMailService mailService,
     IPushNotificationService pushNotificationService,
     IPushRegistrationService pushRegistrationService,
     IDeviceRepository deviceRepository,
     IEventService eventService,
     IInstallationRepository installationRepository,
     GlobalSettings globalSettings)
 {
     _organizationRepository     = organizationRepository;
     _organizationUserRepository = organizationUserRepository;
     _collectionRepository       = collectionRepository;
     _userRepository             = userRepository;
     _groupRepository            = groupRepository;
     _dataProtector           = dataProtectionProvider.CreateProtector("OrganizationServiceDataProtector");
     _mailService             = mailService;
     _pushNotificationService = pushNotificationService;
     _pushRegistrationService = pushRegistrationService;
     _deviceRepository        = deviceRepository;
     _eventService            = eventService;
     _installationRepository  = installationRepository;
     _globalSettings          = globalSettings;
 }
        public WeeklyRecipeViewModel(
            BackgroundImageRotator backgroundImageRotator, 
            IRecipeService recipeService, 
            RecipeMapper recipeMapper, 
            WeeklyThaiRecipeSettings weeklyThaiRecipeSettings, 
            IPushRegistrationService pushRegistrationService)
        {
            this.backgroundImageRotator = backgroundImageRotator;
            this.weeklyThaiRecipeSettings = weeklyThaiRecipeSettings;
            this.pushRegistrationService = pushRegistrationService;
            BusyIndicatorIsVisible = true;

            Messenger.Default.Register<List<Recipe>>(
                this,
                message =>
                    {
                        Recipes = new ObservableCollection<RecipeViewModel>(recipeMapper.Map(message));
                        Recipes[0].IsFirst = true;
                        this.CurrentRecipe = Recipes[0];
                        BusyIndicatorIsVisible = false;
                    });

            RotatePanoramaBackground();
            this.InitializeAndStartTimer();
            recipeService.StartGetAllRecipes();

            this.SubmitReviewCommand = new RelayCommand(SubmitReview);
            this.MoreAppsCommand = new RelayCommand(this.MoreApps);
        }
示例#4
0
 public PushController(
     IPushRegistrationService pushRegistrationService,
     IPushNotificationService pushNotificationService,
     IHostingEnvironment environment,
     CurrentContext currentContext,
     GlobalSettings globalSettings)
 {
     _currentContext          = currentContext;
     _environment             = environment;
     _pushRegistrationService = pushRegistrationService;
     _pushNotificationService = pushNotificationService;
     _globalSettings          = globalSettings;
 }
示例#5
0
 public OrganizationService(
     IOrganizationRepository organizationRepository,
     IOrganizationUserRepository organizationUserRepository,
     ICollectionRepository collectionRepository,
     IUserRepository userRepository,
     IGroupRepository groupRepository,
     IDataProtectionProvider dataProtectionProvider,
     IMailService mailService,
     IPushNotificationService pushNotificationService,
     IPushRegistrationService pushRegistrationService)
 {
     _organizationRepository     = organizationRepository;
     _organizationUserRepository = organizationUserRepository;
     _collectionRepository       = collectionRepository;
     _userRepository             = userRepository;
     _groupRepository            = groupRepository;
     _dataProtector           = dataProtectionProvider.CreateProtector("OrganizationServiceDataProtector");
     _mailService             = mailService;
     _pushNotificationService = pushNotificationService;
     _pushRegistrationService = pushRegistrationService;
 }