Пример #1
0
 /// <summary>
 /// Récupère le temps d'inactivité du contact
 /// </summary>
 public void getLast()
 {
     if (Jabber.xmpp.Authenticated && status.type != Enums.StatusType.Unavailable && status.type != Enums.StatusType.Invisible)
     {
         agsXMPP.protocol.iq.last.LastIq liq = new agsXMPP.protocol.iq.last.LastIq();
         liq.From = Jabber.xmpp.MyJID;
         liq.To   = new Jid(identity.jabberID.full);
         liq.Type = agsXMPP.protocol.client.IqType.get;
         liqID    = liq.Id;
         Jabber.xmpp.IqGrabber.SendIq(liq, new IqCB(getLastResult), null);
     }
 }
Пример #2
0
 /// <summary>
 /// Récupère le temps d'inactivité du contact
 /// </summary>
 public void getLast()
 {
     if (Jabber.xmpp.Authenticated && status.type != Enums.StatusType.Unavailable && status.type != Enums.StatusType.Invisible)
     {
         agsXMPP.protocol.iq.last.LastIq liq = new agsXMPP.protocol.iq.last.LastIq();
         liq.From = Jabber.xmpp.MyJID;
         liq.To = new Jid(identity.jabberID.full);
         liq.Type = agsXMPP.protocol.client.IqType.get;
         liqID = liq.Id;
         Jabber.xmpp.IqGrabber.SendIq(liq, new IqCB(getLastResult), null);
     }
 }