public void Update(slotserver element) { if (element.m_active.HasValue == true) { this.active = element.active; } if (element.m_format != null) { this.format = element.format; } if (element.m_iid != null) { this.iid = element.iid; } if (element.m_lconly.HasValue == true) { this.lconly = element.lconly; } if (element.m_purge.HasValue == true) { this.purge = element.purge; } if (element.m_speedstep.HasValue == true) { this.speedstep = element.speedstep; } if (element.m_stopatpurge.HasValue == true) { this.stopatpurge = element.stopatpurge; } }
public static slotserver Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { slotserver _slotserver = new slotserver(); _slotserver.m_rocrailClient = rocrailClient; _slotserver.m_active = (bool?)xml.Attribute("active"); _slotserver.m_format = (string)xml.Attribute("format"); _slotserver.m_iid = (string)xml.Attribute("iid"); _slotserver.m_lconly = (bool?)xml.Attribute("lconly"); _slotserver.m_purge = (bool?)xml.Attribute("purge"); _slotserver.m_speedstep = (int?)xml.Attribute("speedstep"); _slotserver.m_stopatpurge = (bool?)xml.Attribute("stopatpurge"); return(_slotserver); }