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

GetSystemInfo() public static method

public static GetSystemInfo ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument
        public static XDocument GetSystemInfo()
        {
            /* returns the big story of the smartplug:
             * 
<?xml version="1.0" encoding="UTF8"?>
<SMARTPLUG id="edimax">
  <CMD id="get">
    <SYSTEM_INFO>
      <SUPPORT>
        <Device.System.SMTP.Support>1</Device.System.SMTP.Support>
        <Device.System.Power.Schedule.Support>1</Device.System.Power.Schedule.Support>
        <Device.System.FwUpgrade.Support>1</Device.System.FwUpgrade.Support>
      </SUPPORT>
      <Run.Cus>Edimax</Run.Cus>
      <Run.Model>SP2101W</Run.Model>
      <Run.FW.Version>1.03</Run.FW.Version>
      <Run.LAN.Client.MAC.Address>[mac address removed by rjs]</Run.LAN.Client.MAC.Address>
      <Device.System.SMTP.0.Server.Address></Device.System.SMTP.0.Server.Address>
      <Device.System.SMTP.0.Server.Port></Device.System.SMTP.0.Server.Port>
      <Device.System.SMTP.0.Server.Certificate></Device.System.SMTP.0.Server.Certificate>
      <Device.System.SMTP.0.Server.Authorization.Enable></Device.System.SMTP.0.Server.Authorization.Enable>
      <Device.System.SMTP.0.Mail.Sender></Device.System.SMTP.0.Mail.Sender>
      <Device.System.SMTP.0.Mail.Recipient></Device.System.SMTP.0.Mail.Recipient>
      <Device.System.SMTP.0.Mail.Action.Notify.Enable></Device.System.SMTP.0.Mail.Action.Notify.Enable>
      <Device.System.SMTP.0.Server.Authorization.Name></Device.System.SMTP.0.Server.Authorization.Name>
      <Device.System.SMTP.0.Server.Authorization.Password></Device.System.SMTP.0.Server.Authorization.Password>
      <Device.System.TimeZone.Zone>23</Device.System.TimeZone.Zone>
      <Device.System.TimeZone.Server.Address.0>pool.ntp.org</Device.System.TimeZone.Server.Address.0>
      <Device.System.TimeZone.Server.Address.1>europe.pool.ntp.org</Device.System.TimeZone.Server.Address.1>
      <Device.System.TimeZone.Server.Address.2>oceania.pool.ntp.org</Device.System.TimeZone.Server.Address.2>
      <Device.System.TimeZone.Server.Address.3>north-america.pool.ntp.org</Device.System.TimeZone.Server.Address.3>
      <Device.System.TimeZone.Server.Address.4>south-america.pool.ntp.org</Device.System.TimeZone.Server.Address.4>
      <Device.System.TimeZone.Daylight.Enable>OFF</Device.System.TimeZone.Daylight.Enable>
      <Device.System.Name>SmartEdi1234</Device.System.Name>
   </SYSTEM_INFO>
   </CMD>
</SMARTPLUG>
             */
            return XDocument.Parse(@"<?xml version=""1.0"" encoding=""UTF8""?>
                                     <SMARTPLUG id=""edimax"">
                                        <CMD id=""get"">
                                           <SYSTEM_INFO/>
                                        </CMD>
                                     </SMARTPLUG>");
        }