com.dahuatech.icc.brm.enums.DomainEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-brm Show documentation
Show all versions of java-sdk-brm Show documentation
Dahua ICC Open API SDK for Java
package com.dahuatech.icc.brm.enums;
/**
* 域管理枚举类
*/
public class DomainEnum {
/**
* 级联方式
*/
public enum CascadeMode {
DARWIN(1, "综合业务级联(内部级联)"),
GB28181(2, "GB28181级联");
/**
* 编码
*/
private int code;
/**
* 说明
*/
private String name;
CascadeMode(int code, String name) {
this.code = code;
this.name = name;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return name;
}
public void setMessage(String name) {
this.name = name;
}
}
/**
* 添加类型
*/
public enum AddType {
IP(1, "IP"),
REGISTER(2, "主动注册");
/**
* 编码
*/
private int code;
/**
* 说明
*/
private String name;
AddType(int code, String name) {
this.code = code;
this.name = name;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return name;
}
public void setMessage(String name) {
this.name = name;
}
}
/**
* 域类型
*/
public enum Type {
PARENT(1, "上级域"),
CHILD(2, "下级域");
/**
* 编码
*/
private int code;
/**
* 说明
*/
private String name;
Type(int code, String name) {
this.code = code;
this.name = name;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return name;
}
public void setMessage(String name) {
this.name = name;
}
}
/**
* 连接状态
*/
public enum ConnectStatus {
ONLINE(0, "在线"),
OFFLINE(1, "离线"),
NEW(2, "初始化");
/**
* 编码
*/
private int code;
/**
* 说明
*/
private String name;
ConnectStatus(int code, String name) {
this.code = code;
this.name = name;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return name;
}
public void setMessage(String name) {
this.name = name;
}
}
/**
* 登录状态
*/
public enum LoginStatus {
SUCCESS(0, "成功"),
FAIL(1, "失败"),
NEW(2, "初始化"),
SYNCING(3,"正在同步"),
INTERRUPT(4,"中止同步")
;
/**
* 编码
*/
private int code;
/**
* 说明
*/
private String name;
LoginStatus(int code, String name) {
this.code = code;
this.name = name;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return name;
}
public void setMessage(String name) {
this.name = name;
}
}
/**
* 数据同步状态
*/
public enum DataSynStatus {
CLOSE(0, "关闭"),
OPEN(1, "开启");
/**
* 编码
*/
private int code;
/**
* 说明
*/
private String name;
DataSynStatus(int code, String name) {
this.code = code;
this.name = name;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return name;
}
public void setMessage(String name) {
this.name = name;
}
}
/**
* 组织允许更新状态
*/
public enum OrgUpdateFlag {
ENABLE(0, "允许"),
DISENABLE(1, "不允许");
/**
* 编码
*/
private int code;
/**
* 说明
*/
private String name;
OrgUpdateFlag(int code, String name) {
this.code = code;
this.name = name;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return name;
}
public void setMessage(String name) {
this.name = name;
}
}
}