public static bidib Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { bidib _bidib = new bidib(); _bidib.m_rocrailClient = rocrailClient; _bidib.m_secAck = (bool?)xml.Attribute("secAck"); _bidib.m_secAckInt = (int?)xml.Attribute("secAckInt"); _bidib.m_watchdog = (bool?)xml.Attribute("watchdog"); _bidib.m_watchdogInt = (int?)xml.Attribute("watchdogInt"); Definitions.Tools.ParseList <bidibnode>(_bidib.m_bidibnodelist, xml, "bidibnode", bidibnode.Parse, rocrailClient); return(_bidib); }
public void Update(bidib element) { if (element.m_secAck.HasValue == true) { this.secAck = element.secAck; } if (element.m_secAckInt.HasValue == true) { this.secAckInt = element.secAckInt; } if (element.m_watchdog.HasValue == true) { this.watchdog = element.watchdog; } if (element.m_watchdogInt.HasValue == true) { this.watchdogInt = element.watchdogInt; } this.bidibnodelist = element.bidibnodelist; }