예제 #1
0
 public void SetHost(HomeGenieService hg, int programId)
 {
     homegenie        = hg;
     netHelper        = new NetHelper(homegenie);
     programHelper    = new ProgramHelper(homegenie, programId);
     eventsHelper     = new EventsHelper(homegenie, programId);
     serialPortHelper = new SerialPortHelper();
     tcpClientHelper  = new TcpClientHelper();
     schedulerHelper  = new SchedulerHelper(homegenie);
 }
예제 #2
0
 public void SetHost(HomeGenieService hg, int programId)
 {
     homegenie = hg;
     netHelper = new NetHelper(homegenie);
     programHelper = new ProgramHelper(homegenie, programId);
     eventsHelper = new EventsHelper(homegenie, programId);
     serialPortHelper = new SerialPortHelper();
     tcpClientHelper = new TcpClientHelper();
     schedulerHelper = new SchedulerHelper(homegenie);
 }
예제 #3
0
 public void SetHost(HomeGenieService hg, int programId)
 {
     hgService  = hg;
     Net        = new NetHelper(hgService.Parameters, hgService.GetHttpServicePort());
     Program    = new ProgramHelper(hgService, programId);
     When       = new EventsHelper(hgService, programId);
     SerialPort = new SerialPortHelper();
     TcpClient  = new TcpClientHelper();
     UdpClient  = new UdpClientHelper();
     MqttClient = new MqttClientHelper();
     KnxClient  = new KnxClientHelper();
     Scheduler  = new SchedulerHelper(hgService);
 }
예제 #4
0
 public void SetHost(HomeGenieService hg, SchedulerItem item)
 {
     homegenie = hg;
     schedulerItem = item;
     Reset();
     netHelper = new NetHelper(homegenie);
     serialPortHelper = new SerialPortHelper();
     tcpClientHelper = new TcpClientHelper();
     udpClientHelper = new UdpClientHelper();
     mqttClientHelper = new MqttClientHelper();
     knxClientHelper = new KnxClientHelper();
     schedulerHelper = new SchedulerHelper(homegenie);
     programHelper = new ProgramHelperBase(homegenie);
 }