Anyone know how to ?
// Query vcard
private void QueryVCard(jabber.protocol.iq.Item ri)
{
jabber.protocol.iq.VCardIQ vcard = new jabber.protocol.iq.VCardIQ
(jClient.Document);
vcard.To = ri.JID; // You can set this JID to your own JID.
vcard.Type = IQType.get;
jClient.Write(vcard);
}
// IQ Handler - handle vcard IQ.
private void jClient_OnIQ(object sender, IQ iq)
{
XmlElement query = iq.Query;
if (query is VCard)
{
iq = iq.GetResponse(jClient.Document);
VCard vcard = iq.Query as VCard;
// Now you get vcard information of your own.
}
return;
jClient.Tracker.BeginIQ(vcard, new IqCB(OnVcard));
This will call back OnVcard exactly once. Check the iq object that is passed in for null -- that can happen on timeout.
> --
>
> You received this message because you are subscribed to the Google Groups "jabber-net" group.
> To post to this group, send email to jabbe...@googlegroups.com.
> To unsubscribe from this group, send email to jabber-net+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jabber-net?hl=en.
>
>
Also how can i receive roster information about someone that is not in
my roster? I hafve situations like this:
User A has in their roster user B and C
User B has in their roster user A
User C has in their roster user A
User A creates chat room and invites user B and C to the room
when these users join the room they miss the nicknames of the users
they normally dont have in their roster.
Where normaly these users will be found in their RosterTree , in
combination with their UserName setting, they now only have the JID
user and therefore do not have the correct names showing in the chat
room.
Which is the same problem as with my own nickname. how can i find the
usernames defined on the server (outside vcard) for people not in your
roster?