Socket rewrite
This commit is contained in:
parent
cf16878503
commit
89431be9ed
4 changed files with 187 additions and 39 deletions
15
objects.py
Normal file
15
objects.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue