public CurrentWeatherVm(ICurrentWeatherDataProvider currentWeatherDataProvider, ISensorPinManager sensorPinManager, ICurrentWeatherManager currentWeatherManager) { _currentWeatherDataProvider = currentWeatherDataProvider; _sensorPinManager = sensorPinManager; _currentWeatherManager = currentWeatherManager; ShowSensorCommand = new RelayCommand <SensorProjection>(ShowSensor, CanShowSensor, this); ChangeSensorPinStatusCommand = new RelayCommand <SensorProjection>(ChangeSensorPinStatus, CanChangeSensorPinStatus, this); }
public SensorHistoryVm(ICurrentWeatherDataProvider currentWeatherDataProvider, IToastPresenter toastPresenter, IMessagePresenter messagePresenter) { _currentWeatherDataProvider = currentWeatherDataProvider; _toastPresenter = toastPresenter; _messagePresenter = messagePresenter; RefreshCommand = new RelayCommand(Refresh); LoadMoreItemsCommand = new RelayCommand(LoadMoreItems); Items = new SynchronizedNotifiableCollection <SensorHistoryData>(); }