comparison sat/bridge/dbus_bridge.py @ 3179:84a94b385760

bridge: messageSend's extra is now serialised
author Goffi <goffi@goffi.org>
date Fri, 21 Feb 2020 12:17:38 +0100
parents 39d7327583e1
children 439e2f88c3a9
comparison
equal deleted inserted replaced
3178:98b321234068 3179:84a94b385760
455 async_callbacks=('callback', 'errback')) 455 async_callbacks=('callback', 'errback'))
456 def messageEncryptionStop(self, to_jid, profile_key, callback=None, errback=None): 456 def messageEncryptionStop(self, to_jid, profile_key, callback=None, errback=None):
457 return self._callback("messageEncryptionStop", str(to_jid), str(profile_key), callback=callback, errback=errback) 457 return self._callback("messageEncryptionStop", str(to_jid), str(profile_key), callback=callback, errback=errback)
458 458
459 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 459 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
460 in_signature='sa{ss}a{ss}sa{ss}s', out_signature='', 460 in_signature='sa{ss}a{ss}sss', out_signature='',
461 async_callbacks=('callback', 'errback')) 461 async_callbacks=('callback', 'errback'))
462 def messageSend(self, to_jid, message, subject={}, mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None): 462 def messageSend(self, to_jid, message, subject={}, mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None):
463 return self._callback("messageSend", str(to_jid), message, subject, str(mess_type), extra, str(profile_key), callback=callback, errback=errback) 463 return self._callback("messageSend", str(to_jid), message, subject, str(mess_type), str(extra), str(profile_key), callback=callback, errback=errback)
464 464
465 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 465 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
466 in_signature='', out_signature='a{ss}', 466 in_signature='', out_signature='a{ss}',
467 async_callbacks=None) 467 async_callbacks=None)
468 def namespacesGet(self, ): 468 def namespacesGet(self, ):