Exemple #1
0
        /// <summary>
        /// Send booksmarks to the server storage
        /// </summary>
        /// <param name="urls"></param>
        /// <param name="conferences"></param>
        /// <param name="cb"></param>
        /// <param name="cbArgs"></param>
        public void StoreBookmarks(Url[] urls, Conference[] conferences, IqCB cb, object cbArgs)
        {
            var siq = new StorageIq(IQType.Set);

            if (urls != null)
            {
                siq.Query.Storage.AddUrls(urls);
            }

            if (conferences != null)
            {
                siq.Query.Storage.AddConferences(conferences);
            }

            if (cb == null)
            {
                this.m_connection.Send(siq);
            }
            else
            {
                this.m_connection.IqGrabber.SendIq(siq, cb, cbArgs);
            }
        }