Esempio n. 1
0
        public void GetRoster(RosterCallback rcb, ErrorCallback ecb)
        {
            var o = new List <Contact>();

            Send(
                "/roster",
                ReceiveMode.Lines,
                sw => sw.Write("token=" + HttpUtility.UrlEncode(token)),
                line => ParseContact(line, false, o.Add, ecb),
                null,
                ecb,
                () => rcb(o)
                );
        }
Esempio n. 2
0
        public void GetRoster(RosterCallback rcb, ErrorCallback ecb)
        {
            var o = new List<Contact>();

            Send(
                "/roster",
                ReceiveMode.Lines,
                sw => sw.Write("token=" + HttpUtility.UrlEncode(token)),
                line => ParseContact(line, o.Add, ecb),
                null,
                ecb,
                () => rcb(o)
            );
        }