Example #1
0
 private RequestInfo[] GenStraitOn()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post,
                                string.Format(SET_STRAIT, TheZone.Name, "On")),
     });
 }
Example #2
0
 protected override RequestInfo[] GetRequestInfo()
 {
     Items = new Dictionary <int, ListItem>();
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post, ListRequests.GetListRequest(InputName)),
     });
 }
Example #3
0
 protected override RequestInfo[] GetRequestInfo()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post,
                                string.Format(REQUEST_FS, TheZone.Name, TheZone.Volume.RawValue, TheZone.Volume.Exp, TheZone.Volume.Unit))
     });
 }
Example #4
0
 /// <summary>
 /// In order to set DSP, we need to ensure strait is off.
 /// </summary>
 /// <returns></returns>
 private RequestInfo[] GenDSDP()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post,
                                string.Format(SET_STRAIT, TheZone.Name, "Off")),
         RequestInfo.GenRequest(yavcMethod.Post,
                                string.Format(SET_DSP, TheZone.Name, TheZone.Surround.DSP)),
     });
 }
Example #5
0
 protected override RequestInfo[] GetRequestInfo()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post, string.Format(@"<YAMAHA_AV cmd=""GET""><{0}><Basic_Status>GetParam</Basic_Status></{0}></YAMAHA_AV>", TheZone.Name)),
         RequestInfo.GenRequest(yavcMethod.Post, string.Format(@"<YAMAHA_AV cmd=""GET""><{0}><Config>GetParam</Config></{0}></YAMAHA_AV>", TheZone.Name)),
         RequestInfo.GenRequest(yavcMethod.Post, string.Format(@"<YAMAHA_AV cmd=""GET""><{0}><Scene><Scene_Sel_Item>GetParam</Scene_Sel_Item></Scene></{0}></YAMAHA_AV>", TheZone.Name)),
         RequestInfo.GenRequest(yavcMethod.Post, string.Format(@"<YAMAHA_AV cmd=""GET""><{0}><Input><Input_Sel_Item>GetParam</Input_Sel_Item></Input></{0}></YAMAHA_AV>", TheZone.Name)),
         //RequestInfo.GenRequest(yavcMethod.Post, string.Format(@"<YAMAHA_AV cmd=""GET""><{0}><Sound_Video><Pure_Direct><Mode>GetParam</Mode></Pure_Direct></Sound_Video></{0}></YAMAHA_AV>", Zone.Name)),
     });
 }
Example #6
0
        protected override RequestInfo[] GetRequestInfo()
        {
            if (null == Input)
            {
                return(new RequestInfo[0]);
            }

            return(new RequestInfo[] {
                RequestInfo.GenRequest(yavcMethod.Post, string.Format(REQ, Input.Src_Name, GetDirectionString(Direction)))
            });
        }
Example #7
0
        protected override RequestInfo[] GetRequestInfo()
        {
            if (null == Input || Mode == PlaybackInfo.Unknown)
            {
                return(new RequestInfo[0]);
            }


            return(new RequestInfo[] {
                RequestInfo.GenRequest(yavcMethod.Post, string.Format(REQ, Input.Src_Name, Mode))
            });
        }
Example #8
0
 protected override RequestInfo[] GetRequestInfo()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post, ListRequests.GetBackRequest(InputName))
     });
 }
Example #9
0
 protected override RequestInfo[] GetRequestInfo()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post, string.Format(@"<YAMAHA_AV cmd=""PUT""><{0}><Input><Input_Sel>{1}</Input_Sel></Input></{0}></YAMAHA_AV>", TheZone.Name, Input.Param)),
     });
 }
Example #10
0
 protected override RequestInfo[] GetRequestInfo()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post, RequestString),
     });
 }
Example #11
0
 protected override RequestInfo[] GetRequestInfo()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post, string.Format(@"<YAMAHA_AV cmd=""GET""><{0}><Basic_Status>GetParam</Basic_Status></{0}></YAMAHA_AV>", TheZone.Name)),
     });
 }
Example #12
0
 protected override RequestInfo[] GetRequestInfo()
 {
     return(new RequestInfo[] { RequestInfo.GenRequest(yavcMethod.Post, PartyMode) });
 }
Example #13
0
 protected override RequestInfo[] GetRequestInfo()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post, string.Format(REQ, OnOff))
     });
 }
Example #14
0
 protected override RequestInfo[] GetRequestInfo()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Post, string.Format(REQ, TheZone.Name, IsOn ? "On" : "Off"))
     });
 }
Example #15
0
 protected override RequestInfo[] GetRequestInfo()
 {
     return(new RequestInfo[] {
         RequestInfo.GenRequest(yavcMethod.Get, null, "YamahaRemoteControl/desc.xml", 80),
     });
 }