...
No Format |
---|
<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions"> <params> <param> <value> <struct> <member> <name>status-code</name> <value>ok</value> </member> <member> <name>xmpp-presence</name> <value>AVAILABLE</value> </member> </struct> </value> </param> </params> </methodResponse> </methodCall> |
- setPresenceState(String xmppUsername, String xmppPresenceAsString)
XML to send:
No Format |
---|
<?xml version="1.0"?>
<methodCall>
<methodName>presenceServer.setPresenceState</methodName>
<params>
<param>
<value>
<string>mirceac</string>
</value>
</param>
<param>
<value>
<string>AWAY</string>
</value>
</param>
</params>
</methodCall>
|
Retuns as response something like:
No Format |
---|
<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value>
<struct>
<member>
<name>status-code</name>
<value>ok</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
|
If you now call the getPresenceState method it will show you AWAY as xmpp-presence value