Esempio n. 1
0
        public static command Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            command _command = new command();

            _command.m_rocrailClient = rocrailClient;
            _command.m_arg           = (string)xml.Attribute("arg");
            _command.m_cmd           = (string)xml.Attribute("cmd");
            _command.m_id            = (string)xml.Attribute("id");
            _command.m_iid           = (string)xml.Attribute("iid");
            _command.m_server        = (string)xml.Attribute("server");
            return(_command);
        }
Esempio n. 2
0
 public void Update(command element)
 {
     if (element.m_arg != null)
     {
         this.arg = element.arg;
     }
     if (element.m_cmd != null)
     {
         this.cmd = element.cmd;
     }
     if (element.m_id != null)
     {
         this.id = element.id;
     }
     if (element.m_iid != null)
     {
         this.iid = element.iid;
     }
     if (element.m_server != null)
     {
         this.server = element.server;
     }
 }