Beispiel #1
0
 public void Update(netrsp element)
 {
     if (element.m_host != null)
     {
         this.host = element.host;
     }
     if (element.m_localbk != null)
     {
         this.localbk = element.localbk;
     }
     if (element.m_localid != null)
     {
         this.localid = element.localid;
     }
     if (element.m_plan != null)
     {
         this.plan = element.plan;
     }
     if (element.m_port.HasValue == true)
     {
         this.port = element.port;
     }
     if (element.m_remotebk != null)
     {
         this.remotebk = element.remotebk;
     }
     if (element.m_remoteid != null)
     {
         this.remoteid = element.remoteid;
     }
     if (element.m_rsp != null)
     {
         this.rsp = element.rsp;
     }
 }
Beispiel #2
0
        public static netrsp Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            netrsp _netrsp = new netrsp();

            _netrsp.m_rocrailClient = rocrailClient;
            _netrsp.m_host          = (string)xml.Attribute("host");
            _netrsp.m_localbk       = (string)xml.Attribute("localbk");
            _netrsp.m_localid       = (string)xml.Attribute("localid");
            _netrsp.m_plan          = (string)xml.Attribute("plan");
            _netrsp.m_port          = (int?)xml.Attribute("port");
            _netrsp.m_remotebk      = (string)xml.Attribute("remotebk");
            _netrsp.m_remoteid      = (string)xml.Attribute("remoteid");
            _netrsp.m_rsp           = (string)xml.Attribute("rsp");
            return(_netrsp);
        }