Esempio n. 1
0
        public static http Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            http _http = new http();

            _http.m_rocrailClient = rocrailClient;
            _http.m_path          = (string)xml.Attribute("path");
            _http.m_port          = (int?)xml.Attribute("port");
            _http.m_refresh       = (int?)xml.Attribute("refresh");
            Definitions.Tools.ParseList <webclient>(_http.m_webclientlist, xml, "webclient", webclient.Parse, rocrailClient);
            return(_http);
        }
Esempio n. 2
0
 public void Update(http element)
 {
     if (element.m_path != null)
     {
         this.path = element.path;
     }
     if (element.m_port.HasValue == true)
     {
         this.port = element.port;
     }
     if (element.m_refresh.HasValue == true)
     {
         this.refresh = element.refresh;
     }
     this.webclientlist = element.webclientlist;
 }