Not logged in. · Lost password · Register
Forum: agsXMPP RSS
C#
Avatar
pisey #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?
Avatar
Alex #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.

  1. // read gender
  2. string gender = vcard.GetTag("gender");
  3.  
  4. // rsave gender
  5. vcard.GetTag("gender", "male or female");
Avatar
pisey #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: 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: agsXMPP RSS