Esempio n. 1
0
        } // ParseDidlChildData()

        /// <summary>
        /// Parses <c>UPnP</c> child data.
        /// </summary>
        /// <param name="parent">The parent.</param>
        /// <returns>A <see cref="UpnpChildData"/> object.</returns>
        private static UpnpChildData ParseChildData(XElement parent)
        {
            var result = new UpnpChildData();

            result.Id       = XmlSupport.GetAttributeValue(parent, "id");
            result.ParentId = XmlSupport.GetAttributeValue(parent, "parentID");

            result.Title = XmlSupport.GetFirstSubNodeValue(parent, "title");
            ////result.WriteStatus = XmlSupport.XmlSupport.GetFirstSubNodeValue(xcontainer, "writeStatus", false);
            ////result.IsRecordable = XmlSupport.XmlSupport.ParseUpnpBoolean(XmlSupport.XmlSupport.GetFirstSubNodeValue(xcontainer, "recordable"));
            result.Class = XmlSupport.GetFirstSubNodeValue(parent, "class");

            return(result);
        } // ParseChildData()
Esempio n. 2
0
        } // BrowseChildDataResult()

        #endregion // CONSTRUCTION

        //// ---------------------------------------------------------------------

        #region PUBLIC METHODS
        /// <summary>
        /// Adds the child item.
        /// </summary>
        /// <param name="item">The item.</param>
        public void AddChildItem(UpnpChildData item)
        {
            this.children.Add(item);
        } // AddChildItem()