Contrequarte.SmartPlug.Core.SmartPlugMessages.GetEntireScheduling C# (CSharp) Method

GetEntireScheduling() public static method

Returns a XDocument as template for getting/setting schedules
public static GetEntireScheduling ( bool isSetup ) : System.Xml.Linq.XDocument
isSetup bool true returns a "setup" template, false a "get" template
return System.Xml.Linq.XDocument
        public static XDocument GetEntireScheduling(bool isSetup)
        {
            return XDocument.Parse(string.Format(@"<?xml version=""1.0"" encoding=""UTF8""?>
                                                   <SMARTPLUG id=""edimax"">
                                                      <CMD id=""{0}"">
                                                         <SCHEDULE/>
                                                      </CMD>
                                                   </SMARTPLUG>",isSetup?"setup":"get"));
        }