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); }
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; }