/// <summary> /// Request the bookmarks from the storage on the server /// </summary> /// <param name="cb"></param> /// <param name="cbArgs"></param> public void RequestBookmarks(IqCB cb, object cbArgs) { StorageIq siq = new StorageIq(IqType.get); if (cb == null) m_connection.Send(siq); else m_connection.IqGrabber.SendIq(siq, cb, cbArgs); }
/// <summary> /// Request the bookmarks from the storage on the server /// </summary> /// <param name="cb"></param> /// <param name="cbArgs"></param> public void RequestBookmarks(IqHandler cb) { StorageIq siq = new StorageIq(IqType.get); if (cb == null) m_connection.Send(siq); else m_connection.IqGrabber.SendIq(siq, cb); }
/// <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) { StorageIq siq = new StorageIq(IqType.set); if (urls != null) { siq.Query.Storage.AddUrls(urls); } if (conferences != null) { siq.Query.Storage.AddConferences(conferences); } if (cb == null) { m_connection.Send(siq); } else { m_connection.IqGrabber.SendIq(siq, cb, cbArgs); } }
/// <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) { StorageIq siq = new StorageIq(IqType.set); if (urls != null) siq.Query.Storage.AddUrls(urls); if (conferences != null) siq.Query.Storage.AddConferences(conferences); if (cb == null) m_connection.Send(siq); else m_connection.IqGrabber.SendIq(siq, cb, cbArgs); }