diff src/bridge/bridge_constructor/bridge_template.ini @ 2113:9c861d07b5b6

core: added sessionGetInfos bridge method to retrieve various data on current profile session + client.started keep start time
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2017 22:22:13 +0100
parents 24827e550991
children 2f264f3df280
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini	Thu Jan 05 20:37:01 2017 +0100
+++ b/src/bridge/bridge_constructor/bridge_template.ini	Thu Jan 05 22:22:13 2017 +0100
@@ -716,3 +716,15 @@
 doc=Load parameters template from xml file
 doc_param_0=filename: input filename
 doc_return=boolean (True in case of success)
+
+[sessionInfosGet]
+async=
+type=method
+category=core
+sig_in=s
+sig_out=a{ss}
+doc=Get various informations on current profile session
+doc_param_0=%(doc_profile_key)s
+doc_return=session informations, with at least the following keys:
+    jid: current full jid
+    started: date of creation of the session (Epoch time)