public PhilipsHueConnector(CredentialsStorage credentialsStorage, IHueConfigurationUI hueUI) { client = new RestClient("https://discovery.meethue.com/"); client.UseSystemTextJson(); this.credentialsStorage = credentialsStorage; this.hueUI = hueUI; }
public PhilipsHueBridge( CredentialsStorage credentialsStorage, IHueConfigurationUI configurationUI, string id, string bridgeIP) { this.id = id; this.bridgeIP = bridgeIP; this.credentialsStorage = credentialsStorage; this.configurationUI = configurationUI; client = new RestClient(string.Format("http://{0}/api", this.bridgeIP)); client.UseSystemTextJson(); }