public static mcs2 Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { mcs2 _mcs2 = new mcs2(); _mcs2.m_rocrailClient = rocrailClient; _mcs2.m_discovery = (bool?)xml.Attribute("discovery"); _mcs2.m_fbdevid = (int?)xml.Attribute("fbdevid"); Definitions.Tools.ParseList <product>(_mcs2.m_productlist, xml, "product", product.Parse, rocrailClient); return(_mcs2); }
public void Update(mcs2 element) { if (element.m_discovery.HasValue == true) { this.discovery = element.discovery; } if (element.m_fbdevid.HasValue == true) { this.fbdevid = element.fbdevid; } this.productlist = element.productlist; }