public NotificationManagerViewModel(NotificationManager model) { _managerModel = model; Items = new DispatcherCollection<NotificationStreamViewModel>(App.Current.Dispatcher); CompositeDisposable.Add(_modelPropChangedEventListener = new PropertyChangedEventListener(model)); CompositeDisposable.Add(_thisPropChangedEventListener = new PropertyChangedEventListener(this)); CompositeDisposable.Add(Observable.Interval(TimeSpan.FromSeconds(60)).Subscribe(Interval_Fired)); _modelPropChangedEventListener.Add(() => model.UnreadItemCount, UnreadItemCount_PropertyChanged); _thisPropChangedEventListener.Add(() => IsActive, IsActive_PropertyChanged); }
public Account(IPlatformClientBuilder setting) { Builder = setting; Stream = new StreamManager(this); Notification = new NotificationManager(this); }