tsmp-api/objects.py
2023-07-10 18:40:46 +03:00

15 lines
278 B
Python

from enum import Enum
class UserCheck(Enum):
USER_DOESNT_EXISTS = 0
INVALID_CREDENTIALS = 1
class ErrCode(Enum):
UNKNOWN_ERROR = 0
USER_ALREADY_EXISTS = 1
ALREADY_LOGGED_IN = 2
INVALID_CREDENTIALS = 3
INVALID_TOKEN = 4
ROOM_DOESNT_EXIST = 10