예제 #1
0
        //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\
        #region --Misc Methods (Public)--


        #endregion

        #region --Misc Methods (Private)--


        #endregion

        #region --Misc Methods (Protected)--
        protected override void loadContent(XmlNodeList content)
        {
            CONFERENCES = new List <ConferenceItem>();
            foreach (XmlNode node in content)
            {
                if (string.Equals(node.Name, "items"))
                {
                    foreach (XmlNode n in node.ChildNodes)
                    {
                        if (!string.IsNullOrEmpty(n.Attributes["id"]?.Value))
                        {
                            ConferenceItem conf = new ConferenceItem(n);
                            if (conf.IS_VALID)
                            {
                                CONFERENCES.Add(conf);
                            }
                        }
                    }
                }
            }
        }
예제 #2
0
 //--------------------------------------------------------Constructor:----------------------------------------------------------------\\
 #region --Constructors--
 /// <summary>
 /// Basic Constructor
 /// </summary>
 /// <history>
 /// 15/07/2018 Created [Fabian Sauter]
 /// </history>
 public AddBookmarkMessage(string from, ConferenceItem conferenceItem) : base(from, null, Consts.XML_XEP_0402_NAMESPACE)
 {
     CONFERENCE_ITEM = conferenceItem;
 }