From 1efabbe4cc672fcf2ce589bdad1bce66c897a225 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期五, 24 五月 2024 10:50:29 +0800
Subject: [PATCH] 支持把推流的额外参数加入redis缓存

---
 src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java |   84 +++++++++++++++++++++++++++++++-----------
 1 files changed, 62 insertions(+), 22 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java
index 0e1b618..6e230af 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java
@@ -142,13 +142,13 @@
 	 * 浜戝彴绫诲瀷
 	 */
 	@Schema(description = "浜戝彴绫诲瀷")
-	private int PTZType;
+	private int ptzType;
 
 	/**
 	 * 浜戝彴绫诲瀷鎻忚堪瀛楃涓�
 	 */
 	@Schema(description = "浜戝彴绫诲瀷鎻忚堪瀛楃涓�")
-	private String PTZTypeText;
+	private String ptzTypeText;
 
 	/**
 	 * 鍒涘缓鏃堕棿
@@ -172,7 +172,7 @@
 	 * 閬囧埌杩嘚VR涓嬬殑IPC涓嬪彂淇′护鍙互鎺ㄦ祦锛� 浣嗘槸 Status 鍝嶅簲 OFF
 	 */
 	@Schema(description = "鍦ㄧ嚎/绂荤嚎锛� 1鍦ㄧ嚎,0绂荤嚎")
-	private int status;
+	private boolean status;
 
 	/**
 	 * 缁忓害
@@ -185,6 +185,18 @@
 	 */
 	@Schema(description = "绾害")
 	private double latitude;
+
+	/**
+	 * 缁忓害
+	 */
+	@Schema(description = "鑷畾涔夌粡搴�")
+	private double customLongitude;
+
+	/**
+	 * 绾害
+	 */
+	@Schema(description = "鑷畾涔夌含搴�")
+	private double customLatitude;
 
 	/**
 	 * 缁忓害 GCJ02
@@ -226,7 +238,7 @@
 	 *  鏄惁鍚湁闊抽
 	 */
 	@Schema(description = "鏄惁鍚湁闊抽")
-	private boolean hasAudio;
+	private Boolean hasAudio;
 
 	/**
 	 * 鏍囪閫氶亾鐨勭被鍨嬶紝0->鍥芥爣閫氶亾 1->鐩存挱娴侀�氶亾 2->涓氬姟鍒嗙粍/铏氭嫙缁勭粐/琛屾斂鍖哄垝
@@ -246,6 +258,10 @@
 	@Schema(description = "GPS鐨勬洿鏂版椂闂�")
 	private String gpsTime;
 
+	@Schema(description = "鐮佹祦鏍囪瘑锛屼紭鍏堢骇楂樹簬璁惧涓爜娴佹爣璇嗭紝" +
+			"鐢ㄤ簬閫夋嫨鐮佹祦鏃剁粍鎴愮爜娴佹爣璇嗐�傞粯璁や负null锛屼笉璁剧疆銆傚彲閫夊��: stream/streamnumber/streamprofile/streamMode")
+	private String streamIdentification;
+
 	public int getId() {
 		return id;
 	}
@@ -262,23 +278,23 @@
 		this.deviceId = deviceId;
 	}
 
-	public void setPTZType(int PTZType) {
-		this.PTZType = PTZType;
-		switch (PTZType) {
+	public void setPtzType(int ptzType) {
+		this.ptzType = ptzType;
+		switch (ptzType) {
 			case 0:
-				this.PTZTypeText = "鏈煡";
+				this.ptzTypeText = "鏈煡";
 				break;
 			case 1:
-				this.PTZTypeText = "鐞冩満";
+				this.ptzTypeText = "鐞冩満";
 				break;
 			case 2:
-				this.PTZTypeText = "鍗婄悆";
+				this.ptzTypeText = "鍗婄悆";
 				break;
 			case 3:
-				this.PTZTypeText = "鍥哄畾鏋満";
+				this.ptzTypeText = "鍥哄畾鏋満";
 				break;
 			case 4:
-				this.PTZTypeText = "閬ユ帶鏋満";
+				this.ptzTypeText = "閬ユ帶鏋満";
 				break;
 		}
 	}
@@ -443,23 +459,23 @@
 		this.password = password;
 	}
 
-	public int getPTZType() {
-		return PTZType;
+	public int getPtzType() {
+		return ptzType;
 	}
 
-	public String getPTZTypeText() {
-		return PTZTypeText;
+	public String getPtzTypeText() {
+		return ptzTypeText;
 	}
 
-	public void setPTZTypeText(String PTZTypeText) {
-		this.PTZTypeText = PTZTypeText;
+	public void setPtzTypeText(String ptzTypeText) {
+		this.ptzTypeText = ptzTypeText;
 	}
 
-	public int getStatus() {
+	public boolean isStatus() {
 		return status;
 	}
 
-	public void setStatus(int status) {
+	public void setStatus(boolean status) {
 		this.status = status;
 	}
 
@@ -519,11 +535,11 @@
 		this.subCount = subCount;
 	}
 
-	public boolean isHasAudio() {
+	public Boolean getHasAudio() {
 		return hasAudio;
 	}
 
-	public void setHasAudio(boolean hasAudio) {
+	public void setHasAudio(Boolean hasAudio) {
 		this.hasAudio = hasAudio;
 	}
 
@@ -574,4 +590,28 @@
 	public void setGpsTime(String gpsTime) {
 		this.gpsTime = gpsTime;
 	}
+
+	public String getStreamIdentification() {
+		return streamIdentification;
+	}
+
+	public void setStreamIdentification(String streamIdentification) {
+		this.streamIdentification = streamIdentification;
+	}
+
+	public double getCustomLongitude() {
+		return customLongitude;
+	}
+
+	public void setCustomLongitude(double customLongitude) {
+		this.customLongitude = customLongitude;
+	}
+
+	public double getCustomLatitude() {
+		return customLatitude;
+	}
+
+	public void setCustomLatitude(double customLatitude) {
+		this.customLatitude = customLatitude;
+	}
 }

--
Gitblit v1.8.0