public HomeViewModel( INotificationService notificationService, IChartService chartService, IBookingService bookingService, IAuthenticationService authenticationService, IFileService fileService, IRoomDevicesDataService roomDevicesDataService) { this.notificationService = notificationService; this.chartService = chartService; this.bookingService = bookingService; this.authenticationService = authenticationService; this.fileService = fileService; this.roomDevicesDataService = roomDevicesDataService; notifications = new ObservableRangeCollection <Notification>(); }
public MyRoomViewModel( IOpenUriService openUrlService, IAnalyticService analyticService, IRoomDevicesDataService roomDevicesDataService) { this.openUrlService = openUrlService; this.analyticService = analyticService; this.roomDevicesDataService = roomDevicesDataService; delayedTemperatureChangedTimer = new Timer(sliderInertia, async() => { await UpdateRoomTemperature(DesiredTemperature); }); delayedLightChangedTimer = new Timer(sliderInertia, async() => { await UpdateRoomLight(DesiredAmbientLight); }); SetNeed(); }