From 221f99c764b51c3cd284c6e5a41492c26c5c7ffc Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期五, 09 九月 2022 17:06:19 +0800
Subject: [PATCH] 优化sip消息

---
 src/main/java/com/genersoft/iot/vmp/gb28181/bean/ParentPlatform.java |  201 +++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 189 insertions(+), 12 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/ParentPlatform.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/ParentPlatform.java
index 0aec885..b056cc7 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/ParentPlatform.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/ParentPlatform.java
@@ -1,104 +1,201 @@
 package com.genersoft.iot.vmp.gb28181.bean;
 
+import io.swagger.v3.oas.annotations.media.Schema;
+
+/**
+ * @author lin
+ */
+@Schema(description = "骞冲彴淇℃伅")
 public class ParentPlatform {
+
+    /**
+     * id
+     */
+    @Schema(description = "ID(鏁版嵁搴撲腑)")
+    private Integer id;
 
     /**
      * 鏄惁鍚敤
      */
+    @Schema(description = "鏄惁鍚敤")
     private boolean enable;
 
     /**
      * 鍚嶇О
      */
+    @Schema(description = "鍚嶇О")
     private String name;
 
     /**
      * SIP鏈嶅姟鍥芥爣缂栫爜
      */
+    @Schema(description = "SIP鏈嶅姟鍥芥爣缂栫爜")
     private String serverGBId;
 
     /**
      * SIP鏈嶅姟鍥芥爣鍩�
      */
+    @Schema(description = "SIP鏈嶅姟鍥芥爣鍩�")
     private String serverGBDomain;
 
     /**
      * SIP鏈嶅姟IP
      */
+    @Schema(description = "SIP鏈嶅姟IP")
     private String serverIP;
 
     /**
      * SIP鏈嶅姟绔彛
      */
+    @Schema(description = "SIP鏈嶅姟绔彛")
     private int serverPort;
 
     /**
      * 璁惧鍥芥爣缂栧彿
      */
+    @Schema(description = "璁惧鍥芥爣缂栧彿")
     private String deviceGBId;
 
     /**
      * 璁惧ip
      */
+    @Schema(description = "璁惧ip")
     private String deviceIp;
 
     /**
      * 璁惧绔彛
      */
+    @Schema(description = "璁惧绔彛")
     private String devicePort;
 
     /**
      * SIP璁よ瘉鐢ㄦ埛鍚�(榛樿浣跨敤璁惧鍥芥爣缂栧彿)
      */
+    @Schema(description = "SIP璁よ瘉鐢ㄦ埛鍚�(榛樿浣跨敤璁惧鍥芥爣缂栧彿)")
     private String username;
 
     /**
      * SIP璁よ瘉瀵嗙爜
      */
+    @Schema(description = "SIP璁よ瘉瀵嗙爜")
     private String password;
 
     /**
      * 娉ㄥ唽鍛ㄦ湡 (绉�)
      */
-    private String expires;
+    @Schema(description = "娉ㄥ唽鍛ㄦ湡 (绉�)")
+    private int expires;
 
     /**
      * 蹇冭烦鍛ㄦ湡(绉�)
      */
-    private String keepTimeout;
+    @Schema(description = "蹇冭烦鍛ㄦ湡(绉�)")
+    private int keepTimeout;
 
     /**
      * 浼犺緭鍗忚
      * UDP/TCP
      */
+    @Schema(description = "浼犺緭鍗忚")
     private String transport;
 
     /**
      * 瀛楃闆�
      */
+    @Schema(description = "瀛楃闆�")
     private String characterSet;
 
     /**
      * 鍏佽浜戝彴鎺у埗
      */
-    private boolean PTZEnable;
+    @Schema(description = "鍏佽浜戝彴鎺у埗")
+    private boolean ptz;
 
     /**
      * RTCP娴佷繚娲�
-     * TODO 棰勭暀, 鏆備笉瀹炵幇
      */
+    @Schema(description = "RTCP娴佷繚娲�")
     private boolean rtcp;
 
     /**
      * 鍦ㄧ嚎鐘舵��
      */
+    @Schema(description = "鍦ㄧ嚎鐘舵��")
     private boolean status;
 
     /**
      * 鍦ㄧ嚎鐘舵��
      */
+    @Schema(description = "鍦ㄧ嚎鐘舵��")
     private int channelCount;
 
+    /**
+     * 榛樿鐩綍Id,鑷姩娣诲姞鐨勯�氶亾澶氭斁鍦ㄨ繖涓洰褰曚笅
+     */
+    @Schema(description = "榛樿鐩綍Id,鑷姩娣诲姞鐨勯�氶亾澶氭斁鍦ㄨ繖涓洰褰曚笅")
+    private String catalogId;
+
+    /**
+     * 宸茶璁㈤槄鐩綍淇℃伅
+     */
+    @Schema(description = "宸茶璁㈤槄鐩綍淇℃伅")
+    private boolean catalogSubscribe;
+
+    /**
+     * 宸茶璁㈤槄鎶ヨ淇℃伅
+     */
+    @Schema(description = "宸茶璁㈤槄鎶ヨ淇℃伅")
+    private boolean alarmSubscribe;
+
+    /**
+     * 宸茶璁㈤槄绉诲姩浣嶇疆淇℃伅
+     */
+    @Schema(description = "宸茶璁㈤槄绉诲姩浣嶇疆淇℃伅")
+    private boolean mobilePositionSubscribe;
+
+    /**
+     * 鐐规挱鏈帹娴佺殑璁惧鏃舵槸鍚︿娇鐢╮edis閫氱煡鎷夎捣
+     */
+    @Schema(description = "鐐规挱鏈帹娴佺殑璁惧鏃舵槸鍚︿娇鐢╮edis閫氱煡鎷夎捣")
+    private boolean startOfflinePush;
+
+    /**
+     * 鐩綍鍒嗙粍-姣忔鍚戜笂绾у彂閫侀�氶亾淇℃伅鏃跺崟涓寘鎼哄甫鐨勯�氶亾鏁伴噺锛屽彇鍊�1,2,4,8
+     */
+    @Schema(description = "鐩綍鍒嗙粍-姣忔鍚戜笂绾у彂閫侀�氶亾淇℃伅鏃跺崟涓寘鎼哄甫鐨勯�氶亾鏁伴噺锛屽彇鍊�1,2,4,8")
+    private int catalogGroup;
+
+    /**
+     * 琛屾斂鍖哄垝
+     */
+    @Schema(description = "琛屾斂鍖哄垝")
+    private String administrativeDivision;
+
+    /**
+     * 鏇存柊鏃堕棿
+     */
+    @Schema(description = "鏇存柊鏃堕棿")
+    private String updateTime;
+
+    /**
+     * 鍒涘缓鏃堕棿
+     */
+    @Schema(description = "鍒涘缓鏃堕棿")
+    private String createTime;
+
+    /**
+     * 鏍戠被鍨� 鍥芥爣瑙勫畾浜嗕袱绉嶆爲鐨勫睍鐜版柟寮� 琛屾斂鍖哄垝 CivilCode 鍜屼笟鍔″垎缁�:BusinessGroup
+     */
+    @Schema(description = "鏍戠被鍨� 鍥芥爣瑙勫畾浜嗕袱绉嶆爲鐨勫睍鐜版柟寮� 琛屾斂鍖哄垝 CivilCode 鍜屼笟鍔″垎缁�:BusinessGrou")
+    private String treeType;
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
 
     public boolean isEnable() {
         return enable;
@@ -188,19 +285,19 @@
         this.password = password;
     }
 
-    public String getExpires() {
+    public int getExpires() {
         return expires;
     }
 
-    public void setExpires(String expires) {
+    public void setExpires(int expires) {
         this.expires = expires;
     }
 
-    public String getKeepTimeout() {
+    public int getKeepTimeout() {
         return keepTimeout;
     }
 
-    public void setKeepTimeout(String keepTimeout) {
+    public void setKeepTimeout(int keepTimeout) {
         this.keepTimeout = keepTimeout;
     }
 
@@ -220,12 +317,12 @@
         this.characterSet = characterSet;
     }
 
-    public boolean isPTZEnable() {
-        return PTZEnable;
+    public boolean isPtz() {
+        return ptz;
     }
 
-    public void setPTZEnable(boolean PTZEnable) {
-        this.PTZEnable = PTZEnable;
+    public void setPtz(boolean ptz) {
+        this.ptz = ptz;
     }
 
     public boolean isRtcp() {
@@ -251,4 +348,84 @@
     public void setChannelCount(int channelCount) {
         this.channelCount = channelCount;
     }
+
+    public String getCatalogId() {
+        return catalogId;
+    }
+
+    public void setCatalogId(String catalogId) {
+        this.catalogId = catalogId;
+    }
+
+    public boolean isCatalogSubscribe() {
+        return catalogSubscribe;
+    }
+
+    public void setCatalogSubscribe(boolean catalogSubscribe) {
+        this.catalogSubscribe = catalogSubscribe;
+    }
+
+    public boolean isAlarmSubscribe() {
+        return alarmSubscribe;
+    }
+
+    public void setAlarmSubscribe(boolean alarmSubscribe) {
+        this.alarmSubscribe = alarmSubscribe;
+    }
+
+    public boolean isMobilePositionSubscribe() {
+        return mobilePositionSubscribe;
+    }
+
+    public void setMobilePositionSubscribe(boolean mobilePositionSubscribe) {
+        this.mobilePositionSubscribe = mobilePositionSubscribe;
+    }
+
+    public boolean isStartOfflinePush() {
+        return startOfflinePush;
+    }
+
+    public void setStartOfflinePush(boolean startOfflinePush) {
+        this.startOfflinePush = startOfflinePush;
+    }
+
+    public int getCatalogGroup() {
+        return catalogGroup;
+    }
+
+    public void setCatalogGroup(int catalogGroup) {
+        this.catalogGroup = catalogGroup;
+    }
+
+    public String getAdministrativeDivision() {
+        return administrativeDivision;
+    }
+
+    public void setAdministrativeDivision(String administrativeDivision) {
+        this.administrativeDivision = administrativeDivision;
+    }
+
+    public String getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(String updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    public String getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(String createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getTreeType() {
+        return treeType;
+    }
+
+    public void setTreeType(String treeType) {
+        this.treeType = treeType;
+    }
 }

--
Gitblit v1.8.0