From 974e34641be1ff21d4f65730f9e03183ac9efd45 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Tue, 9 Jan 2024 22:24:48 +0800 Subject: [PATCH] DeviceControlRequestDTO --- .../control/DeviceControlRequestDTO.java | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 gb28181-sip/src/main/java/cn/skcks/docking/gb28181/sip/manscdp/control/DeviceControlRequestDTO.java diff --git a/gb28181-sip/src/main/java/cn/skcks/docking/gb28181/sip/manscdp/control/DeviceControlRequestDTO.java b/gb28181-sip/src/main/java/cn/skcks/docking/gb28181/sip/manscdp/control/DeviceControlRequestDTO.java new file mode 100644 index 0000000..28108df --- /dev/null +++ b/gb28181-sip/src/main/java/cn/skcks/docking/gb28181/sip/manscdp/control/DeviceControlRequestDTO.java @@ -0,0 +1,77 @@ +package cn.skcks.docking.gb28181.sip.manscdp.control; + +import cn.skcks.docking.gb28181.constant.CmdType; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; +import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@JacksonXmlRootElement(localName = "Control") +@JsonInclude(JsonInclude.Include.NON_EMPTY) +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Data +public class DeviceControlRequestDTO { + @Builder.Default + private String cmdType = CmdType.DEVICE_CONTROL; + + @JacksonXmlProperty(localName = "SN") + private String sn; + + /** + * 目标设备的设备编码(必选) + */ + @JacksonXmlProperty(localName = "DeviceID") + private String deviceId; + + /** + * 录像控制命令 + */ + private String recordCmd; + + /** + * 云台控制命令 + */ + @JacksonXmlProperty(localName = "PTZCmd") + private String ptzCmd; + + /** + * 远程启动 + */ + private String teleBoot; + + /** + * 布防撤防 + */ + private String guardCmd; + + /** + * 告警控制 + */ + private String alarmCmd; + + /** + * 强制关键帧 + */ + @JacksonXmlProperty(localName = "IFameCmd") + private String iFameCmd; + + /** + * 拉框放大 + */ + private String dragZoomIn; + + /** + * 拉框缩小 + */ + private String dragZoomOut; + + /** + * 看守位 + */ + private String homePosition; +}