package net.northking.cctp.debuger.bean;

public interface DebugerConst {
    /**
     * sesionId
     */
    String KEY_SESSIONID = "sessionId";
    /**
     * requestId
     */
    String KEY_REQUESTID = "requestId";
    String AUTHORIZATION = "authorization";

    /**
     * 响应相关
     */
    public  interface ReplyConst{
        String KEY_CMD_REPLY = "reply";
        String KEY_REQUESTID = "requestId";
        String KEY_SUCCESS = "success";
        String KEY_FINISH = "finish";
        String KEY_MSG = "msg";
        String KEY_RESULT = "result";
        String KEY_STEP_ID = "stepId";
        String KEY_NEXT_STEP_ID = "nextStepId";
        String KEY_VARIABLES = "variables";
        String KEY_DEVICE_STATUS_TYPE = "type";
        String VAL_DEVICE_STATUS_CONNECTING = "connecting";
        String VAL_DEVICE_STATUS_CONNECTED = "connected";
        String VAL_DEVICE_STATUS_DISCONNECTED = "disconnect";
    }

    /**
     * 请求相关参数
     */
    public  interface ReqConst{
        /**
         * 设备使用令牌key
         */
        String KEY_TOKEN = "token";
        /**
         * 脚本类型key
         */
        String KEY_SCRIPT_TYPE = "type";
        /**
         * Device_init指令下-初始化数据key
         */
        String KEY_DEVICE_INIT_DATA = "data";
        /**
         * 回放指令下，回放类型key: 可选值有restart/all/from/step
         */
        String KEY_REPLAY_TYPE = "type";
        /**
         * 回放指令下的脚本数据key
         */
        String KEY_REPLAY_SCRIPT_DATA = "scriptData";
        /**
         * 回放指令下的开始回放步骤ID key
         */
        String KEY_REPLAY_FROM_STEP_ID = "stepId";

        /**
         * 设备地址
         */
        String KEY_DEVICE = "deviceAddr";

        /**
         * 项目id
         */
        String KEY_PROJECT_ID = "projectId";
    }

    /**
     * 回放类型相关参数
     */
    public  interface ReplayType {
        /**
         * 回放重启
         */
        String TYPE_RESTART = "restart";
        /**
         * 全部回放类型
         */
        String TYPE_ALL = "all";
        /**
         * 从当前步骤回放
         */
        String TYPE_FROM = "from";
        /**
         * 单步回放
         */
        String TYPE_STEP = "step";
    }

    /**
     * 指令相关
     */
    public interface CommandConst {
        /**
         * 移动端通信链路创建指令，仅与引擎通信使用
         */
        String CMD_CHANNEL_CREATE = "channel_create";
        /**
         * 引擎初始化指令 init
         */
        String CMD_ENGINE_INIT = "init";

        //======================设备相关指令=======================
        /**
         * 连接指定设备指令 device_enter
         */
        String CMD_DEVICE_ENTER = "device_enter";
        /**
         * 设备应用初始化
         */
        String CMD_DEVICE_INIT = "device_init";
        /**
         * 重连时设备状态反馈指令
         */
        String CMD_DEVICE_STATUS = "device_status";
        /**
         * 退出设备使用
         */
        String CMD_DEVICE_EXIT = "device_exit";

        //=====================录制相关指令=====================
        /**
         * 开始录制
         */
        String CMD_DETECT_START = "detect_start";
        /**
         * 暂停录制
         */
        String CMD_DETECT_STOP = "detect_stop";

        //==========================回放指令=====================
        /**
         * 开始回放指令
         */
        String CMD_REPLAY_START = "replay_start";
        /**
         * 停止回放指令
         */
        String CMD_REPLAY_STOP = "replay_stop";

        /**
         * 接口调试
         */
        String CMD_DEBUG_API = "debug_api";
    }
}
