CmdResponseSettingOnlyCallback.java 2.81 KB
package com.glsx.mstar.callback;

public interface CmdResponseSettingOnlyCallback {

    /**
     * 进入/退出设置模式
     *
     * @param enterOrExit
     * @param isSuccess
     */
    void onSwitchModeSetting(boolean enterOrExit, boolean isSuccess);

    /**
     * 发送设置模式心跳
     *
     * @param isSuccess
     */
    void onHeartbeatModeSetting(boolean isSuccess);

    /**
     * 获取设置信息
     *
     * @param data
     */
    void onGetSettingInfo(String data);

    /**
     * 获取wifi信息
     *
     * @param wifiInfo
     */
    void onGetWifiInfo(String wifiInfo, boolean isSuccess);

    /**
     * 设置wifi 名称和密码
     *
     * @param name      WIFI SSID
     * @param pwd       WIFI 密码
     * @param isSuccess
     */
    void onSetWifiInfo(String name, String pwd, boolean isSuccess);

    /**
     * 重启wifi
     *
     * @param isSuccess
     */
    void onRestartWifi(boolean isSuccess);

    /**
     * 设置碰撞灵敏度
     *
     * @param level     分辨率等级
     * @param isSuccess
     */
    void onSetGSensor(String level, boolean isSuccess);

    /**
     * 设置停车监控灵敏度
     *
     * @param level     灵敏度
     * @param isSuccess
     */
    void onSetParkingGuard(String level, boolean isSuccess);

    /**
     * 设置录制视频分辨率
     *
     * @param res       分辨率等级
     * @param isSuccess
     */
    void onSetRecordResolution(String res, boolean isSuccess);

    /**
     * 循环录像时长
     *
     * @param time      分辨率
     * @param isSuccess
     */
    void onSetVideoClipTime(String time, boolean isSuccess);

    /**
     * 录制音频开关
     *
     * @param isOn      true|false  打开|关闭
     * @param isSuccess
     */
    void onSwitchRecordSound(boolean isOn, boolean isSuccess);

    /**
     * 获取录制音频开关接口(安智享独立接口)
     *
     * @param isSuccess 请求接口状态
     */
    void onQueryRecordSoundState(boolean isSuccess);


    /**
     * 获取SD卡信息
     *
     * @param isSuccess
     */
    void onGetSDCardInfo(boolean isSuccess);

    /**
     * 格式化SD卡
     *
     * @param isSuccess
     */
    void onFormatSDCard(boolean isSuccess);

    /**
     * 获取版本信息
     *
     * @param isSuccess
     */
    void onGetVersionInfo(boolean isSuccess);

    /**
     * 恢复出厂设置
     *
     * @param isSuccess
     */
    void onFactoryReset(boolean isSuccess);

    /**
     * 切换录制状态
     *
     * @param isOn
     * @param isSuccess
     */
    void onSwitchRecord(boolean isOn, boolean isSuccess);

    /**
     * 设置音量
     *
     * @param isSuccess
     */
    void onSetVolume(boolean isSuccess);

    /**
     * 切换提示音开关
     */
    void onSwitchWarningTone(boolean isOn, boolean isSuccess);
}