from protobuf3.message import Message
from enum import Enum


class Event(Enum):
    USER_REGISTER = 0
    USER_LOGIN = 1
    USER_LOGOUT = 2
    USER_UPDATE_SETTING = 4
    USER_UPDATE_PASSWORD = 5
    USER_BIND_PHONE = 7
    USER_BIND_PAY = 10
    USER_CHECKIN = 14
    USER_SHARE = 16
    USER_ENTER_GAME = 19
    USER_LEAVE_GAME = 22
    USER_DEPOSITE = 25
    USER_UPDATE_BANKER_PASS = 29
    USER_REMOVE_BANKER_PASS = 30
    USER_REWARD = 33
    USER_RECHARGE = 36
    USER_WITHDRAW = 39
    USER_CONTACT_SERVICE = 44
    USER_REPORT = 48
    USER_GET_MAIL = 50
    USER_REM_MAIL = 51
    SYS_LOGIC_ON = 101
    SYS_LOGIC_OFF = 105
    SYS_WARNING = 110
    SYS_ERROR = 600
    SYS_ERR_LOGIN_OFFLINE = 601
    MGR_KICKOFF = 201
    MGR_UPDATE_SETTINGS = 206
    MGR_CHANGE_BALANCE = 210
    MGR_CHANGE_BANK = 211
    MGR_OFFLINE = 219
    MGR_DISABLE_USER = 222
    MGR_CHANGE_ARCH = 223
    MGR_CHANGE_CLIENT_ADDRS = 224
    MGR_PUBLISH_MARQUEE = 227
    MGR_PUBLISH_MAIL = 228
    DEF_CMD_UNSUPPORTED = 866

