/// <summary> /// Récupère le temps du contact /// </summary> public void getTime() { if (Jabber.xmpp.Authenticated && status.type != Enums.StatusType.Unavailable && status.type != Enums.StatusType.Invisible) { agsXMPP.protocol.iq.time.TimeIq tiq = new agsXMPP.protocol.iq.time.TimeIq(); tiq.From = Jabber.xmpp.MyJID; tiq.To = new Jid(identity.jabberID.full); tiq.Type = agsXMPP.protocol.client.IqType.get; tiqID = tiq.Id; Jabber.xmpp.IqGrabber.SendIq(tiq, new IqCB(getTimeResult), null); } }
/// <summary> /// Récupère le temps du contact /// </summary> public void getTime() { if (Jabber.xmpp.Authenticated && status.type != Enums.StatusType.Unavailable && status.type != Enums.StatusType.Invisible) { agsXMPP.protocol.iq.time.TimeIq tiq = new agsXMPP.protocol.iq.time.TimeIq(); tiq.From = Jabber.xmpp.MyJID; tiq.To = new Jid(identity.jabberID.full); tiq.Type = agsXMPP.protocol.client.IqType.get; tiqID = tiq.Id; Jabber.xmpp.IqGrabber.SendIq(tiq, new IqCB(getTimeResult), null); } }