Home
MatriX vNext
MatriX XMPP SDK ▼
Forum
About us ▼
Contact
Not logged in.
·
Lost password
·
Register
Forum
Search
Members
Forum:
agsXMPP
how to extend class vcard to add gender in agsxmpp
C#
pisey
2013-02-07, 01:52
#1
Member since Sep 2012 ·
13
posts
Group memberships:
Members
Show profile
·
Link to this post
Subject:
how to extend class vcard to add gender in agsxmpp
how to extend class vcard to add gender in agsxmpp?
Alex
2013-02-07, 08:00
#2
Member since Feb 2003 ·
4449
posts · Location: Germany
Group memberships:
Administrators, Members
Show profile
·
Link to this post
XEP-0054
defines no gender field.
But all server implementations I am aware of store the completed xml document in the database without any changes. Do you can just add a new <gender/> tag for example to the vcard.
// read gender
string
gender
=
vcard
.
GetTag
(
"gender"
)
;
// rsave gender
vcard
.
GetTag
(
"gender"
,
"male or female"
)
;
pisey
2013-02-12, 03:28
#3
Member since Sep 2012 ·
13
posts
Group memberships:
Members
Show profile
·
Link to this post
I can not use vcard.GetTag("gender", "male or female");
Close
Smaller –
Larger +
Reply to this post:
Verification code:
Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys:
Special characters:
Forum:
agsXMPP