diff sat/plugins/plugin_xep_0166/models.py @ 4052:2ced30f6d5de

plugin XEP-0166, 0176, 0234: minor renaming + type hints
author Goffi <goffi@goffi.org>
date Mon, 29 May 2023 13:32:19 +0200
parents 3900626bc100
children
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0166/models.py	Mon May 29 13:32:08 2023 +0200
+++ b/sat/plugins/plugin_xep_0166/models.py	Mon May 29 13:32:19 2023 +0200
@@ -100,6 +100,10 @@
     @abc.abstractmethod
     def jingle_terminate(
         self,
+        client: SatXMPPEntity,
+        action: str,
+        session: dict,
+        content_name: str,
         reason_elt: domish.Element
     ) -> Union[
         Callable[..., None],
@@ -144,7 +148,7 @@
         action: str,
         session: dict,
         content_name: str,
-        transport_elt: domish.Element
+        reason_elt: domish.Element
     ) -> Union[
         Callable[..., None],
         Callable[..., Awaitable[None]]
@@ -156,7 +160,7 @@
         @param action: Jingle action
         @param session: Jingle Session
         @param content_name: Name of the content
-        @param transport_elt: Transport element
+        @param reason_elt: <reason> element
         """
         pass