migutica / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

How can i change status (online, away, don't disturb)? #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
How can i change status (online, away, don't disturb)?

Original issue reported on code.google.com by obi...@gmail.com on 10 Dec 2009 at 10:03

GoogleCodeExporter commented 9 years ago
JabberClient.Presence method supports this. 
Use something like 
jc.Presence(PresenceType.available, "I am going away", "away",1)
The first argument should be available, unless you are disconnecting.
The second argument is the reason for the change (User-entered)
The third argument is how you want other clients to display you. Supported 
"show" 
types include "available", "away", "dnd" (Do not disturb), and "xa" (Extended 
Away).

Note that the above assumes you are already connected and authenticated to an 
XMPP 
server.

Original comment by theycall...@gmail.com on 30 Mar 2010 at 9:29