raykichi / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

How to get full contact details of one my gmail contact. I am using Jabber Net? #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a requirement, where I have to see the full contact details of one 
of my gmail contact?

How to get that information?

Original issue reported on code.google.com by premchan...@gmail.com on 31 Jul 2008 at 6:12

GoogleCodeExporter commented 9 years ago
Please send this sort of question to the list.

        private void jabberClient1_OnAuthenticate(object sender)
        {
            VCardIQ iq = new VCardIQ(jabberClient1.Document);
            iq.To = "test_user@gmail.com";
            iq.Type = IQType.get;
            jabberClient1.Tracker.BeginIQ(iq, GotVcard, null);
        }

        private void GotVcard(object sender, IQ iq, object state)
        {
            if ((iq == null) || (iq.Type != IQType.result))
                return;
            VCard card = iq.Query as VCard;
            if (card == null)
                return;

            Console.WriteLine(card.FullName);
        }

Original comment by hil...@gmail.com on 5 Aug 2008 at 7:23