648540858
2024-05-29 764d04b497356ba6bcbb75fd42b51eca750f7223
src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java
@@ -1,116 +1,166 @@
package com.genersoft.iot.vmp.gb28181.bean;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(description = "通道信息")
public class DeviceChannel {
   /**
    * 通道id
    * 数据库自增ID
    */
   @Schema(description = "数据库自增ID")
   private int id;
   /**
    * 通道国标编号
    */
   @Schema(description = "通道国标编号")
   private String channelId;
   /**
    * 设备国标编号
    */
   @Schema(description = "设备国标编号")
   private String deviceId;
   
   /**
    * 通道名
    */
   @Schema(description = "名称")
   private String name;
   
   /**
    * 生产厂商
    */
   @Schema(description = "生产厂商")
   private String manufacture;
   
   /**
    * 型号
    */
   @Schema(description = "型号")
   private String model;
   
   /**
    * 设备归属
    */
   @Schema(description = "设备归属")
   private String owner;
   
   /**
    * 行政区域
    */
   @Schema(description = "行政区域")
   private String civilCode;
   
   /**
    * 警区
    */
   @Schema(description = "警区")
   private String block;
   /**
    * 安装地址
    */
   @Schema(description = "安装地址")
   private String address;
   
   /**
    * 是否有子设备 1有, 0没有
    */
   @Schema(description = "是否有子设备 1有, 0没有")
   private int parental;
   
   /**
    * 父级id
    */
   @Schema(description = "父级id")
   private String parentId;
   
   /**
    * 信令安全模式  缺省为0; 0:不采用; 2: S/MIME签名方式; 3: S/ MIME加密签名同时采用方式; 4:数字摘要方式
    */
   @Schema(description = "信令安全模式  缺省为0; 0:不采用; 2: S/MIME签名方式; 3: S/ MIME加密签名同时采用方式; 4:数字摘要方式")
   private int safetyWay;
   
   /**
    * 注册方式 缺省为1;1:符合IETFRFC3261标准的认证注册模 式; 2:基于口令的双向认证注册模式; 3:基于数字证书的双向认证注册模式
    */
   @Schema(description = "注册方式 缺省为1;1:符合IETFRFC3261标准的认证注册模 式; 2:基于口令的双向认证注册模式; 3:基于数字证书的双向认证注册模式")
   private int registerWay;
   
   /**
    * 证书序列号
    */
   @Schema(description = "证书序列号")
   private String certNum;
   
   /**
    * 证书有效标识 缺省为0;证书有效标识:0:无效1: 有效
    */
   @Schema(description = "证书有效标识 缺省为0;证书有效标识:0:无效1: 有效")
   private int certifiable;
   
   /**
    * 证书无效原因码
    */
   @Schema(description = "证书无效原因码")
   private int errCode;
   
   /**
    * 证书终止有效期
    */
   @Schema(description = "证书终止有效期")
   private String endTime;
   
   /**
    * 保密属性 缺省为0; 0:不涉密, 1:涉密
    */
   @Schema(description = "保密属性 缺省为0; 0:不涉密, 1:涉密")
   private String secrecy;
   
   /**
    * IP地址
    */
   @Schema(description = "IP地址")
   private String ipAddress;
   
   /**
    * 端口号
    */
   @Schema(description = "端口号")
   private int port;
   
   /**
    * 密码
    */
   @Schema(description = "密码")
   private String password;
   /**
    * 云台类型
    */
   private int PTZType;
   @Schema(description = "云台类型")
   private int ptzType;
   /**
    * 云台类型描述字符串
    */
   private String PTZTypeText;
   @Schema(description = "云台类型描述字符串")
   private String ptzTypeText;
   /**
    * 创建时间
    */
   @Schema(description = "创建时间")
   private String createTime;
   /**
    * 更新时间
    */
   @Schema(description = "更新时间")
   private String updateTime;
   
   /**
    * 在线/离线
@@ -121,27 +171,133 @@
    * <Status>OFF</Status>
    * 遇到过NVR下的IPC下发信令可以推流, 但是 Status 响应 OFF
    */
   private int status;
   @Schema(description = "在线/离线, 1在线,0离线")
   private boolean status;
   /**
    * 经度
    */
   @Schema(description = "经度")
   private double longitude;
   
   /**
    * 纬度
    */
   @Schema(description = "纬度")
   private double latitude;
   /**
    * 经度
    */
   @Schema(description = "自定义经度")
   private double customLongitude;
   /**
    * 纬度
    */
   @Schema(description = "自定义纬度")
   private double customLatitude;
   /**
    * 经度 GCJ02
    */
   @Schema(description = "GCJ02坐标系经度")
   private double longitudeGcj02;
   /**
    * 纬度 GCJ02
    */
   @Schema(description = "GCJ02坐标系纬度")
   private double latitudeGcj02;
   /**
    * 经度 WGS84
    */
   @Schema(description = "WGS84坐标系经度")
   private double longitudeWgs84;
   /**
    * 纬度 WGS84
    */
   @Schema(description = "WGS84坐标系纬度")
   private double latitudeWgs84;
   /**
    * 子设备数
    */
   @Schema(description = "子设备数")
   private int subCount;
   /**
    * 流唯一编号,存在表示正在直播
    */
   private String  ssrc;
   @Schema(description = "流唯一编号,存在表示正在直播")
   private String  streamId;
   /**
    *  是否含有音频
    */
   @Schema(description = "是否含有音频")
   private Boolean hasAudio;
   /**
    * 标记通道的类型,0->国标通道 1->直播流通道 2->业务分组/虚拟组织/行政区划
    */
   @Schema(description = "标记通道的类型,0->国标通道 1->直播流通道 2->业务分组/虚拟组织/行政区划")
   private int channelType;
   /**
    * 业务分组
    */
   @Schema(description = "业务分组")
   private String businessGroupId;
   /**
    * GPS的更新时间
    */
   @Schema(description = "GPS的更新时间")
   private String gpsTime;
   @Schema(description = "码流标识,优先级高于设备中码流标识," +
         "用于选择码流时组成码流标识。默认为null,不设置。可选值: stream/streamnumber/streamprofile/streamMode")
   private String streamIdentification;
   public int getId() {
      return id;
   }
   public void setId(int id) {
      this.id = id;
   }
   public String getDeviceId() {
      return deviceId;
   }
   public void setDeviceId(String deviceId) {
      this.deviceId = deviceId;
   }
   public void setPtzType(int ptzType) {
      this.ptzType = ptzType;
      switch (ptzType) {
         case 0:
            this.ptzTypeText = "未知";
            break;
         case 1:
            this.ptzTypeText = "球机";
            break;
         case 2:
            this.ptzTypeText = "半球";
            break;
         case 3:
            this.ptzTypeText = "固定枪机";
            break;
         case 4:
            this.ptzTypeText = "遥控枪机";
            break;
      }
   }
   public String getChannelId() {
      return channelId;
@@ -157,14 +313,6 @@
   public void setName(String name) {
      this.name = name;
   }
   public int getStatus() {
      return status;
   }
   public void setStatus(int status) {
      this.status = status;
   }
   public String getManufacture() {
@@ -311,6 +459,26 @@
      this.password = password;
   }
   public int getPtzType() {
      return ptzType;
   }
   public String getPtzTypeText() {
      return ptzTypeText;
   }
   public void setPtzTypeText(String ptzTypeText) {
      this.ptzTypeText = ptzTypeText;
   }
   public boolean isStatus() {
      return status;
   }
   public void setStatus(boolean status) {
      this.status = status;
   }
   public double getLongitude() {
      return longitude;
   }
@@ -327,41 +495,36 @@
      this.latitude = latitude;
   }
   public int getPTZType() {
      return PTZType;
   public double getLongitudeGcj02() {
      return longitudeGcj02;
   }
   public void setPTZType(int PTZType) {
      this.PTZType = PTZType;
      switch (PTZType) {
         case 0:
            this.PTZTypeText = "未知";
            break;
         case 1:
            this.PTZTypeText = "球机";
            break;
         case 2:
            this.PTZTypeText = "半球";
            break;
         case 3:
            this.PTZTypeText = "固定枪机";
            break;
         case 4:
            this.PTZTypeText = "遥控枪机";
            break;
      }
   public void setLongitudeGcj02(double longitudeGcj02) {
      this.longitudeGcj02 = longitudeGcj02;
   }
   public String getPTZTypeText() {
      return PTZTypeText;
   public double getLatitudeGcj02() {
      return latitudeGcj02;
   }
   public String getSsrc() {
      return ssrc;
   public void setLatitudeGcj02(double latitudeGcj02) {
      this.latitudeGcj02 = latitudeGcj02;
   }
   public void setSsrc(String ssrc) {
      this.ssrc = ssrc;
   public double getLongitudeWgs84() {
      return longitudeWgs84;
   }
   public void setLongitudeWgs84(double longitudeWgs84) {
      this.longitudeWgs84 = longitudeWgs84;
   }
   public double getLatitudeWgs84() {
      return latitudeWgs84;
   }
   public void setLatitudeWgs84(double latitudeWgs84) {
      this.latitudeWgs84 = latitudeWgs84;
   }
   public int getSubCount() {
@@ -371,4 +534,84 @@
   public void setSubCount(int subCount) {
      this.subCount = subCount;
   }
   public Boolean getHasAudio() {
      return hasAudio;
   }
   public void setHasAudio(Boolean hasAudio) {
      this.hasAudio = hasAudio;
   }
   public String getStreamId() {
      return streamId;
   }
   public void setStreamId(String streamId) {
      this.streamId = streamId;
   }
   public String getCreateTime() {
      return createTime;
   }
   public void setCreateTime(String createTime) {
      this.createTime = createTime;
   }
   public String getUpdateTime() {
      return updateTime;
   }
   public void setUpdateTime(String updateTime) {
      this.updateTime = updateTime;
   }
   public int getChannelType() {
      return channelType;
   }
   public void setChannelType(int channelType) {
      this.channelType = channelType;
   }
   public String getBusinessGroupId() {
      return businessGroupId;
   }
   public void setBusinessGroupId(String businessGroupId) {
      this.businessGroupId = businessGroupId;
   }
   public String getGpsTime() {
      return gpsTime;
   }
   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;
   }
}