CmdContants.java 2.63 KB
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;


}