/// <summary> /// Se produit lorsque le flux XMPP est disponible /// </summary> /// <param name="sender">Objet parent</param> private void xmppOnLogin(object sender) { Jabber.xmpp.DiscoInfo = Queries.getDiscoInfo(); xmppDiscoServer(); _queries = new Queries(); _privacy = new Privacy(); _bookmarks = new Bookmarks(); _identity = new Identity(xmpp.MyJID); _identity.retrieve(); _roster = new Roster(); _presence = new Presence(); OnConnected(); xmpp.RequestRoster(); }
/// <summary> /// Retourne les fonctionnalité du client /// </summary> /// <returns>Fonctionnalités</returns> public static Capabilities getCapabilities() { agsXMPP.protocol.extensions.caps.Capabilities caps = new agsXMPP.protocol.extensions.caps.Capabilities(Queries.DiscoInfoToVersion(Queries.getDiscoInfo()), "http://microphage71.hostarea.org/caps"); caps.AddExtension("mood"); caps.AddExtension("tune"); caps.AddExtension("geoloc"); caps.AddExtension("activity"); caps.AddExtension("cs"); caps.AddExtension("ep-notify"); return(caps); }