initial working state
This commit is contained in:
parent
816fb34f75
commit
bb9a24c1ed
15 changed files with 688 additions and 0 deletions
30
src/synclean/models/enums.py
Normal file
30
src/synclean/models/enums.py
Normal file
|
@ -0,0 +1,30 @@
|
|||
from enum import Enum
|
||||
|
||||
|
||||
class RoomOrderBy(Enum):
|
||||
"""Available room ordering options."""
|
||||
NAME = "name"
|
||||
CANONICAL_ALIAS = "canonical_alias"
|
||||
JOINED_MEMBERS = "joined_members"
|
||||
JOINED_LOCAL_MEMBERS = "joined_local_members"
|
||||
VERSION = "version"
|
||||
CREATOR = "creator"
|
||||
ENCRYPTION = "encryption"
|
||||
FEDERATABLE = "federatable"
|
||||
JOIN_RULE = "join_rule"
|
||||
GUEST_ACCESS = "guest_access"
|
||||
HISTORY_VISIBILITY = "history_visibility"
|
||||
STATE_EVENTS = "state_events"
|
||||
|
||||
class UserOrderBy(Enum):
|
||||
"""Available user ordering options."""
|
||||
USER_ID = "user_id"
|
||||
DISPLAY_NAME = "display_name"
|
||||
MEDIA_LENGTH = "media_length"
|
||||
MEDIA_COUNT = "media_count"
|
||||
|
||||
|
||||
class Direction(Enum):
|
||||
"""Sort direction."""
|
||||
FORWARD = "f"
|
||||
BACKWARD = "b"
|
Loading…
Add table
Add a link
Reference in a new issue