648540858
2023-10-07 c084d6c98af1ef4d36a61adc719df5db76589428
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;
   /**
@@ -93,6 +93,13 @@
    */
   @Schema(description = "心跳时间")
   private String keepaliveTime;
   /**
    * 心跳间隔
    */
   @Schema(description = "心跳间隔")
   private int keepaliveIntervalTime;
   /**
    * 通道个数
@@ -133,7 +140,7 @@
   /**
    * 目录订阅周期,0为不订阅
    */
   @Schema(description = "目录订阅周期,0为不订阅")
   @Schema(description = "目录订阅周期,o为不订阅")
   private int subscribeCycleForCatalog;
   /**
@@ -158,7 +165,7 @@
    * 是否开启ssrc校验,默认关闭,开启可以防止串流
    */
   @Schema(description = "是否开启ssrc校验,默认关闭,开启可以防止串流")
   private boolean ssrcCheck = true;
   private boolean ssrcCheck = false;
   /**
    * 地理坐标系, 目前支持 WGS84,GCJ02
@@ -166,14 +173,22 @@
   @Schema(description = "地理坐标系, 目前支持 WGS84,GCJ02")
   private String geoCoordSys;
   /**
    * 树类型 国标规定了两种树的展现方式 行政区划:CivilCode 和业务分组:BusinessGroup
    */
   @Schema(description = "树类型 国标规定了两种树的展现方式 行政区划:CivilCode 和业务分组:BusinessGroup")
   private String treeType;
   @Schema(description = "密码")
   private String password;
   @Schema(description = "收流IP")
   private String sdpIp;
   @Schema(description = "SIP交互IP(设备访问平台的IP)")
   private String localIp;
   @Schema(description = "是否作为消息通道")
   private boolean asMessageChannel;
   @Schema(description = "设备注册的事务信息")
   private SipTransactionInfo sipTransactionInfo;
   public String getDeviceId() {
@@ -228,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;
   }
@@ -256,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() {
@@ -376,14 +405,6 @@
      this.geoCoordSys = geoCoordSys;
   }
   public String getTreeType() {
      return treeType;
   }
   public void setTreeType(String treeType) {
      this.treeType = treeType;
   }
   public String getPassword() {
      return password;
   }
@@ -391,4 +412,60 @@
   public void setPassword(String password) {
      this.password = password;
   }
   public String getSdpIp() {
      return sdpIp;
   }
   public void setSdpIp(String sdpIp) {
      this.sdpIp = sdpIp;
   }
   public String getLocalIp() {
      return localIp;
   }
   public void setLocalIp(String localIp) {
      this.localIp = localIp;
   }
   public int getKeepaliveIntervalTime() {
      return keepaliveIntervalTime;
   }
   public void setKeepaliveIntervalTime(int keepaliveIntervalTime) {
      this.keepaliveIntervalTime = keepaliveIntervalTime;
   }
   public boolean isAsMessageChannel() {
      return asMessageChannel;
   }
   public void setAsMessageChannel(boolean asMessageChannel) {
      this.asMessageChannel = asMessageChannel;
   }
   public SipTransactionInfo getSipTransactionInfo() {
      return sipTransactionInfo;
   }
   public void setSipTransactionInfo(SipTransactionInfo sipTransactionInfo) {
      this.sipTransactionInfo = sipTransactionInfo;
   }
   /*======================设备主子码流逻辑START=========================*/
   @Schema(description = "开启主子码流切换的开关(false-不开启,true-开启)")
   private boolean switchPrimarySubStream;
   public boolean isSwitchPrimarySubStream() {
      return switchPrimarySubStream;
   }
   public void setSwitchPrimarySubStream(boolean switchPrimarySubStream) {
      this.switchPrimarySubStream = switchPrimarySubStream;
   }
   /*======================设备主子码流逻辑END=========================*/
}