示例#1
0
 public OpenWeatherService(IMediator mediator, IClock clock, IRestClient restClient, ILightsController lightsController, ITimerEvents timerEvents)
 {
     _mediator         = mediator;
     _clock            = clock;
     _restClient       = restClient;
     _lightsController = lightsController;
     _timerEvents      = timerEvents;
 }
 public TimerService(ITimerClock timerClock, IClock clock, IMediator mediator, ILedBoard ledBoard, ITimerEvents timerEvents, ILightsController lightsController, IRelayBoard relayBoard)
 {
     _timerClock       = timerClock;
     _clock            = clock;
     _mediator         = mediator;
     _ledBoard         = ledBoard;
     _timerEvents      = timerEvents;
     _lightsController = lightsController;
     _relayBoard       = relayBoard;
 }
示例#3
0
    private void Start()
    {
        LightsData lightsData = new LightsData();

        ILightsView lightsview = GetComponentInChildren <ILightsView>();

        if (lightsview == null)
        {
            Debug.LogError("lightsview not attached");
        }
        lightsview.Initialize(lightsData);

        ILightsController lightsController = GetComponentInChildren <ILightsController>();

        if (lightsController == null)
        {
            Debug.LogError("lightsController not attached");
        }
        lightsController.Initialize(lightsData);
    }
示例#4
0
 public ToggleGardenLightsHandler(ILightsController lightsController)
 {
     _lightsController = lightsController;
 }