diff options
Diffstat (limited to 'wrappers/python/eduvpn_common/state.py')
| -rw-r--r-- | wrappers/python/eduvpn_common/state.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/wrappers/python/eduvpn_common/state.py b/wrappers/python/eduvpn_common/state.py new file mode 100644 index 0000000..bb6642b --- /dev/null +++ b/wrappers/python/eduvpn_common/state.py @@ -0,0 +1,32 @@ +from enum import IntEnum + + +class StateType(IntEnum): + """ + The State Type enum. + """ + + ENTER = 1 + LEAVE = 2 + + +StateEnum = IntEnum + + +class State(StateEnum): + # Go states + INITIAL = 0 + MAIN = 1 + ASK_LOCATION = 2 + CHOSEN_LOCATION = 3 + LOADING_SERVER = 4 + CHOSEN_SERVER = 5 + OAUTH_STARTED = 6 + AUTHORIZED = 7 + REQUEST_CONFIG = 8 + ASK_PROFILE = 9 + CHOSEN_PROFILE = 10 + GOT_CONFIG = 11 + CONNECTING = 12 + DISCONNECTING = 13 + CONNECTED = 14 |
