Esempio n. 1
0
        /// <summary>
        /// Callback de la consulta de participantes
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="iq"></param>
        /// <param name="data"></param>
        private void OnGetParticipants(object sender, IQ iq, object data)
        {
            Partisipants part = new Partisipants();

            DiscoItems items = iq.Query as DiscoItems;

            if (items == null)
            {
                return;
            }

            DiscoItem[] rooms = items.GetDiscoItems();


            foreach (DiscoItem item in rooms)
            {
                part.Servername = data.ToString();
                part.JidList.Add(item.Jid.Resource, item.Jid);
            }

            if (OnParticipantsLoadedEvent != null)
            {
                OnParticipantsLoadedEvent(part);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Callback de la consulta de participantes
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="iq"></param>
        /// <param name="data"></param>
        private void OnGetParticipants(object sender, IQ iq, object data)
        {
            Partisipants part = new Partisipants();

            DiscoItems items = iq.Query as DiscoItems;
            if (items == null)
                return;

            DiscoItem[] rooms = items.GetDiscoItems();


            foreach (DiscoItem item in rooms)
            {
                part.Servername = data.ToString();
                part.JidList.Add(item.Jid.Resource, item.Jid);
            }

            if (OnParticipantsLoadedEvent != null)
                OnParticipantsLoadedEvent(part);

       }