Mercurial > libervia-backend
comparison libervia/backend/plugins/plugin_xep_0048.py @ 4334:111dce64dcb5
plugins XEP-0300, XEP-0446, XEP-0447, XEP0448 and others: Refactoring to use Pydantic:
Pydantic models are used more and more in Libervia, for the bridge API, and also to
convert `domish.Element` to internal representation.
Type hints have also been added in many places.
rel 453
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 03 Dec 2024 00:12:38 +0100 |
parents | 554a87ae17a6 |
children | e9971a4b0627 |
comparison
equal
deleted
inserted
replaced
4333:e94799a0908f | 4334:111dce64dcb5 |
---|---|
420 | 420 |
421 if storage_type == "pubsub": | 421 if storage_type == "pubsub": |
422 raise NotImplementedError | 422 raise NotImplementedError |
423 | 423 |
424 def bookmarks_list( | 424 def bookmarks_list( |
425 self, | 425 self, type_: str, storage_location: str, profile_key: str = C.PROF_KEY_NONE |
426 type_: str, | |
427 storage_location: str, | |
428 profile_key: str = C.PROF_KEY_NONE | |
429 ) -> defer.Deferred[dict]: | 426 ) -> defer.Deferred[dict]: |
430 """Return stored bookmarks | 427 """Return stored bookmarks |
431 | 428 |
432 @param type_: bookmark type, one of: | 429 @param type_: bookmark type, one of: |
433 - XEP_0048.MUC_TYPE: Multi-User chat room | 430 - XEP_0048.MUC_TYPE: Multi-User chat room |