コード例 #1
0
 public void RemoveDeviceDetail(TGetDevicesRspDetail item)
 {
     if (details.IndexOf(item) >= 0)
     {
         details.Remove(item);
     }
 }
コード例 #2
0
        public static TGetDevicesRspDetail LoadFromXMLNode(XmlNode node)
        {
            if (node.Name != "Row")
            {
                return(null);
            }

            TGetDevicesRspDetail rlt = new TGetDevicesRspDetail();

            rlt = IRAPXMLUtils.LoadValueFromXMLNode(node, rlt) as TGetDevicesRspDetail;
            return(rlt);
        }
コード例 #3
0
        public static TGetDevicesRspBody LoadFromXMLNode(XmlNode node)
        {
            TGetDevicesRspBody rlt = new TGetDevicesRspBody();

            rlt = IRAPXMLUtils.LoadValueFromXMLNode(GetEX(node), rlt) as TGetDevicesRspBody;
            XmlNode paramxml = GetRspBodyNode(node);

            if (paramxml != null && paramxml.FirstChild != null && paramxml.FirstChild.Name == "Row")
            {
                foreach (XmlNode child in paramxml.ChildNodes)
                {
                    rlt.details.Add(TGetDevicesRspDetail.LoadFromXMLNode(child));
                }
            }
            return(rlt);
        }
コード例 #4
0
 public void AddDeviceDetail(TGetDevicesRspDetail item)
 {
     details.Add(item);
 }