Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
shantheepan #1
Member since Sep 2011 · 15 posts · Location: Sri Lanka
Group memberships: Members
Show profile · Link to this post
Subject: How to create Custom ShowType of client?
Hi there...

I found there are some show types such as NONE, away, dnd, xa and chat. For my own purpose I need to create my own ShowType. Please guide me, how to create one

Thanks in advance
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
only these ShowTypes are defined in the RFCs. Adding new types is not allowed and would violate the protocol.

You have to extend the presence with your own tags. See the custom packet tutorial. Or use the status property which is a string for your presence types.

Alex
Avatar
shantheepan #3
Member since Sep 2011 · 15 posts · Location: Sri Lanka
Group memberships: Members
Show profile · Link to this post
Yep... i got it, Thanks 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: agsXMPP RSS