blob: 227d3c2c742fa3dd2cdef51b26e553c45044b81b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
from enum import IntEnum
class StateType(IntEnum):
"""
The State Type enum. Wait types are mostly used for internal code
"""
ENTER = 1
LEAVE = 2
WAIT = 3
class State(IntEnum):
"""
The State enum. Each state here also exists in the Go library
"""
DEREGISTERED = 0
NO_SERVER = 1
ASK_LOCATION = 2
SEARCH_SERVER = 3
LOADING_SERVER = 4
CHOSEN_SERVER = 5
OAUTH_STARTED = 6
AUTHORIZED = 7
REQUEST_CONFIG = 8
ASK_PROFILE = 9
DISCONNECTED = 10
DISCONNECTING = 11
CONNECTING = 12
CONNECTED = 13
|