Beispiel #1
0
 public void Update(netreq element)
 {
     if (element.m_lcid != null)
     {
         this.lcid = element.lcid;
     }
     if (element.m_localbk != null)
     {
         this.localbk = element.localbk;
     }
     if (element.m_localid != null)
     {
         this.localid = element.localid;
     }
     if (element.m_remotebk != null)
     {
         this.remotebk = element.remotebk;
     }
     if (element.m_remoteid != null)
     {
         this.remoteid = element.remoteid;
     }
     if (element.m_req != null)
     {
         this.req = element.req;
     }
     if (element.m_routeid != null)
     {
         this.routeid = element.routeid;
     }
 }
Beispiel #2
0
        public static netreq Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            netreq _netreq = new netreq();

            _netreq.m_rocrailClient = rocrailClient;
            _netreq.m_lcid          = (string)xml.Attribute("lcid");
            _netreq.m_localbk       = (string)xml.Attribute("localbk");
            _netreq.m_localid       = (string)xml.Attribute("localid");
            _netreq.m_remotebk      = (string)xml.Attribute("remotebk");
            _netreq.m_remoteid      = (string)xml.Attribute("remoteid");
            _netreq.m_req           = (string)xml.Attribute("req");
            _netreq.m_routeid       = (string)xml.Attribute("routeid");
            return(_netreq);
        }