refactor(DeviceConfigManager): 移除未使用的设备配置快捷方法- 删除了多个未使用的设备配置获取方法,包括 IP 地址、分辨率、帧率等

- 简化了 DeviceConfigManager 类的结构,提高了代码的可维护性
This commit is contained in:
2025-09-02 16:13:43 +08:00
parent 8e770a5b97
commit 25b912c7af

View File

@@ -48,75 +48,4 @@ public class DeviceConfigManager extends ConfigManager<DeviceConfigV2DTO> {
return config != null ? config.getId() : null; return config != null ? config.getId() : null;
} }
// 设备配置的常用快捷方法
/**
* 获取设备IP地址
*/
public String getIpAddress() {
return getString("ip_address");
}
/**
* 获取设备分辨率
*/
public String getResolution() {
return getString("resolution");
}
/**
* 获取设备帧率
*/
public Integer getFramerate() {
return getInteger("framerate");
}
/**
* 获取设备协议
*/
public String getProtocol() {
return getString("protocol");
}
/**
* 获取设备用户名
*/
public String getUsername() {
return getString("username");
}
/**
* 获取设备密码
*/
public String getPassword() {
return getString("password");
}
/**
* 获取设备亮度
*/
public Integer getBrightness() {
return getInteger("brightness");
}
/**
* 获取设备对比度
*/
public Integer getContrast() {
return getInteger("contrast");
}
/**
* 获取设备质量
*/
public String getQuality() {
return getString("quality");
}
/**
* 检查设备是否启用录制
*/
public Boolean isRecordingEnabled() {
return getBoolean("recording_enabled");
}
} }