648540858
2024-03-28 1de344674afd6bb35b51b165bbad76dbe6299b7e
src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java
@@ -77,8 +77,8 @@
   /**
    * 在线
    */
   @Schema(description = "是否在线,1为在线,0为离线")
   private int online;
   @Schema(description = "是否在线,true为在线,false为离线")
   private boolean onLine;
   /**
@@ -140,7 +140,7 @@
   /**
    * 目录订阅周期,0为不订阅
    */
   @Schema(description = "目录订阅周期,0为不订阅")
   @Schema(description = "目录订阅周期,o为不订阅")
   private int subscribeCycleForCatalog;
   /**
@@ -165,19 +165,13 @@
    * 是否开启ssrc校验,默认关闭,开启可以防止串流
    */
   @Schema(description = "是否开启ssrc校验,默认关闭,开启可以防止串流")
   private boolean ssrcCheck = true;
   private boolean ssrcCheck = false;
   /**
    * 地理坐标系, 目前支持 WGS84,GCJ02
    */
   @Schema(description = "地理坐标系, 目前支持 WGS84,GCJ02")
   private String geoCoordSys;
   /**
    * 树类型 国标规定了两种树的展现方式 行政区划:CivilCode 和业务分组:BusinessGroup
    */
   @Schema(description = "树类型 国标规定了两种树的展现方式 行政区划:CivilCode 和业务分组:BusinessGroup")
   private String treeType;
   @Schema(description = "密码")
   private String password;
@@ -191,6 +185,11 @@
   @Schema(description = "是否作为消息通道")
   private boolean asMessageChannel;
   @Schema(description = "设备注册的事务信息")
   private SipTransactionInfo sipTransactionInfo;
   @Schema(description = "控制语音对讲流程,释放收到ACK后发流")
   private boolean broadcastPushAfterAck;
   public String getDeviceId() {
      return deviceId;
@@ -244,6 +243,20 @@
      return streamMode;
   }
   public Integer getStreamModeForParam() {
      if (streamMode == null) {
         return 0;
      }
      if (streamMode.equalsIgnoreCase("UDP")) {
         return 0;
      }else if (streamMode.equalsIgnoreCase("TCP-PASSIVE")) {
         return 1;
      }else if (streamMode.equalsIgnoreCase("TCP-ACTIVE")) {
         return 2;
      }
      return 0;
   }
   public void setStreamMode(String streamMode) {
      this.streamMode = streamMode;
   }
@@ -272,12 +285,12 @@
      this.hostAddress = hostAddress;
   }
   public int getOnline() {
      return online;
   public boolean isOnLine() {
      return onLine;
   }
   public void setOnline(int online) {
      this.online = online;
   public void setOnLine(boolean onLine) {
      this.onLine = onLine;
   }
   public int getChannelCount() {
@@ -392,14 +405,6 @@
      this.geoCoordSys = geoCoordSys;
   }
   public String getTreeType() {
      return treeType;
   }
   public void setTreeType(String treeType) {
      this.treeType = treeType;
   }
   public String getPassword() {
      return password;
   }
@@ -439,4 +444,19 @@
   public void setAsMessageChannel(boolean asMessageChannel) {
      this.asMessageChannel = asMessageChannel;
   }
   public SipTransactionInfo getSipTransactionInfo() {
      return sipTransactionInfo;
   }
   public void setSipTransactionInfo(SipTransactionInfo sipTransactionInfo) {
      this.sipTransactionInfo = sipTransactionInfo;
   }
    public boolean isBroadcastPushAfterAck() {
        return broadcastPushAfterAck;
    }
    public void setBroadcastPushAfterAck(boolean broadcastPushAfterAck) {
        this.broadcastPushAfterAck = broadcastPushAfterAck;
    }
}