DOCSTRING AHOY
This commit is contained in:
@@ -62,19 +62,34 @@ def guac_encode(*args: str) -> str:
|
|||||||
return f"{','.join(f'{len(arg)}.{arg}' for arg in args)};"
|
return f"{','.join(f'{len(arg)}.{arg}' for arg in args)};"
|
||||||
|
|
||||||
class CollabVMState(IntEnum):
|
class CollabVMState(IntEnum):
|
||||||
DISCONNECTED = -1
|
"""Represents client connection states."""
|
||||||
|
WS_DISCONNECTED = -1
|
||||||
|
"""WebSocket is disconnected."""
|
||||||
WS_CONNECTED = 0
|
WS_CONNECTED = 0
|
||||||
|
"""WebSocket is connected."""
|
||||||
VM_CONNECTED = 1
|
VM_CONNECTED = 1
|
||||||
|
"""Connected to the VM but not logged in."""
|
||||||
LOGGED_IN = 2
|
LOGGED_IN = 2
|
||||||
|
"""Authenticated with announced auth server."""
|
||||||
|
|
||||||
class CollabVMRank(IntEnum):
|
class CollabVMRank(IntEnum):
|
||||||
UNREGISTERED = 0
|
"""Represents user ranks."""
|
||||||
REGISTERED = 1
|
Unregistered = 0
|
||||||
ADMIN = 2
|
"""Represents an unregistered user."""
|
||||||
MOD = 3
|
Registered = 1
|
||||||
|
"""Represents a registered user."""
|
||||||
|
Admin = 2
|
||||||
|
"""Represents an admin user."""
|
||||||
|
Mod = 3
|
||||||
|
"""Represents a moderator user."""
|
||||||
|
|
||||||
class CollabVMClientRenameStatus(IntEnum):
|
class CollabVMClientRenameStatus(IntEnum):
|
||||||
|
"""Represents the status of a client rename attempt."""
|
||||||
SUCCEEDED = 0
|
SUCCEEDED = 0
|
||||||
|
"""The rename attempt was successful."""
|
||||||
FAILED_TAKEN = 1
|
FAILED_TAKEN = 1
|
||||||
|
"""The desired name is already taken."""
|
||||||
FAILED_INVALID = 2
|
FAILED_INVALID = 2
|
||||||
FAILED_REJECTED = 3
|
"""The desired name is invalid."""
|
||||||
|
FAILED_REJECTED = 3
|
||||||
|
"""The rename attempt was authoritatively rejected."""
|
||||||
Reference in New Issue
Block a user