1078-图像分析报警参数设置
This commit is contained in:
@@ -150,6 +150,11 @@ public class J0104 extends Re {
|
||||
Method methodForVideoAlarmBit = deviceConfig.getClass().getDeclaredMethod("set" + StringUtils.capitalize(field.getName()), VideoAlarmBit.class);
|
||||
methodForVideoAlarmBit.invoke(deviceConfig, videoAlarmBit);
|
||||
continue;
|
||||
case "AnalyzeAlarmParam":
|
||||
AnalyzeAlarmParam analyzeAlarmParam = AnalyzeAlarmParam.decode(buf);
|
||||
Method methodForAnalyzeAlarmParam = deviceConfig.getClass().getDeclaredMethod("set" + StringUtils.capitalize(field.getName()), AnalyzeAlarmParam.class);
|
||||
methodForAnalyzeAlarmParam.invoke(deviceConfig, analyzeAlarmParam);
|
||||
continue;
|
||||
default:
|
||||
System.err.println(field.getGenericType().getTypeName());
|
||||
continue;
|
||||
|
||||
@@ -94,6 +94,7 @@ public class J8103 extends Rs {
|
||||
case "AlarmRecordingParam":
|
||||
case "AlarmShielding":
|
||||
case "VideoAlarmBit":
|
||||
case "AnalyzeAlarmParam":
|
||||
field.setAccessible(true);
|
||||
JTDeviceSubConfig subConfig = (JTDeviceSubConfig)field.get(config);
|
||||
ByteBuf bytesForIllegalDrivingPeriods = subConfig.encode();
|
||||
|
||||
Reference in New Issue
Block a user