コード例 #1
0
        public PhilipsHueConnector(CredentialsStorage credentialsStorage, IHueConfigurationUI hueUI)
        {
            client = new RestClient("https://discovery.meethue.com/");
            client.UseSystemTextJson();

            this.credentialsStorage = credentialsStorage;
            this.hueUI = hueUI;
        }
コード例 #2
0
        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();
        }