Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
dtjoa #1
Member since Jul 2012 · 39 posts
Group memberships: Members
Show profile · Link to this post
Subject: Getting & Updating vCard fields: First name, Last name, etc
I am new to MatriX library and trying to get and set vCard fields: First name, Last name, etc that are not in the vCard properties.

Do I need to retrieve/set attributes/elements for those fields that are not available as properties in vCard class?
Avatar
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
if you look at the MiniClient example you can see how to retrieve the vcard. Updating the vcard works exactly the same, only the iq type is set instead of get. The vcard class should contain most of the fields defined in the vcard spec here:
http://xmpp.org/extensions/xep-0054.html

If fields you are looking are missing let us know. You have access to the complete Xml, you its also easy to add new stuff.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS