示例#1
0
 public UpdateService(ITemperatureSensorsService temperatureSensorsService, IHumiditySensorsService humiditySensorsService,
                      IRoomsService roomsService, ITemperatureService temperatureService, IHumidityService humidityService, IEmailService emailService,
                      ISettingsService settingsService)
 {
     _temperatureSensorsService = temperatureSensorsService;
     _humiditySensorsService    = humiditySensorsService;
     _roomsService       = roomsService;
     _temperatureService = temperatureService;
     _humidityService    = humidityService;
     _emailService       = emailService;
     _settingsService    = settingsService;
 }
示例#2
0
        public TimerViewModel(ISessionService sessionService, ITemperatureService temperatureService, IHumidityService humdityService)
        {
            this.sessionService     = sessionService;
            this.temperatureService = temperatureService;
            this.humidityService    = humdityService;
            session = new Session();
            LoadCommands();
            SubscribeToMessages();
            run = false;

            User jonas = new User();

            jonas.Name     = "Jonas";
            jonas.Password = "******";
            jonas.Id       = 2;
            session.User   = jonas;
        }
示例#3
0
 public ValuesViewModel(IHumidityService humidityService)
 {
     this.humidityService = humidityService;
     RegisterForMessages();
 }
 public HumidityController(IHumidityService humidityService, ISensorService sensorService)
 {
     _humidityService = humidityService;
     _sensorService   = sensorService;
 }
示例#5
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger, IHumidityService humidityService)
 {
     _logger          = logger;
     _humidityService = humidityService;
 }
 public HumidityController(IHumidityService humidityService)
 {
     _humidityService = humidityService;
 }