diff src/bridge/bridge_constructor/bridge_template.ini @ 399:3ed53803b3b3

core: added getLastResource method
author Goffi <goffi@goffi.org>
date Thu, 06 Oct 2011 21:16:03 +0200
parents c34fd9d6242e
children dd4caab17008
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini	Wed Oct 05 16:49:57 2011 +0200
+++ b/src/bridge/bridge_constructor/bridge_template.ini	Thu Oct 06 21:16:03 2011 +0200
@@ -257,6 +257,17 @@
  - list of attributes as in [newContact]
  - groups where the contact is
 
+[getLastResource]
+type=method
+category=core
+sig_in=ss
+sig_out=s
+param_1_default="@DEFAULT@"
+doc=Return the last resource connected for a contact
+doc_param_0=contact_jid: jid of the contact
+doc_param_1=%(doc_profile_key)s
+doc_return=the last resource connected of the contact, or ""
+
 [getPresenceStatus]
 type=method
 category=core