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;
}
Aggregations