sczdavos
sczdavos

Reputation: 2063

c# agsxmpp documentation

Exists any agsxmpp documentation? I cannot find anything. I'm making IM and I need know following:

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?

Upvotes: -1

Views: 2647

Answers (1)

Alex
Alex

Reputation: 4136

agsXMPP request the roster automatically on login. You only have to sibscrobe to teh OnRosterItem event to get all your contacts.
agsXMPP also comes with many examples. So look at the sample codes.

Upvotes: 1

Related Questions