Beispiel #1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        protected AlertInfo(XmlNode node)
            : base(node, "getalertstatus", "alert")
        {
            this.MS = new Alert_MS();

            foreach (var childObj in RootNode.ChildNodes)
            {
                var child = (XmlNode)childObj;
                var value = child.InnerText;

                switch (child.Name)
                {
                case "user_id":
                    this.UserId = value;
                    break;

                case "user_hash":
                    this.UserHash = value;
                    break;

                case "ms":
                    this.MS = new Alert_MS(child);
                    break;
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        protected AlertInfo(XmlNode node)
            : base(node, "getalertstatus", "alert")
        {
            this.MS = new Alert_MS();

            foreach (var childObj in RootNode.ChildNodes)
            {
                var child = (XmlNode)childObj;
                var value = child.InnerText;

                switch (child.Name)
                {
                    case "user_id":
                        this.UserId = value;
                        break;
                    case "user_hash":
                        this.UserHash = value;
                        break;
                    case "ms":
                        this.MS = new Alert_MS(child);
                        break;
                }
            }
        }