Exists any agsxmpp documentation? I cannot find anything. I'm making IM and I need know following:
- how can i get contact list (contains - current availability, nickname, identificator (user@site))
- not sure if this event works (need for availability change) :
static void xmpp_OnPresence(object sender, Presence pres)
- is where any timestamp or datetime value in incoming message
What I found is this for getting contacts:
public void RequestRoster()
{
RosterIq iq = new RosterIq(IqType.get);
xmpp.IqGrabber.SendIq(iq, new IqCB(OnRosterResult), null);
}
private void OnRosterResult(object sender, IQ iq, object data)
{
Roster r = iq.Query as Roster;
if (r != null)
{
foreach (RosterItem i in r.GetRoster())
{
Console.WriteLine(i.Name);
}
}
}
But there aren't all properties (I need also availability, identificator) or are they?