public ModeTrackingViewModel(IDispatchOnUIThread dispatcherService , IDataService dataService , Interfaces.IDialogService dialogService , ILocalNotificationService localNotificationService) : base(dispatcherService, dataService, dialogService, localNotificationService) { }
public HomePageViewModel( INavigationService navigationService, ILoggerService loggerService, IUserDataRepository userDataRepository, IExposureDataRepository exposureDataRepository, IExposureRiskCalculationService exposureRiskCalculationService, AbsExposureNotificationApiService exposureNotificationApiService, ILocalNotificationService localNotificationService, AbsExposureDetectionBackgroundService exposureDetectionBackgroundService, IExposureConfigurationRepository exposureConfigurationRepository, IExposureRiskCalculationConfigurationRepository exposureRiskCalculationConfigurationRepository, ICheckVersionService checkVersionService, IEssentialsService essentialsService, IDialogService dialogService, IExternalNavigationService externalNavigationService ) : base(navigationService) { Title = AppResources.HomePageTitle; this.loggerService = loggerService; this._userDataRepository = userDataRepository; this._exposureDataRepository = exposureDataRepository; this._exposureRiskCalculationService = exposureRiskCalculationService; this.exposureNotificationApiService = exposureNotificationApiService; this.localNotificationService = localNotificationService; this.exposureDetectionBackgroundService = exposureDetectionBackgroundService; this.exposureConfigurationRepository = exposureConfigurationRepository; this.exposureRiskCalculationConfigurationRepository = exposureRiskCalculationConfigurationRepository; this.checkVersionService = checkVersionService; this.essentialsService = essentialsService; this.dialogService = dialogService; this.externalNavigationService = externalNavigationService; }
public ExposureDetectionService ( ILoggerService loggerService, IUserDataRepository userDataRepository, IExposureDataRepository exposureDataRepository, ILocalNotificationService localNotificationService, IExposureRiskCalculationConfigurationRepository exposureRiskCalculationConfigurationRepository, IExposureRiskCalculationService exposureRiskCalculationService, IExposureConfigurationRepository exposureConfigurationRepository, IEventLogService eventLogService, IDebugExposureDataCollectServer exposureDataCollectServer, IDateTimeUtility dateTimeUtility, IDeviceInfoUtility deviceInfoUtility ) { _loggerService = loggerService; _userDataRepository = userDataRepository; _exposureDataRepository = exposureDataRepository; _localNotificationService = localNotificationService; _exposureRiskCalculationService = exposureRiskCalculationService; _exposureRiskCalculationConfigurationRepository = exposureRiskCalculationConfigurationRepository; _exposureConfigurationRepository = exposureConfigurationRepository; _eventLogService = eventLogService; _exposureDataCollectServer = exposureDataCollectServer; _dateTimeUtility = dateTimeUtility; _deviceInfoUtility = deviceInfoUtility; }
public DebugPageViewModel( INavigationService navigationService, ITermsUpdateService termsUpdateService, IExposureConfigurationRepository exposureConfigurationRepository, IUserDataRepository userDataRepository, IExposureDataRepository exposureDataRepository, AbsExposureNotificationApiService exposureNotificationApiService, AbsExposureDetectionBackgroundService exposureDetectionBackgroundService, ICloseApplicationService closeApplicationService, IServerConfigurationRepository serverConfigurationRepository, ILocalNotificationService localNotificationService, ISendEventLogStateRepository sendEventLogStateRepository, IEventLogRepository eventLogRepository, IEventLogService eventLogService ) : base(navigationService) { Title = "Title:Debug"; _termsUpdateService = termsUpdateService; _exposureConfigurationRepository = exposureConfigurationRepository; _userDataRepository = userDataRepository; _exposureDataRepository = exposureDataRepository; _exposureNotificationApiService = exposureNotificationApiService; _exposureDetectionBackgroundService = exposureDetectionBackgroundService; _closeApplicationService = closeApplicationService; _serverConfigurationRepository = serverConfigurationRepository; _localNotificationService = localNotificationService; _sendEventLogStateRepository = sendEventLogStateRepository; _eventLogRepository = eventLogRepository; _eventLogService = eventLogService; }
public UnreadItemsNotificationsBackgroundTask() { _localNotificationService = new WindowsNotificationService(); _gitterApiService = new GitterApiService(); _passwordStorageService = new PasswordStorageService(); _applicationStorageService = new ApplicationStorageService(); }
public Organizer(ViewModel.MainViewModel mainViewModel) { strg = new StorageService(); AppSettings = CrossSettings.Current; nmzApi = new NamazApiService(); notificationService = DependencyService.Get <ILocalNotificationService>(); this.mainViewModel = mainViewModel; }
public MapViewModel(IDispatchOnUIThread dispatcher , IDataService dataService , Interfaces.IDialogService dialogService , ILocalNotificationService localNotificationService) : base(dispatcher, dataService, dialogService, localNotificationService) { _navigationService = ServiceLocator.Current.GetInstance <INavigationService>(); }
public ModeDontMoveViewModel(IDispatchOnUIThread dispatcher , IDataService dataService , Interfaces.IDialogService dialogService , ILocalNotificationService localNotificationService) : base(dispatcher, dataService, dialogService, localNotificationService) { _navigationService = ServiceLocator.Current.GetInstance <INavigationService>(); _dialogService = dialogService; _dataService = dataService; _localNotificationService = localNotificationService; LsSeekiosInTrackingAfterMove = new HashSet <int>(); LsAlertsModeDontMove = new List <AlertWithRecipientDTO>(); }
public ListSeekiosViewModel(IDataService dataService , Interfaces.IDialogService dialogService , ISaveDataService saveDataService , IDispatchOnUIThread dispatcherService , ILocalNotificationService localNotificationService) { _dataService = dataService; _dialogService = dialogService; _saveDataService = saveDataService; _dispatcherService = dispatcherService; _localNotificationService = localNotificationService; _navigationService = ServiceLocator.Current.GetInstance <INavigationService>(); ActivityNeedsUIToBeUpdated = false; }
public HomePageViewModel( INavigationService navigationService, ILoggerService loggerService, IUserDataService userDataService, IExposureNotificationService exposureNotificationService, ILocalNotificationService localNotificationService ) : base(navigationService) { Title = AppResources.HomePageTitle; this.loggerService = loggerService; this.userDataService = userDataService; this.exposureNotificationService = exposureNotificationService; this.localNotificationService = localNotificationService; }
public ModeZoneViewModel(IDataService dataService , Interfaces.IDialogService dialogService , IDispatchOnUIThread dispatcherService , ILocalNotificationService localNotificationService) : base(dispatcherService, dataService, dialogService, localNotificationService) { _dataService = dataService; _dialogService = dialogService; _localNotificationService = localNotificationService; _navigationService = ServiceLocator.Current.GetInstance <INavigationService>(); _lsAreaCoords = new List <LatitudeLongitude>(); IsGoingBack = false; LsSeekiosInTrackingAfterOOZ = new HashSet <int>(); LsAlertsModeZone = new List <AlertWithRecipientDTO>(); }
public MapViewModelBase(IDispatchOnUIThread dispatcherService , IDataService dataService , Interfaces.IDialogService dialogService , ILocalNotificationService localNotificationService) { _dispatcherService = dispatcherService; _dataService = dataService; _dialogService = dialogService; _localNotificationService = localNotificationService; _saveDataService = GalaSoft.MvvmLight.Ioc.SimpleIoc.Default.GetInstance <ISaveDataService>(); LsSeekiosAlertState = new HashSet <int>(); LsSeekiosOnDemand = new List <SeekiosOnDemand>(); LsSeekiosOnTracking = new List <SeekiosOnTracking>(); IsInNormalMode = true; }
public MakeBookingViewModel( IConnectivityService connectivityService, INavigationService navigationService, IBookingApi carTimesApi, IAuthenticationService authenticationService, IToastService toastService, ILocalNotificationService localNotificationService) : base(connectivityService) { _navigationService = navigationService; _bookingApi = carTimesApi; _authenticationService = authenticationService; _toastService = toastService; _localNotificationService = localNotificationService; MakeBookingCommand = new RelayCommand(MakeBooking); }
public ExposureDetectionService ( ILoggerService loggerService, ISendEventLogStateRepository sendEventLogStateRepository, IExposureDataRepository exposureDataRepository, ILocalNotificationService localNotificationService, IExposureRiskCalculationConfigurationRepository exposureRiskCalculationConfigurationRepository, IExposureRiskCalculationService exposureRiskCalculationService, IExposureConfigurationRepository exposureConfigurationRepository, IEventLogRepository eventLogRepository, IDateTimeUtility dateTimeUtility ) { _loggerService = loggerService; _sendEventLogStateRepository = sendEventLogStateRepository; _exposureDataRepository = exposureDataRepository; _localNotificationService = localNotificationService; _exposureRiskCalculationService = exposureRiskCalculationService; _exposureRiskCalculationConfigurationRepository = exposureRiskCalculationConfigurationRepository; _exposureConfigurationRepository = exposureConfigurationRepository; _eventLogRepository = eventLogRepository; _dateTimeUtility = dateTimeUtility; }
private void SetUpViewPager() { if (viewPager == null) { return; } _navigationService = Mvx.Resolve <IMvxNavigationService>(); var _locationService = Mvx.Resolve <ILocationService>(); _assetService = Mvx.Resolve <IPlatformAssetService>(); _alertService = Mvx.Resolve <IAlertService>(); _messenger = Mvx.Resolve <IMvxMessenger>(); _localNotificationService = Mvx.Resolve <ILocalNotificationService>(); fragments = new List <MvxViewPagerFragmentInfo>(); fragments.Add(new MvxViewPagerFragmentInfo("", typeof(Intro1Fragment), new Intro1ViewModel(_navigationService, _alertService, _assetService, _localNotificationService))); fragments.Add(new MvxViewPagerFragmentInfo("", typeof(Intro2Fragment), new Intro2ViewModel(_navigationService, _alertService, _assetService, _localNotificationService))); fragments.Add(new MvxViewPagerFragmentInfo("", typeof(Intro3Fragment), new Intro3ViewModel(_navigationService, _alertService, _assetService, _localNotificationService))); fragments.Add(new MvxViewPagerFragmentInfo("", typeof(Intro4Fragment), new Intro4ViewModel(_navigationService, _alertService, _assetService, _localNotificationService))); fragments.Add(new MvxViewPagerFragmentInfo("", typeof(NetworksFragment), new NetworksViewModel(_navigationService, _locationService, _alertService, _assetService, _localNotificationService, _messenger))); viewPager.AddOnPageChangeListener(this); _adapter = new MvxCachingFragmentStatePagerAdapter(this, SupportFragmentManager, fragments); viewPager.Adapter = _adapter; }
public MyFirebaseMessagingService() : base() { _localNotificationService = new LocalNotificationService(); }
public TwitterViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger = null) : base(navigationService, alertService, assetService, localNotificationService, messanger) { SubmitButtonImage = _assetService.ChallengesShareButton; IsBusy = true; }
public GhostViewModel(ILocalNotificationService localNotificationService) { _localNotificationService = localNotificationService; }
public PointsContainerViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger) : base(navigationService, alertService, assetService, localNotificationService, messanger) { }
public Intro1ViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService) : base(navigationService, alertService, assetService, localNotificationService) { }
public HomeViewModel(IGALogger logger, ISQLiteConnectionProvider provider, ILocalNotificationService localNotificationService) { _connection = provider.Connection; _localNotificationService = localNotificationService; }
public FeedViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger) : base(navigationService, alertService, assetService, localNotificationService, messanger) { LastTabVM = this; }
public RoomViewModel(Room room, IGitterApiService gitterApiService, ILocalNotificationService localNotificationService, IProgressIndicatorService progressIndicatorService, IEventService eventService, ITelemetryService telemetryService, IMainViewModel mainViewModel) { // Properties Room = room; // View Models _mainViewModel = mainViewModel; // Commands SendMessageCommand = new RelayCommand(SendMessage, CanSendMessage); SendMessageWithParamCommand = new RelayCommand<bool>(SendMessageWithParam); RemoveMessageCommand = new RelayCommand<IMessageViewModel>(RemoveMessage, CanRemoveMessage); CopyMessageCommand = new RelayCommand<IMessageViewModel>(CopyMessage); RespondToCommand = new RelayCommand<User>(RespondTo); ViewProfileCommand = new RelayCommand<User>(ViewProfile); TalkCommand = new RelayCommand(Talk); RefreshCommand = new RelayCommand(Refresh); // Inject Services _gitterApiService = gitterApiService; _localNotificationService = localNotificationService; _progressIndicatorService = progressIndicatorService; _eventService = eventService; _telemetryService = telemetryService; if (IsInDesignMode) { // Code runs in Blend --> create design time data. var malditogeek = new User { Id = "53307734c3599d1de448e192", Username = "******", DisplayName = "Mauro Pompilio", Url = "/malditogeek", SmallAvatarUrl = "https://avatars.githubusercontent.com/u/14751?", MediumAvatarUrl = "https://avatars.githubusercontent.com/u/14751?" }; var suprememoocow = new User { Id = "53307831c3599d1de448e19a", Username = "******", DisplayName = "Andrew Newdigate", Url = "/suprememoocow,", SmallAvatarUrl = "https://avatars.githubusercontent.com/u/594566?", MediumAvatarUrl = "https://avatars.githubusercontent.com/u/594566?" }; Messages = new MessagesIncrementalLoadingCollection("123456", gitterApiService, eventService, mainViewModel) { new MessageViewModel(new Message { Id = "53316dc47bfc1a000000000f", Text = "Hi @suprememoocow !", Html = "Hi <span data-link-type=\"mention\" data-screen-name=\"suprememoocow\" class=\"mention\">@suprememoocow</span> !", SentDate = new DateTime(2014, 3, 25, 11, 51, 32), EditedDate = null, User = malditogeek, UnreadByCurrent = false, ReadCount = 0, Urls = new List<MessageUrl>(), Mentions = new List<Mention> { new Mention { ScreenName = "suprememoocow", UserId = "53307831c3599d1de448e19a" } }, Issues = new List<Issue>(), Version = 1 }), new MessageViewModel(new Message { Id = "53316ec37bfc1a0000000011", Text = "I've been working on #11, it'll be ready to ship soon", Html = "I've been working on <span data-link-type=\"issue\" data-issue=\"11\" class=\"issue\">#11</span>, it'll be ready to ship soon", SentDate = new DateTime(2014, 3, 25, 11, 55, 47), EditedDate = null, User = malditogeek, UnreadByCurrent = false, ReadCount = 0, Urls = new List<MessageUrl>(), Mentions = new List<Mention>(), Issues = new List<Issue> { new Issue {Number = "11"} }, Version = 1 }), new MessageViewModel(new Message { Id = "53316ec37bfc1a0000000012", Text = "This is a test message", Html = "This is a test message", SentDate = new DateTime(2014, 3, 25, 11, 55, 47), EditedDate = null, User = suprememoocow, UnreadByCurrent = false, ReadCount = 0, Urls = new List<MessageUrl>(), Mentions = new List<Mention>(), Issues = new List<Issue>(), Version = 1 }), new MessageViewModel(new Message { Id = "53316ec37bfc1a0000000013", Text = "Another long long ............... message", Html = "Another long long ............... message", SentDate = new DateTime(2014, 3, 25, 11, 55, 47), EditedDate = null, User = malditogeek, UnreadByCurrent = false, ReadCount = 0, Urls = new List<MessageUrl>(), Mentions = new List<Mention>(), Issues = new List<Issue>(), Version = 1 }) }; } else { // Code runs "for real" Messages = new MessagesIncrementalLoadingCollection(Room.Id, gitterApiService, eventService, mainViewModel); OpenRealtimeStream(); } // Update count of unread messages UnreadMessagesCount = Room.UnreadItems; }
public MainViewModel(IGitterApiService gitterApiService, ILocalNotificationService localNotificationService, IApplicationStorageService applicationStorageService, IProgressIndicatorService progressIndicatorService, IPasswordStorageService passwordStorageService, IEventService eventService, ITelemetryService telemetryService, INavigationService navigationService) { // Services _gitterApiService = gitterApiService; _localNotificationService = localNotificationService; _applicationStorageService = applicationStorageService; _progressIndicatorService = progressIndicatorService; _passwordStorageService = passwordStorageService; _eventService = eventService; _navigationService = navigationService; _telemetryService = telemetryService; // Commands SelectRoomCommand = new RelayCommand<IRoomViewModel>(SelectRoom); ChatWithUsCommand = new RelayCommand(ChatWithUs, CanChatWithUs); GoToAboutPageCommand = new RelayCommand(GoToAboutPage); RefreshCommand = new RelayCommand(Refresh, () => !IsRefreshing); ToggleSearchCommand = new RelayCommand<bool>(ToggleSearch); // Properties CurrentDateTime = DateTime.Now; if (IsInDesignMode) { // Code runs in Blend --> create design time data. CurrentUser = new User { Id = "53307734c3599d1de448e192", Username = "******", DisplayName = "Mauro Pompilio", Url = "/malditogeek", SmallAvatarUrl = "https://avatars.githubusercontent.com/u/14751?", MediumAvatarUrl = "https://avatars.githubusercontent.com/u/14751?" }; var suprememoocow = new User { Id = "53307831c3599d1de448e19a", Username = "******", DisplayName = "Andrew Newdigate", Url = "/suprememoocow,", SmallAvatarUrl = "https://avatars.githubusercontent.com/u/594566?", MediumAvatarUrl = "https://avatars.githubusercontent.com/u/594566?" }; Rooms.Add(new RoomViewModel(new Room { Id = "53307860c3599d1de448e19d", Name = "Andrew Newdigate", Topic = string.Empty, OneToOne = true, Users = new[] { suprememoocow }, UnreadItems = 52, UnreadMentions = 0, DisabledNotifications = false, Type = "ONETOONE" }, gitterApiService, localNotificationService, progressIndicatorService, eventService, telemetryService, this)); Rooms.Add(new RoomViewModel(new Room { Id = "5330777dc3599d1de448e194", Name = "gitterHQ", Topic = "Gitter", Url = "gitterHQ", OneToOne = false, UserCount = 2, UnreadItems = 0, UnreadMentions = 0, LastAccessTime = new DateTime(2014, 3, 24, 18, 22, 28), DisabledNotifications = false, Type = "ORG", Version = 1 }, gitterApiService, localNotificationService, progressIndicatorService, eventService, telemetryService, this)); Rooms.Add(new RoomViewModel(new Room { Id = "5330780dc3599d1de448e198", Name = "gitterHQ/devops", Topic = string.Empty, Url = "gitterHQ/devops", OneToOne = false, UserCount = 2, UnreadItems = 3, UnreadMentions = 0, LastAccessTime = new DateTime(2014, 3, 24, 18, 23, 10), DisabledNotifications = false, Type = "ORG_CHANNEL", Version = 1 }, gitterApiService, localNotificationService, progressIndicatorService, eventService, telemetryService, this)); Rooms.Add(new RoomViewModel(new Room { Id = "53307793c3599d1de448e196", Name = "malditogeek/vmux", Topic = "VMUX - Plugin-free video calls in your browser using WebRTC", Url = "gitterHQ/devops", OneToOne = false, UserCount = 2, UnreadItems = 42, UnreadMentions = 0, LastAccessTime = new DateTime(2014, 3, 24, 18, 21, 08), DisabledNotifications = false, Type = "REPO", Version = 1 }, gitterApiService, localNotificationService, progressIndicatorService, eventService, telemetryService, this)); SelectedRoom = Rooms.FirstOrDefault(); foreach (var room in Rooms) SearchedRooms.Add(room); } else { // Code runs "for real" // Events _eventService.ReadRoom .Subscribe(room => { HtmlToXaml.HtmlToXaml.RoomName = room.Room.Name; }); HtmlToXaml.HtmlToXaml.ImageTapped += (sender, args) => { var image = sender as Image; var bitmapImage = image.Source as BitmapImage; ViewModelLocator.FullImage.Source = bitmapImage.UriSource.OriginalString; _navigationService.NavigateTo("FullImage"); }; // Retrieve access token to use in the app string token = _passwordStorageService.Retrieve("token"); _gitterApiService.SetToken(token); // Add event that will update READ new messages _currentSelectedRoomUnreadMessages = _eventService.NotifyUnreadMessages .Subscribe(async unreadMessages => await NotifyReadMessages(unreadMessages)); } }
public PhotoPickerViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger, ILocationService locationService) : base(navigationService, alertService, assetService, localNotificationService, messanger) { _token = _messenger.Subscribe <MessangerChallengeModel>(OnChallengeReceived); _locationService = locationService; }
public FacebookViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger, IFacebookShareService facebookService) : base(navigationService, alertService, assetService, localNotificationService, messanger) { _facebookService = facebookService; SubmitButtonImage = _assetService.ChallengesFacebookButton; TopMarginToCompleteView = true; IsBusy = true; }
public BasePointsViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger = null) : base(navigationService, alertService, assetService, localNotificationService, messanger) { InitVM(); Refresh(); ScoreImage = _assetService.IconScoreTransactions; FirstInitialize = true; }
public QueueViewModel(ILocalNotificationService localNotificationService) { _localNotificationService = localNotificationService; }
public BaseFeedViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger) : base(navigationService, alertService, assetService, localNotificationService, messanger) { _actionHandlerService = Mvx.Resolve <IActionHandlerService>(); FeedItems = new MvxObservableCollection <FeedItemModel>(); FeedLoaderHidden = false; }
public LocationSettingsViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger) : base(navigationService, alertService, assetService, localNotificationService, messanger) { CurrentVM = this; }
public FBEngagementViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger, IFacebookShareService facebookService) : base(navigationService, alertService, assetService, localNotificationService, messanger) { _facebookService = facebookService; IsBusy = true; }
public FlyeringViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger, ILocationService locationService) : base(navigationService, alertService, assetService, localNotificationService, messanger) { _locationService = locationService; }
public IntroContainerViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService) : base(navigationService, alertService, assetService, localNotificationService) { NavigationHelper.ShowWebViewFromIntroVM = true; }
public CollateralTrackingViewModel(IMvxNavigationService navigationService, IAlertService alertService, IPlatformAssetService assetService, ILocalNotificationService localNotificationService, IMvxMessenger messanger, ILocationService locationService) : base(navigationService, alertService, assetService, localNotificationService, messanger) { _locationService = locationService; IsBusy = true; }
public DataService(IRepository repository, IMvxMessenger messenger, ILocalNotificationService notification) { _repository = repository; _notification = notification; _messenger = messenger; }