OPERATION_LOGIN = 10001
OPERATION_LOGOUT = 10002
OPERATION_REGISTER = 10003
OPERATION_RESET_PASSWORD = 10004

OPERATION_JOIN_CHANNEL = 11001
OPERATION_LEAVE_CHANNEL = 11002
OPERATION_GET_USER_CHANNEL_LIST = 11003
OPERATION_CREATE_CHANNEL = 11004

OPERATION_COPY_SERVER = 12001
OPERATION_FETCH_OFFLINE_MESSAGES = 13001

COMMAND_TO_CCS = 20000
COMMAND_UP_FETCH_CHANNEL_USER_LIST = 20001
COMMAND_UP_FETCH_CCS_COMMAND_LIST = 20002
COMMAND_UP_FETCH_RECIPIENT_LIST = 20003

MESSAGE_TO_CCS = 30000
MESSAGE_UP_TEXT = 30001
MESSAGE_UP_IMAGE = 30002
MESSAGE_UP_FILE = 30003

COMMAND_FROM_CCS = 40000
COMMAND_DOWN_UPDATE_CCS_COMMAND_LIST = 40001
COMMAND_DOWN_UPDATE_CHANNEL_USER_LIST = 40002
COMMAND_DOWN_UPDATE_RECIPIENT_LIST = 40003
COMMAND_DOWN_DISPLAY_TEXT = 40004
COMMAND_DOWN_DISPLAY_IMAGE = 40005

COMMAND_DOWN_CALL_PLUGIN = 49999

MESSAGE_FROM_CCS = 50000
MESSAGE_DOWN_TEXT = 50001
MESSAGE_DOWN_IMAGE = 50002
MESSAGE_DOWN_FILE = 50003

STATUS_INFO_LOGIN_SUCCESS = 60001
STATUS_INFO_LOGOUT_SUCCESS = 60002
STATUS_INFO_FORCED_LOGOUT = 60003
STATUS_INFO_COPY_CLIENT = 60004
STATUS_INFO_REGISTER_EMAIL_SENT = 60005
STATUS_INFO_RESET_EMAIL_SENT = 60006

STATUS_INFO_JOIN_SUCCESS = 60101
STATUS_INFO_LEAVE_SUCCESS = 60102
STATUS_INFO_USER_CHANNEL_LIST = 60103
STATUS_INFO_CREATE_CHANNEL_SUCCESS = 60104

# STATUS_INFO_CCS_LOGOUT_SUCCESS = 60201
# STATUS_INFO_CCS_LOGIN_SUCCESS = 60202

STATUS_INFO_CREGISTER_GOD_SUCCESS = 60201
STATUS_INFO_CREGISTER_GODDESS_SUCCESS = 60202
STATUS_INFO_REQUEST_PRIVILEGE_SUCCESS = 60203
STATUS_INFO_REQUEST_TOKEN_SUCCESS = 60204
STATUS_INFO_FORCED_RELEASE_CHANNEL = 60205
STATUS_INFO_RELEASE_CHANNEL_SUCCESS = 60206
STATUS_INFO_TAKE_OVER_CHANNEL_SUCCESS = 60207
STATUS_INFO_GET_USER_SERVICE_SUCCESS = 60208
STATUS_INFO_CDEREGISTER_SUCCESS = 60209
STATUS_INFO_GOD_RECONNECT_SUCCESS = 60210


STATUS_ERROR_LOGIN_FAIL_NO_SUCH_USER = 62001
STATUS_ERROR_LOGIN_FAIL_WRONG_PASSWORD = 62002
STATUS_ERROR_LOGIN_FAIL_REPETITIVE_LOGIN = 62003
STATUS_ERROR_EMAIL_IN_USE = 62004
STATUS_ERROR_INVALID_EMAIL_FORMAT = 62005
STATUS_ERROR_EMAIL_SENT_FAIL = 62006
STATUS_ERROR_RESET_FAIL_NO_SUCH_USER = 62007
STATUS_ERROR_MESSAGE_TOO_LONG = 62008
STATUS_ERROR_EMAIL_TOO_LONG = 62009
STATUS_ERROR_CHANNEL_ID_TOO_LONG = 62010
STATUS_ERROR_CCS_NAME_TOO_LONG = 62011
STATUS_ERROR_UPLOAD_FILE_TOO_LARGE = 62012
STATUS_ERROR_USER_ID_TOO_LONG = 62013

STATUS_ERROR_INCONSISTENT_USER = 62101
STATUS_ERROR_UNSUPPORTED_CODE = 62102
STATUS_ERROR_INVALID_ARGUMENT = 62103
STATUS_ERROR_INCONSISTENT_CCS = 62104
STATUS_ERROR_INVALID_NOTICE = 62105

STATUS_ERROR_JOIN_FAIL_NO_SUCH_CHANNEL = 62201
STATUS_ERROR_JOIN_FAIL_REPETITIVE_JOIN = 62202
STATUS_ERROR_LEAVE_FAIL_REPETITIVE_LEAVE = 62203
STATUS_ERROR_DUPLICATE_CHANNEL_ID = 62204

STATUS_ERROR_USER_NO_PRIVILEGE = 62301
STATUS_ERROR_REQUEST_PRIVILEGE_FAIL_REPETITIVE_REQUEST_PRIVILEGE = 62302

STATUS_ERROR_INVALID_COPERATION = 62304
STATUS_ERROR_NO_CCS_SERVICE = 62305
STATUS_ERROR_CCS_NOT_GOD = 62306
STATUS_ERROR_CCS_NOT_GODDESS = 62307

STATUS_ERROR_GOD_NO_VALIDATION_REQUIRED = 62308
STATUS_ERROR_GODDESS_ALREADY_VALIDATED = 62309

STATUS_ERROR_CCS_ALREADY_EXIST = 62352

STATUS_ERROR_TAKE_CHANNEL_FAIL_CHANNEL_ALREADY_TAKEN = 62353
STATUS_ERROR_TAKE_CHANNEL_FAIL_NO_RUNNING_GOD_CCS = 62354
STATUS_ERROR_TAKE_CHANNEL_FAIL_INVALID_TOKEN = 62355

STATUS_ERROR_RELEASE_CHANNEL_FAIL_NONEXISTENT_CHANNEL = 62358
STATUS_ERROR_RELEASE_CHANNEL_FAIL_NOT_OWNER = 62359

COPERATION_GET_CHANNEL_USER_LIST = 70001
COPERATION_CONFIRM_AUTH_TOKEN = 70002
COPERATION_GOD_RECONNECT = 70003

COPERATION_GOD_TAKE_OVER = 75004
COPERATION_GODDESS_TAKE_OVER = 75005
COPERATION_GOD_RELEASE = 75006
COPERATION_GODDESS_RELEASE = 75007
COPERATION_GODDESS_REGISTER = 75008

NOTICE_USER_JOINED = 80001
NOTICE_USER_LEFT = 80002
NOTICE_GET_CHANNEL_USER_LIST = 80003
NOTICE_ASK_AUTH_TOKEN = 80004
NOTICE_TAKE_OVER = 80005
NOTICE_RELEASE = 80006
NOTICE_DISPLAY_MESSAGE = 80007
NOTICE_COPY_CCS = 80008

DB_STATUS_MESSAGE_SENDING = 1
DB_STATUS_MESSAGE_SENT = 2
DB_STATUS_MESSAGE_RECEIVED = 3
DB_STATUS_MESSAGE_FORWARDED = 4

DB_MESSAGE_TYPE_TEXT = 1
DB_MESSAGE_TYPE_IMAGE = 2

DB_DIRECTION_UP = 0
DB_DIRECTION_DOWN = 1

DB_USER_NO_PRIVILEGE = 0
DB_DEVELOPER_PRIVILEGE = 1

DB_CCS_GODDESS_SERVICE = 0
DB_CCS_GOD_SERVICE = 1

