CmdContants.java
2.63 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.glsx.pushsdk.common;
public final class CmdContants {
/**
* 请求数据成功
**/
public static short SUCCESS = 0;
/**
* 会话话头seq
**/
public static short seq = 0;
/**
* 登录发送
*/
public static final short LOGIN_SEND = 0x6151;
/**
* 登录返回
*/
public static final short LOGIN_BACK = 0x6152;
/**
* 退出发送
*/
public static final short EXIT_SEND = 0x6153;
/**
* 退出返回
*/
public static final short EXIT_BACK = 0x6154;
/**
* 获取离线(返回离线消息ID) 发送
*/
public static final short GET_OFF_LINE_SEND = 0x6155;
/**
* 获取离线(返回离线消息ID)返回
*/
public static final short GET_OFF_LINE_BACK = 0x6156;
/**
* 根据消息ID获取消息内容发送
*/
public static final short GET_OFF_LINE_DETAIL_MESSAGE_SEND = 0x6157;
/**
* 根据消息ID获取消息内容返回
*/
public static final short GET_OFF_LINE_DETAIL_MESSAGE_BACK = 0x6158;
/**
* 服务器推送消息 接收
*/
public static final short SERVER_PUSH_MESSAGE_SEND = 0x6159;
/**
* 服务器推送消息 回调给服务器
*/
public static final short SERVER_PUSH_MESSAGE_BACK = 0x6160;
/**
* 接收到服务器强制退出请求
*/
public static final short SERVER_EXIT_SEND = 0x6161;
/**
* 回调服务器强制退出返回
*/
public static final short SERVER_EXIT_BACK = 0x6162;
/**
* 心跳发送
*/
public static final short HEART_SEND = 0x6163;
/**
* 心跳返回
*/
public static final short HEART_BACK = 0x6164;
/**
* 获取终端sdk版本送
*/
public static final short GET_VERSION_SEND = 0x6165;
/**
* 获取终端sdk版本回
*/
public static final short GET_VERSION_BACK = 0x6166;
/**
* 重新设置UserId发送
*/
public static final short SET_USERID_SEND = 0x6169;
/**
* 重新设置UserId返回
*/
public static final short SET_USERID_BACK = 0x6170;
/**
* 终端点击消息发送
*/
public static final short CLICK_MSG_SEND = 0x6171;
/**
* 终端点击消息返回
*/
public static final short CLICK_MSG_BACK = 0x6172;
// 0xF0:服务器主动发包 0xF1:服务器应答 0xF2:客户端请求 0xF3:客户端应答
public static final byte FLAGS_F0 = (byte) 0xF0;
public static final byte FLAGS_F1 = (byte) 0xF1;
public static final byte FLAGS_F2 = (byte) 0xF2;
public static final byte FLAGS_F3 = (byte) 0xF3;
}