GotyeStatusCode.h
3.07 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/****************************************************************************
Copyright(c) 2013-2014, Shanghai AiLiao Information Technology Co.,Ltd
http://www.gotye.com.cn
@author: liugan
@date: 2014-06-20
@version: v3.0
@filename: GotyeStatusCode.h
@description:
This header file inlcudes gotye status codes.
Include "GotyeAPI.h" instead of this.
****************************************************************************/
#ifndef __GOTYE_STATUSCODE_H__
#define __GOTYE_STATUSCODE_H__
#include "Gotye.h"
NS_GOTYEAPI_BEGIN
typedef enum
{
GotyeStatusCodeWaitingCallback = -1, ///< async calling sucessfully
GotyeStatusCodeOK = 0, ///< sync calling sucessfully
GotyeStatusCodeSystemBusy = 1, ///< system busy
GotyeStatusCodeNotLoginYet = 2, ///< not logged in yet
GotyeStatusCodeCreateFileFailed = 3, ///< create file failed
GotyeStatusCodeTargetIsSelf = 4, ///< target is self
GotyeStatusCodeReloginOK = 5, ///< re-login success, liu@141217
GotyeStatusCodeOfflineLoginOK = 6, ///< login success with offline mode liu@141217
GotyeStatusCodeTimeout = 300, ///< time out
GotyeStatusCodeVerifyFailed = 400, ///< verification failed
GotyeStatusCodeNoPermission = 401, ///< no permission
GotyeStatusCodeRepeatOper = 402, ///< repeat operation
GotyeStatusCodeGroupNotFound = 403, ///< group not found
GotyeStatusCodeUserNotFound = 404, ///< user not found
GotyeStatusCodeLoginFailed = 500, ///< login failed
GotyeStatusCodeForceLogout = 600, ///< your account has logged in another device.
GotyeStatusCodeNetworkDisConnected = 700, ///< network disconnected
GotyeStatusCodeRoomNotExist = 33, ///< room not exist
GotyeStatusCodeRoomIsFull = 34, ///< room is full
GotyeStatusCodeNotInRoom = 35, ///< not in the room
GotyeStatusCodeForbidden = 36, ///< forbidden
GotyeStatusCodeAlreadyInRoom = 39, ///< forbidden
GotyeStatusCodeUserNotExist = 804, ///< friend not exist
GotyeStatusCodeBlackList = 805, ///< you are in black list
GotyeStatusCodeRequestMicFailed = 806, ///< requesting mic failed
GotyeStatusCodeVoiceTimeOver = 807, ///< recording time over
GotyeStatusCodeRecorderBusy = 808, ///< recording device is in use
GotyeStatusCodeVoiceTooShort = 809, ///< recording time too short < 1000ms
GotyeStatusCodeNotInGroup = 810, ///< user not in group
GotyeStatusCodeInvalidArgument = 1000, ///< parameters invalid
GotyeStatusCodeServerProcessError = 1001, ///< server error
GotyeStatusCodeDBError = 1002, ///< create db failed.
GotyeStatusCodeUnkonwnError = 1100 ///< unknown error
}GotyeStatusCode, status; ///< enum status code
NS_GOTYEAPI_END
#endif