public static accessoryctrl Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { accessoryctrl _accessoryctrl = new accessoryctrl(); _accessoryctrl.m_rocrailClient = rocrailClient; _accessoryctrl.m_active = (bool?)xml.Attribute("active"); _accessoryctrl.m_delay = (int?)xml.Attribute("delay"); _accessoryctrl.m_interval = (int?)xml.Attribute("interval"); _accessoryctrl.m_lockroutes = (string)xml.Attribute("lockroutes"); return(_accessoryctrl); }
public void Update(accessoryctrl element) { if (element.m_active.HasValue == true) { this.active = element.active; } if (element.m_delay.HasValue == true) { this.delay = element.delay; } if (element.m_interval.HasValue == true) { this.interval = element.interval; } if (element.m_lockroutes != null) { this.lockroutes = element.lockroutes; } }