private void Switch(int input)
 {
     if (InputIsValid())
     {
         string json = string.Format(@"{{""source"":{0}}}", input - 1);
         Sw41Plus.HttpPost(SetUrl, json);
     }
 }
        public void Poll()
        {
            var response = Sw41Plus.HttpGet(GetUrl);

            try {
                json = JObject.Parse(response);
                json = json["audioInfo"] as JObject;
                FillFromJsonObject();
            } catch (Exception ex) {
                ErrorMessage.Error("Sw41Plus.AudioSettings.Poll: Error handling Poll() response: {0}", ex.Message);
            }
        }
 public ActiveSourceApi(Sw41Plus sw41) : this()
 {
     Sw41Plus = sw41;
 }
        public void Poll()
        {
            var response = Sw41Plus.HttpGet(GetUrl);

            ParseMatrix(response);
        }
 public AudioSettingsApi(Sw41Plus sw41) : this()
 {
     Sw41Plus = sw41;
 }