コード例 #1
0
 public LightsHelper(IHassWebApiServiceProxy hassApiProxy1)
 {
     _hassApiProxy = hassApiProxy1;
 }
コード例 #2
0
 // Dependencies (IoC or Factories not supported yet, but would be nice with a factory that you can override to work with whatever)
 public XiButtonsDimmerApp()
 {
     _logger       = LogManager.GetCurrentClassLogger();
     _hassApiProxy = new HassWebApiServiceProxy(WebApiBaseUrl, ApiPassword);
     _lightsHelper = new LightsHelper(_hassApiProxy);
 }