package com.ruoyi.device.websocket;

/**
 * 调试宝 WebSocket 常量
 *
 * @author lwm
 */
public final class TsbWebSocketConstants
{

    /**
     * 默认最多允许同时在线人数100
     */
    public static int SOCKET_MAX_ONLINE_COUNT = 10;

    /**
     * 获取 token 参数名称
     */
    public static final String TOKEN_PARAM_NAME = "token";

    /**
     * 设备 SN码 参数名称
     */
    public static final String DEVICE_SN_PARAM_NAME = "deviceSn";

    /**
     * 绑定信息属性名称
     */
    public static final String USER_DEVICE_BIND_KEY = "tsbUserDeviceBind";

    /**
     * 绑定信息属性名称
     */
    public static final String USER_PERMISSIONS_KEY = "userPermissions";

    /**
     * 绑定信息属性名称
     */
    public static final String DEVICE_SN_KEY = "deviceSn";

    /**
     * 绑定信息属性名称
     */
    public static final String USER_ID_KEY = "userId";

    /**
     * code 1:成功，0:失败
     */
    public static final int SUCCESS_CODE = 1;
    public static final int FAIL_CODE = 0;

    /** 功能标识：websocket 连接 */
    public static final String CONNECT = "connect";

    private TsbWebSocketConstants()
    {
    }
}
