处理报警和位置上报时使用fromHeader获取deviceId, xml的deviceId作为channelId使用。
This commit is contained in:
@@ -13,6 +13,11 @@ public class DeviceAlarm {
|
||||
*/
|
||||
private String deviceId;
|
||||
|
||||
/**
|
||||
* 通道Id
|
||||
*/
|
||||
private String channelId;
|
||||
|
||||
/**
|
||||
* 报警级别, 1为一级警情, 2为二级警情, 3为三级警情, 4为四级 警情-
|
||||
*/
|
||||
@@ -121,4 +126,12 @@ public class DeviceAlarm {
|
||||
public void setAlarmType(String alarmType) {
|
||||
this.alarmType = alarmType;
|
||||
}
|
||||
|
||||
public String getChannelId() {
|
||||
return channelId;
|
||||
}
|
||||
|
||||
public void setChannelId(String channelId) {
|
||||
this.channelId = channelId;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,11 @@ public class MobilePosition {
|
||||
*/
|
||||
private String deviceId;
|
||||
|
||||
/**
|
||||
* 通道Id
|
||||
*/
|
||||
private String channelId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@@ -163,4 +168,12 @@ public class MobilePosition {
|
||||
public void setCnLat(String cnLat) {
|
||||
this.cnLat = cnLat;
|
||||
}
|
||||
|
||||
public String getChannelId() {
|
||||
return channelId;
|
||||
}
|
||||
|
||||
public void setChannelId(String channelId) {
|
||||
this.channelId = channelId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user