public UniversitiesPageViewModel([NotNull] Mvvm.Navigation.INavigationService navigation, [NotNull] BaseApplicationSettings applicationSettings, [NotNull] IAsyncDataProvider dataProvider, [NotNull] FlurryPublisher flurry, [NotNull] INotificationService notificationService) : base(flurry) { if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (notificationService == null) { throw new ArgumentNullException("notificationService"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } _dataProvider = dataProvider; _notificationService = notificationService; _navigation = navigation; _applicationSettings = applicationSettings; _resultGrouper = u => u.ShortName[0]; SubscribeToQuery(); }
public FacultiesPageViewModel([NotNull] Mvvm.Navigation.INavigationService navigation, [NotNull] BaseApplicationSettings applicationSettings, [NotNull] IAsyncDataProvider dataProvider, [NotNull] FlurryPublisher flurryPublisher, [NotNull] INotificationService notificationService) : base(flurryPublisher) { if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } if (notificationService == null) { throw new ArgumentNullException("notificationService"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } if (applicationSettings == null) { throw new ArgumentNullException("applicationSettings"); } _navigation = navigation; _applicationSettings = applicationSettings; _dataProvider = dataProvider; _notificationService = notificationService; _facultyGroupFunc = faculty => faculty.Title[0]; SubscribeToQuery(); }
public LessonsPageViewModel([NotNull] INavigationService navigation, [NotNull] FlurryPublisher flurryPublisher, [NotNull] BaseApplicationSettings applicationSettings, [NotNull] ICommandFactory commandFactory, [NotNull] IAsyncDataProvider dataProvider, [NotNull] FavoritedItemsManager favoritedItemsManager, [NotNull] IUiStringsProviders stringsProviders, [NotNull] INotificationService notificationService) { if (navigation == null) { throw new ArgumentNullException("navigation"); } if (applicationSettings == null) { throw new ArgumentNullException("applicationSettings"); } if (commandFactory == null) { throw new ArgumentNullException("commandFactory"); } if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (favoritedItemsManager == null) { throw new ArgumentNullException("favoritedItemsManager"); } if (stringsProviders == null) { throw new ArgumentNullException("stringsProviders"); } if (notificationService == null) { throw new ArgumentNullException("notificationService"); } _navigation = navigation; _applicationSettings = applicationSettings; _flurryPublisher = flurryPublisher; _commandFactory = commandFactory; _dataProvider = dataProvider; _favoritedItemsManager = favoritedItemsManager; _stringsProviders = stringsProviders; _notificationService = notificationService; Options = new OptionsMonitor(); }
public AuditoriumViewModel([NotNull] IAsyncDataProvider dataProvider, [NotNull] IUiStringsProviders stringProvider) { if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (stringProvider == null) { throw new ArgumentNullException("stringProvider"); } _dataProvider = dataProvider; _stringProvider = stringProvider; ShowInApp = new SimpleCommand(GoToExternalMap); }
public GroupPageViewModel([NotNull] INavigationService navigation, [NotNull] BaseApplicationSettings applicationSettings, [NotNull] IAsyncDataProvider dataProvider, [NotNull] INotificationService notificationService, [NotNull] FlurryPublisher flurryPublisher, [NotNull] FavoritedItemsManager favoritedItemsManager) : base(flurryPublisher) { if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (notificationService == null) { throw new ArgumentNullException("notificationService"); } if (favoritedItemsManager == null) { throw new ArgumentNullException("favoritedItemsManager"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } if (applicationSettings == null) { throw new ArgumentNullException("applicationSettings"); } _navigation = navigation; _applicationSettings = applicationSettings; _dataProvider = dataProvider; _notificationService = notificationService; _favoritedItemsManager = favoritedItemsManager; _groupFunc = group => group.GroupName[0]; _teachersGroupFunc = teacher => !String.IsNullOrWhiteSpace(teacher.Name) ? teacher.Name[0] : '#'; SubscribeToQuery(); }
public ShowGroupTimeTableCommand([NotNull] INavigationService navigationService, [NotNull] FlurryPublisher flurryPublisher, [NotNull] IAsyncDataProvider dataProvider, [NotNull] IUiStringsProviders stringsProviders, [NotNull] University university, [NotNull] LessonGroup group) { if (navigationService == null) { throw new ArgumentNullException("navigationService"); } if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (stringsProviders == null) { throw new ArgumentNullException("stringsProviders"); } if (university == null) { throw new ArgumentNullException("university"); } if (group == null) { throw new ArgumentNullException("group"); } _navigationService = navigationService; _flurryPublisher = flurryPublisher; _dataProvider = dataProvider; _stringsProviders = stringsProviders; _university = university; _group = group; }
public CommandsFactory([NotNull] INavigationService navigationService, [NotNull] FlurryPublisher flurryPublisher, [NotNull] IUiStringsProviders stringsProviders, [NotNull] IAsyncDataProvider dataProvider) { if (navigationService == null) { throw new ArgumentNullException("navigationService"); } if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } if (stringsProviders == null) { throw new ArgumentNullException("stringsProviders"); } if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } _navigationService = navigationService; _flurryPublisher = flurryPublisher; _stringsProviders = stringsProviders; _dataProvider = dataProvider; }
public CategoryService(IAsyncDataProvider <CategoryDAO> dataProvider, IMapper mapper) { _dataProvider = dataProvider; _mapper = mapper; }
public TagService(IAsyncDataProvider <TagDAO> dataProvider, IMapper mapper) { _dataProvider = dataProvider; _mapper = mapper; }