Exemple #1
0
 public SmartLampWebSocketHub(IHubContext <AirConditionerHub> conditionerHubContext, ILogger <SmartLampWebSocketHub> logger, IHubContext <SmartLampHub> lampHubContext, ISmartLampService smartLampService, IAirConditionerService airConditionerService)
 {
     _smartLampHub     = lampHubContext;
     _smartLampService = smartLampService;
     _manager          = new WebSocketMessageManager(lampHubContext, conditionerHubContext);
     _logger           = logger;
 }
 public DevicesController(ISmartLampService smartLampService, IMapper mapper, IMotionSensorService motionSensorService, IAirConditionerService airConditionerService)
 {
     _smartLampService      = smartLampService;
     _mapper                = mapper;
     _airConditionerService = airConditionerService;
     _motionSensorService   = motionSensorService;
 }
Exemple #3
0
 public SmartLampsController(ISmartLampService smartLampService, IMapper mapper)
 {
     _smartLampService = smartLampService;
     _mapper           = mapper;
 }