public void Update(SnmpService element)
 {
     if (element.m_active.HasValue == true)
     {
         this.active = element.active;
     }
     if (element.m_community != null)
     {
         this.community = element.community;
     }
     if (element.m_contact != null)
     {
         this.contact = element.contact;
     }
     if (element.m_description != null)
     {
         this.description = element.description;
     }
     if (element.m_enterprise.HasValue == true)
     {
         this.enterprise = element.enterprise;
     }
     if (element.m_family.HasValue == true)
     {
         this.family = element.family;
     }
     if (element.m_location != null)
     {
         this.location = element.location;
     }
     if (element.m_port.HasValue == true)
     {
         this.port = element.port;
     }
     if (element.m_product.HasValue == true)
     {
         this.product = element.product;
     }
     if (element.m_traphost != null)
     {
         this.traphost = element.traphost;
     }
     if (element.m_trapport.HasValue == true)
     {
         this.trapport = element.trapport;
     }
     if (element.m_version.HasValue == true)
     {
         this.version = element.version;
     }
 }
        public static SnmpService Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            SnmpService _SnmpService = new SnmpService();

            _SnmpService.m_rocrailClient = rocrailClient;
            _SnmpService.m_active        = (bool?)xml.Attribute("active");
            _SnmpService.m_community     = (string)xml.Attribute("community");
            _SnmpService.m_contact       = (string)xml.Attribute("contact");
            _SnmpService.m_description   = (string)xml.Attribute("description");
            _SnmpService.m_enterprise    = (int?)xml.Attribute("enterprise");
            _SnmpService.m_family        = (int?)xml.Attribute("family");
            _SnmpService.m_location      = (string)xml.Attribute("location");
            _SnmpService.m_port          = (int?)xml.Attribute("port");
            _SnmpService.m_product       = (int?)xml.Attribute("product");
            _SnmpService.m_traphost      = (string)xml.Attribute("traphost");
            _SnmpService.m_trapport      = (int?)xml.Attribute("trapport");
            _SnmpService.m_version       = (int?)xml.Attribute("version");
            return(_SnmpService);
        }