comparison 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
comparison
equal deleted inserted replaced
4051:c23cad65ae99 4052:2ced30f6d5de
98 pass 98 pass
99 99
100 @abc.abstractmethod 100 @abc.abstractmethod
101 def jingle_terminate( 101 def jingle_terminate(
102 self, 102 self,
103 client: SatXMPPEntity,
104 action: str,
105 session: dict,
106 content_name: str,
103 reason_elt: domish.Element 107 reason_elt: domish.Element
104 ) -> Union[ 108 ) -> Union[
105 Callable[..., None], 109 Callable[..., None],
106 Callable[..., Awaitable[None]] 110 Callable[..., Awaitable[None]]
107 ]: 111 ]:
142 self, 146 self,
143 client: SatXMPPEntity, 147 client: SatXMPPEntity,
144 action: str, 148 action: str,
145 session: dict, 149 session: dict,
146 content_name: str, 150 content_name: str,
147 transport_elt: domish.Element 151 reason_elt: domish.Element
148 ) -> Union[ 152 ) -> Union[
149 Callable[..., None], 153 Callable[..., None],
150 Callable[..., Awaitable[None]] 154 Callable[..., Awaitable[None]]
151 ]: 155 ]:
152 """ 156 """
154 158
155 @param client: SatXMPPEntity instance 159 @param client: SatXMPPEntity instance
156 @param action: Jingle action 160 @param action: Jingle action
157 @param session: Jingle Session 161 @param session: Jingle Session
158 @param content_name: Name of the content 162 @param content_name: Name of the content
159 @param transport_elt: Transport element 163 @param reason_elt: <reason> element
160 """ 164 """
161 pass 165 pass
162 166
163 167
164 @dataclass(frozen=True) 168 @dataclass(frozen=True)