Search in sources :

Example 1 with SimulatorDetail

use of com.shulie.instrument.module.config.fetcher.config.SimulatorDetail in project LinkAgent by shulieTech.

the class ConfigFetcherModule method getSimulatorDetail.

/**
 * 获取simulator配置的接口,目前只获取静默开关状态
 * @param args
 * @return
 */
@Command("getSimulatorDetail")
public CommandResponse<Object> getSimulatorDetail(Map<String, String> args) {
    SimulatorDetail simulatorDetail = new SimulatorDetail();
    simulatorDetail.setIsSilent(PradarSwitcher.silenceSwitchOn() == true ? 1 : 0);
    CommandResponse<Object> commandResponse = new CommandResponse<Object>();
    commandResponse.setSuccess(true);
    commandResponse.setResult(simulatorDetail);
    return commandResponse;
}
Also used : SimulatorDetail(com.shulie.instrument.module.config.fetcher.config.SimulatorDetail) CommandResponse(com.shulie.instrument.simulator.api.CommandResponse) Command(com.shulie.instrument.simulator.api.annotation.Command)

Aggregations

SimulatorDetail (com.shulie.instrument.module.config.fetcher.config.SimulatorDetail)1 CommandResponse (com.shulie.instrument.simulator.api.CommandResponse)1 Command (com.shulie.instrument.simulator.api.annotation.Command)1