public static link Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { link _link = new link(); _link.m_rocrailClient = rocrailClient; _link.m_active = (bool?)xml.Attribute("active"); _link.m_allowfollowup = (bool?)xml.Attribute("allowfollowup"); _link.m_desc = (string)xml.Attribute("desc"); _link.m_dst = (string)xml.Attribute("dst"); _link.m_id = (string)xml.Attribute("id"); _link.m_maxfollowup = (int?)xml.Attribute("maxfollowup"); _link.m_src = (string)xml.Attribute("src"); _link.m_usage = (int?)xml.Attribute("usage"); Definitions.Tools.ParseList <linkcond>(_link.m_linkcondlist, xml, "linkcond", linkcond.Parse, rocrailClient); return(_link); }
public void Update(link element) { if (element.m_active.HasValue == true) { this.active = element.active; } if (element.m_allowfollowup.HasValue == true) { this.allowfollowup = element.allowfollowup; } if (element.m_desc != null) { this.desc = element.desc; } if (element.m_dst != null) { this.dst = element.dst; } if (element.m_id != null) { this.id = element.id; } if (element.m_maxfollowup.HasValue == true) { this.maxfollowup = element.maxfollowup; } if (element.m_src != null) { this.src = element.src; } if (element.m_usage.HasValue == true) { this.usage = element.usage; } this.linkcondlist = element.linkcondlist; }