不在控制相机
parent
b8fca9b0ca
commit
21df529d49
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,3 @@
|
||||
#Generated by Maven
|
||||
#Tue Jan 27 17:40:12 CST 2026
|
||||
groupId=com.zhehekeji
|
||||
artifactId=common
|
||||
groupId=com.zhehekeji
|
||||
version=1.0.0
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\PathUtil.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\Tools.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\ValidatorUtil.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\SpringContextUtil.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\QrUtil.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\CommonConfigure.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\constant\CommonConstant.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\HttpUtil.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\properities\Md5Properity.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\properities\RedisProperity.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\CommonConfigure.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\properities\Properity.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\MD5Util.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\properities\RedisProperity.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\FileUtil.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\HttpUtil.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\MD5Util.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\PathUtil.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\QrUtil.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\SpringContextUtil.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\Tools.java
|
||||
D:\git\hzleaper\lia-monitor-backend\modules\common\src\main\java\com\zhehekeji\common\util\ValidatorUtil.java
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,9 +1,7 @@
|
||||
package com.zhehekeji.web.lib;
|
||||
|
||||
import com.zhehekeji.web.lib.joyware.NetSDKLib;
|
||||
|
||||
public interface CameraControlLoginModule {
|
||||
|
||||
NetSDKLib.LLong login(String ip, int port, String user, String password);
|
||||
Long login(String ip, int port, String user, String password);
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,43 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware;
|
||||
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
/**
|
||||
* the relation of the picture path and the int value
|
||||
*/
|
||||
public class CaptureCmdSerial {
|
||||
|
||||
public static ConcurrentHashMap<Integer, String> captureMap = new ConcurrentHashMap<>(Short.MAX_VALUE * 4);
|
||||
|
||||
private static AtomicInteger serialIntId = new AtomicInteger(0);
|
||||
|
||||
private static Integer nextSerial() {
|
||||
return serialIntId.addAndGet(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* bind one int value to the picture path
|
||||
* @param picPath
|
||||
* @return
|
||||
*/
|
||||
public static Integer put(String picPath) {
|
||||
Integer id = nextSerial();
|
||||
captureMap.put(id, picPath);
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the picture path by a int value
|
||||
* then delete the relation
|
||||
* @param serialId
|
||||
* @return
|
||||
*/
|
||||
public static String getPath(Integer serialId) {
|
||||
String path = captureMap.get(serialId);
|
||||
captureMap.remove(serialId);
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1,74 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware;
|
||||
|
||||
import com.sun.jna.Pointer;
|
||||
import com.zhehekeji.common.util.PathUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.concurrent.ArrayBlockingQueue;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* @Description 抓图回调函数
|
||||
* @Author wangyiming1031@aliyun.com
|
||||
* @Date 2020/12/14 16:11
|
||||
**/
|
||||
@Slf4j
|
||||
public class CaptureReceiveCB implements NetSDKLib.fSnapRev {
|
||||
|
||||
private static ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 3, 200,
|
||||
TimeUnit.MINUTES, new ArrayBlockingQueue<>(1000));
|
||||
|
||||
|
||||
@Override
|
||||
public void invoke(NetSDKLib.LLong lLoginID, Pointer pBuf, int RevLen, int EncodeType, int CmdSerial, Pointer dwUser) {
|
||||
String path = CaptureCmdSerial.getPath(CmdSerial);
|
||||
CaptureRunnable captureRunnable = new CaptureRunnable(pBuf,RevLen,path);
|
||||
threadPoolExecutor.execute(captureRunnable);
|
||||
}
|
||||
|
||||
class CaptureRunnable implements Runnable {
|
||||
|
||||
private Pointer pBuf;
|
||||
private int revLen;
|
||||
private String path;
|
||||
|
||||
public CaptureRunnable(Pointer pBuf, int revLen, String path){
|
||||
this.pBuf = pBuf;
|
||||
this.revLen = revLen;
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
savePic(pBuf,revLen,path);
|
||||
}
|
||||
}
|
||||
|
||||
private void savePic(Pointer pBuf, int RevLen, String path) {
|
||||
System.out.println("download pic:"+path);
|
||||
File file = PathUtil.getFile(path);
|
||||
RandomAccessFile randomAccessFile = null;
|
||||
try {
|
||||
randomAccessFile = new RandomAccessFile(file, "rw");
|
||||
randomAccessFile.write(pBuf.getByteArray(0, RevLen));
|
||||
randomAccessFile.close();
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
if (randomAccessFile != null) {
|
||||
try {
|
||||
randomAccessFile.close();
|
||||
} catch (IOException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1,33 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware;
|
||||
|
||||
/**
|
||||
* @author 251823
|
||||
* @description 订阅云台元数据接口输入参数
|
||||
* @date 2021/02/26
|
||||
*/
|
||||
public class NET_IN_PTZ_STATUS_PROC extends NetSDKLib.SdkStructure{
|
||||
/**
|
||||
* dwSize;
|
||||
*/
|
||||
public int dwSize;
|
||||
/**
|
||||
* 云台通道
|
||||
*/
|
||||
public int nChannel;
|
||||
|
||||
/**
|
||||
* 状态回调函数
|
||||
*/
|
||||
public NetSDKLib.fPTZStatusProcCallBack cbPTZStatusProc;
|
||||
|
||||
/**
|
||||
* 用户数据
|
||||
*/
|
||||
public long dwUser;
|
||||
|
||||
public NET_IN_PTZ_STATUS_PROC(){
|
||||
this.dwSize = this.size();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1,15 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware;
|
||||
/**
|
||||
* @author 251823
|
||||
* @description 订阅云台元数据接口输输出参数
|
||||
* @date 2021/02/26
|
||||
*/
|
||||
public class NET_OUT_PTZ_STATUS_PROC extends NetSDKLib.SdkStructure{
|
||||
/**
|
||||
* dwSize;
|
||||
*/
|
||||
public int dwSize;
|
||||
public NET_OUT_PTZ_STATUS_PROC(){
|
||||
this.dwSize = this.size();
|
||||
}
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@Slf4j
|
||||
public class StopDownLoadThread extends Thread {
|
||||
|
||||
private NetSDKLib.LLong lPlayHandle;
|
||||
|
||||
public StopDownLoadThread(NetSDKLib.LLong lPlayHandle){
|
||||
this.lPlayHandle = lPlayHandle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
log.info("stop download:{}",lPlayHandle.longValue());
|
||||
JoywareLoginModuleImpl.netsdk.CLIENT_StopDownload(lPlayHandle);
|
||||
}
|
||||
}
|
||||
@ -1,99 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware;
|
||||
|
||||
import com.sun.jna.Platform;
|
||||
|
||||
public class Utils {
|
||||
public Utils() {
|
||||
|
||||
}
|
||||
|
||||
// 获取操作平台信息
|
||||
public static String getOsPrefix() {
|
||||
String arch = System.getProperty("os.arch").toLowerCase();
|
||||
final String name = System.getProperty("os.name");
|
||||
String osPrefix;
|
||||
switch(Platform.getOSType()) {
|
||||
case Platform.WINDOWS: {
|
||||
if ("i386".equals(arch))
|
||||
arch = "x86";
|
||||
osPrefix = "win32-" + arch;
|
||||
}
|
||||
break;
|
||||
case Platform.LINUX: {
|
||||
if ("x86".equals(arch)) {
|
||||
arch = "i386";
|
||||
}
|
||||
else if ("x86_64".equals(arch)) {
|
||||
arch = "amd64";
|
||||
}
|
||||
osPrefix = "linux-" + arch;
|
||||
}
|
||||
break;
|
||||
default: {
|
||||
osPrefix = name.toLowerCase();
|
||||
if ("x86".equals(arch)) {
|
||||
arch = "i386";
|
||||
}
|
||||
if ("x86_64".equals(arch)) {
|
||||
arch = "amd64";
|
||||
}
|
||||
int space = osPrefix.indexOf(" ");
|
||||
if (space != -1) {
|
||||
osPrefix = osPrefix.substring(0, space);
|
||||
}
|
||||
osPrefix += "-" + arch;
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return osPrefix;
|
||||
}
|
||||
|
||||
public static String getOsName() {
|
||||
String osName = "";
|
||||
String osPrefix = getOsPrefix();
|
||||
if(osPrefix.toLowerCase().startsWith("win32-x86")
|
||||
||osPrefix.toLowerCase().startsWith("win32-amd64") ) {
|
||||
osName = "win";
|
||||
} else if(osPrefix.toLowerCase().startsWith("linux-i386")
|
||||
|| osPrefix.toLowerCase().startsWith("linux-amd64")) {
|
||||
osName = "linux";
|
||||
}
|
||||
|
||||
return osName;
|
||||
}
|
||||
|
||||
// 获取加载库
|
||||
public static String getLoadLibrary(String library) {
|
||||
if (isChecking()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
String loadLibrary = "";
|
||||
String osPrefix = getOsPrefix();
|
||||
if(osPrefix.toLowerCase().startsWith("win32-x86")) {
|
||||
loadLibrary = "./libs/win32/";
|
||||
} else if(osPrefix.toLowerCase().startsWith("win32-amd64") ) {
|
||||
loadLibrary = "./libs/win64/";
|
||||
} else if(osPrefix.toLowerCase().startsWith("linux-i386")) {
|
||||
loadLibrary = "";
|
||||
}else if(osPrefix.toLowerCase().startsWith("linux-amd64")) {
|
||||
loadLibrary = "";
|
||||
}
|
||||
|
||||
System.out.printf("[Load %s Path : %s]\n", library, loadLibrary + library);
|
||||
return loadLibrary + library;
|
||||
}
|
||||
|
||||
private static boolean checking = false;
|
||||
public static void setChecking() {
|
||||
checking = true;
|
||||
}
|
||||
public static void clearChecking() {
|
||||
checking = false;
|
||||
}
|
||||
public static boolean isChecking() {
|
||||
return checking;
|
||||
}
|
||||
}
|
||||
@ -1,553 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
// Base64解码 使用1.8版本源码 鉴于1.8部分特性1.6版本使用不到 故只保留能使用到的代码 其余删除
|
||||
package com.zhehekeji.web.lib.joyware.common;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* This class consists exclusively of static methods for obtaining
|
||||
* encoders and decoders for the Base64 encoding scheme. The
|
||||
* implementation of this class supports the following types of Base64
|
||||
* as specified in
|
||||
* <a href="http://www.ietf.org/rfc/rfc4648.txt">RFC 4648</a> and
|
||||
*
|
||||
* <ul>
|
||||
* <li><a name="basic"><b>Basic</b></a>
|
||||
* <p> Uses "The Base64 Alphabet" as specified in Table 1 of
|
||||
* RFC 4648 and RFC 2045 for encoding and decoding operation.
|
||||
* The encoder does not add any line feed (line separator)
|
||||
* character. The decoder rejects data that contains characters
|
||||
* outside the base64 alphabet.</p></li>
|
||||
*
|
||||
* <p> Unless otherwise noted, passing a {@code null} argument to a
|
||||
* method of this class will cause a {@link NullPointerException
|
||||
* NullPointerException} to be thrown.
|
||||
*
|
||||
* @author Xueming Shen
|
||||
* @since 1.8
|
||||
*/
|
||||
|
||||
public class Base64 {
|
||||
|
||||
private Base64() {}
|
||||
|
||||
/**
|
||||
* Returns a {@link Encoder} that encodes using the
|
||||
* <a href="#basic">Basic</a> type base64 encoding scheme.
|
||||
*
|
||||
* @return A Base64 encoder.
|
||||
*/
|
||||
public static Encoder getEncoder() {
|
||||
return Encoder.RFC4648;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class implements an encoder for encoding byte data using
|
||||
* the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.
|
||||
*
|
||||
* <p> Instances of {@link Encoder} class are safe for use by
|
||||
* multiple concurrent threads.
|
||||
*
|
||||
* <p> Unless otherwise noted, passing a {@code null} argument to
|
||||
* a method of this class will cause a
|
||||
* {@link NullPointerException NullPointerException} to
|
||||
* be thrown.
|
||||
*
|
||||
* @see Decoder
|
||||
* @since 1.8
|
||||
*/
|
||||
public static class Encoder {
|
||||
|
||||
private final byte[] newline;
|
||||
private final int linemax;
|
||||
private final boolean isURL;
|
||||
private final boolean doPadding;
|
||||
|
||||
private Encoder(boolean isURL, byte[] newline, int linemax, boolean doPadding) {
|
||||
this.isURL = isURL;
|
||||
this.newline = newline;
|
||||
this.linemax = linemax;
|
||||
this.doPadding = doPadding;
|
||||
}
|
||||
|
||||
/**
|
||||
* This array is a lookup table that translates 6-bit positive integer
|
||||
* index values into their "Base64 Alphabet" equivalents as specified
|
||||
* in "Table 1: The Base64 Alphabet" of RFC 2045 (and RFC 4648).
|
||||
*/
|
||||
private static final char[] toBase64 = {
|
||||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
|
||||
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
|
||||
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
|
||||
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
|
||||
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'
|
||||
};
|
||||
|
||||
/**
|
||||
* It's the lookup table for "URL and Filename safe Base64" as specified
|
||||
* in Table 2 of the RFC 4648, with the '+' and '/' changed to '-' and
|
||||
* '_'. This table is used when BASE64_URL is specified.
|
||||
*/
|
||||
private static final char[] toBase64URL = {
|
||||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
|
||||
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
|
||||
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
|
||||
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
|
||||
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '_'
|
||||
};
|
||||
|
||||
static final Encoder RFC4648 = new Encoder(false, null, -1, true);
|
||||
|
||||
private final int outLength(int srclen) {
|
||||
int len = 0;
|
||||
if (doPadding) {
|
||||
len = 4 * ((srclen + 2) / 3);
|
||||
} else {
|
||||
int n = srclen % 3;
|
||||
len = 4 * (srclen / 3) + (n == 0 ? 0 : n + 1);
|
||||
}
|
||||
if (linemax > 0) // line separators
|
||||
len += (len - 1) / linemax * newline.length;
|
||||
return len;
|
||||
}
|
||||
|
||||
/**
|
||||
* Encodes all bytes from the specified byte array into a newly-allocated
|
||||
* byte array using the {@link Base64} encoding scheme. The returned byte
|
||||
* array is of the length of the resulting bytes.
|
||||
*
|
||||
* @param src
|
||||
* the byte array to encode
|
||||
* @return A newly-allocated byte array containing the resulting
|
||||
* encoded bytes.
|
||||
*/
|
||||
public byte[] encode(byte[] src) {
|
||||
int len = outLength(src.length); // dst array size
|
||||
byte[] dst = new byte[len];
|
||||
int ret = encode0(src, 0, src.length, dst);
|
||||
if (ret != dst.length)
|
||||
return Arrays.copyOf(dst, ret);
|
||||
return dst;
|
||||
}
|
||||
|
||||
/**
|
||||
* Encodes all bytes from the specified byte array using the
|
||||
* {@link Base64} encoding scheme, writing the resulting bytes to the
|
||||
* given output byte array, starting at offset 0.
|
||||
*
|
||||
* <p> It is the responsibility of the invoker of this method to make
|
||||
* sure the output byte array {@code dst} has enough space for encoding
|
||||
* all bytes from the input byte array. No bytes will be written to the
|
||||
* output byte array if the output byte array is not big enough.
|
||||
*
|
||||
* @param src
|
||||
* the byte array to encode
|
||||
* @param dst
|
||||
* the output byte array
|
||||
* @return The number of bytes written to the output byte array
|
||||
*
|
||||
* @throws IllegalArgumentException if {@code dst} does not have enough
|
||||
* space for encoding all input bytes.
|
||||
*/
|
||||
public int encode(byte[] src, byte[] dst) {
|
||||
int len = outLength(src.length); // dst array size
|
||||
if (dst.length < len)
|
||||
throw new IllegalArgumentException(
|
||||
"Output byte array is too small for encoding all input bytes");
|
||||
return encode0(src, 0, src.length, dst);
|
||||
}
|
||||
|
||||
/**
|
||||
* Encodes the specified byte array into a String using the {@link Base64}
|
||||
* encoding scheme.
|
||||
*
|
||||
* <p> In other words, an invocation of this method has exactly the same
|
||||
* effect as invoking
|
||||
* {@code new String(encode(src), StandardCharsets.ISO_8859_1)}.
|
||||
*
|
||||
* @param src
|
||||
* the byte array to encode
|
||||
* @return A String containing the resulting Base64 encoded characters
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public String encodeToString(byte[] src) {
|
||||
byte[] encoded = encode(src);
|
||||
return new String(encoded, 0, 0, encoded.length);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an encoder instance that encodes equivalently to this one,
|
||||
* but without adding any padding character at the end of the encoded
|
||||
* byte data.
|
||||
*
|
||||
* <p> The encoding scheme of this encoder instance is unaffected by
|
||||
* this invocation. The returned encoder instance should be used for
|
||||
* non-padding encoding operation.
|
||||
*
|
||||
* @return an equivalent encoder that encodes without adding any
|
||||
* padding character at the end
|
||||
*/
|
||||
public Encoder withoutPadding() {
|
||||
if (!doPadding)
|
||||
return this;
|
||||
return new Encoder(isURL, newline, linemax, false);
|
||||
}
|
||||
|
||||
private int encode0(byte[] src, int off, int end, byte[] dst) {
|
||||
char[] base64 = isURL ? toBase64URL : toBase64;
|
||||
int sp = off;
|
||||
int slen = (end - off) / 3 * 3;
|
||||
int sl = off + slen;
|
||||
if (linemax > 0 && slen > linemax / 4 * 3)
|
||||
slen = linemax / 4 * 3;
|
||||
int dp = 0;
|
||||
while (sp < sl) {
|
||||
int sl0 = Math.min(sp + slen, sl);
|
||||
for (int sp0 = sp, dp0 = dp ; sp0 < sl0; ) {
|
||||
int bits = (src[sp0++] & 0xff) << 16 |
|
||||
(src[sp0++] & 0xff) << 8 |
|
||||
(src[sp0++] & 0xff);
|
||||
dst[dp0++] = (byte)base64[(bits >>> 18) & 0x3f];
|
||||
dst[dp0++] = (byte)base64[(bits >>> 12) & 0x3f];
|
||||
dst[dp0++] = (byte)base64[(bits >>> 6) & 0x3f];
|
||||
dst[dp0++] = (byte)base64[bits & 0x3f];
|
||||
}
|
||||
int dlen = (sl0 - sp) / 3 * 4;
|
||||
dp += dlen;
|
||||
sp = sl0;
|
||||
if (dlen == linemax && sp < end) {
|
||||
for (byte b : newline){
|
||||
dst[dp++] = b;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sp < end) { // 1 or 2 leftover bytes
|
||||
int b0 = src[sp++] & 0xff;
|
||||
dst[dp++] = (byte)base64[b0 >> 2];
|
||||
if (sp == end) {
|
||||
dst[dp++] = (byte)base64[(b0 << 4) & 0x3f];
|
||||
if (doPadding) {
|
||||
dst[dp++] = '=';
|
||||
dst[dp++] = '=';
|
||||
}
|
||||
} else {
|
||||
int b1 = src[sp++] & 0xff;
|
||||
dst[dp++] = (byte)base64[(b0 << 4) & 0x3f | (b1 >> 4)];
|
||||
dst[dp++] = (byte)base64[(b1 << 2) & 0x3f];
|
||||
if (doPadding) {
|
||||
dst[dp++] = '=';
|
||||
}
|
||||
}
|
||||
}
|
||||
return dp;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a {@link Decoder} that decodes using the
|
||||
* <a href="#basic">Basic</a> type base64 encoding scheme.
|
||||
*
|
||||
* @return A Base64 decoder.
|
||||
*/
|
||||
public static Decoder getDecoder() {
|
||||
return Decoder.RFC4648;
|
||||
}
|
||||
/**
|
||||
* This class implements a decoder for decoding byte data using the
|
||||
* Base64 encoding scheme as specified in RFC 4648 and RFC 2045.
|
||||
*
|
||||
* <p> The Base64 padding character {@code '='} is accepted and
|
||||
* interpreted as the end of the encoded byte data, but is not
|
||||
* required. So if the final unit of the encoded byte data only has
|
||||
* two or three Base64 characters (without the corresponding padding
|
||||
* character(s) padded), they are decoded as if followed by padding
|
||||
* character(s). If there is a padding character present in the
|
||||
* final unit, the correct number of padding character(s) must be
|
||||
* present, otherwise {@code IllegalArgumentException} (
|
||||
* {@code IOException} when reading from a Base64 stream) is thrown
|
||||
* during decoding.
|
||||
*
|
||||
* <p> Instances of {@link Decoder} class are safe for use by
|
||||
* multiple concurrent threads.
|
||||
*
|
||||
* <p> Unless otherwise noted, passing a {@code null} argument to
|
||||
* a method of this class will cause a
|
||||
* {@link NullPointerException NullPointerException} to
|
||||
* be thrown.
|
||||
*
|
||||
* @see Encoder
|
||||
* @since 1.8
|
||||
*/
|
||||
public static class Decoder {
|
||||
|
||||
private final boolean isURL;
|
||||
private final boolean isMIME;
|
||||
|
||||
private Decoder(boolean isURL, boolean isMIME) {
|
||||
this.isURL = isURL;
|
||||
this.isMIME = isMIME;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup table for decoding unicode characters drawn from the
|
||||
* "Base64 Alphabet" (as specified in Table 1 of RFC 2045) into
|
||||
* their 6-bit positive integer equivalents. Characters that
|
||||
* are not in the Base64 alphabet but fall within the bounds of
|
||||
* the array are encoded to -1.
|
||||
*
|
||||
*/
|
||||
private static final int[] fromBase64 = new int[256];
|
||||
static {
|
||||
Arrays.fill(fromBase64, -1);
|
||||
for (int i = 0; i < Encoder.toBase64.length; i++)
|
||||
fromBase64[Encoder.toBase64[i]] = i;
|
||||
fromBase64['='] = -2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup table for decoding "URL and Filename safe Base64 Alphabet"
|
||||
* as specified in Table2 of the RFC 4648.
|
||||
*/
|
||||
private static final int[] fromBase64URL = new int[256];
|
||||
|
||||
static {
|
||||
Arrays.fill(fromBase64URL, -1);
|
||||
for (int i = 0; i < Encoder.toBase64URL.length; i++)
|
||||
fromBase64URL[Encoder.toBase64URL[i]] = i;
|
||||
fromBase64URL['='] = -2;
|
||||
}
|
||||
|
||||
static final Decoder RFC4648 = new Decoder(false, false);
|
||||
static final Decoder RFC4648_URLSAFE = new Decoder(true, false);
|
||||
static final Decoder RFC2045 = new Decoder(false, true);
|
||||
|
||||
/**
|
||||
* Decodes all bytes from the input byte array using the {@link Base64}
|
||||
* encoding scheme, writing the results into a newly-allocated output
|
||||
* byte array. The returned byte array is of the length of the resulting
|
||||
* bytes.
|
||||
*
|
||||
* @param src
|
||||
* the byte array to decode
|
||||
*
|
||||
* @return A newly-allocated byte array containing the decoded bytes.
|
||||
*
|
||||
* @throws IllegalArgumentException
|
||||
* if {@code src} is not in valid Base64 scheme
|
||||
*/
|
||||
public byte[] decode(byte[] src) {
|
||||
byte[] dst = new byte[outLength(src, 0, src.length)];
|
||||
int ret = decode0(src, 0, src.length, dst);
|
||||
if (ret != dst.length) {
|
||||
dst = Arrays.copyOf(dst, ret);
|
||||
}
|
||||
return dst;
|
||||
}
|
||||
|
||||
public byte[] decode(String src) {
|
||||
return decode(src.getBytes(Charset.forName("ISO-8859-1")));
|
||||
}
|
||||
|
||||
/**
|
||||
* Decodes all bytes from the input byte array using the {@link Base64}
|
||||
* encoding scheme, writing the results into the given output byte array,
|
||||
* starting at offset 0.
|
||||
*
|
||||
* <p> It is the responsibility of the invoker of this method to make
|
||||
* sure the output byte array {@code dst} has enough space for decoding
|
||||
* all bytes from the input byte array. No bytes will be be written to
|
||||
* the output byte array if the output byte array is not big enough.
|
||||
*
|
||||
* <p> If the input byte array is not in valid Base64 encoding scheme
|
||||
* then some bytes may have been written to the output byte array before
|
||||
* IllegalargumentException is thrown.
|
||||
*
|
||||
* @param src
|
||||
* the byte array to decode
|
||||
* @param dst
|
||||
* the output byte array
|
||||
*
|
||||
* @return The number of bytes written to the output byte array
|
||||
*
|
||||
* @throws IllegalArgumentException
|
||||
* if {@code src} is not in valid Base64 scheme, or {@code dst}
|
||||
* does not have enough space for decoding all input bytes.
|
||||
*/
|
||||
public int decode(byte[] src, byte[] dst) {
|
||||
int len = outLength(src, 0, src.length);
|
||||
if (dst.length < len)
|
||||
throw new IllegalArgumentException(
|
||||
"Output byte array is too small for decoding all input bytes");
|
||||
return decode0(src, 0, src.length, dst);
|
||||
}
|
||||
|
||||
/**
|
||||
* Decodes all bytes from the input byte buffer using the {@link Base64}
|
||||
* encoding scheme, writing the results into a newly-allocated ByteBuffer.
|
||||
*
|
||||
* <p> Upon return, the source buffer's position will be updated to
|
||||
* its limit; its limit will not have been changed. The returned
|
||||
* output buffer's position will be zero and its limit will be the
|
||||
* number of resulting decoded bytes
|
||||
*
|
||||
* <p> {@code IllegalArgumentException} is thrown if the input buffer
|
||||
* is not in valid Base64 encoding scheme. The position of the input
|
||||
* buffer will not be advanced in this case.
|
||||
*
|
||||
* @param buffer
|
||||
* the ByteBuffer to decode
|
||||
*
|
||||
* @return A newly-allocated byte buffer containing the decoded bytes
|
||||
*
|
||||
* @throws IllegalArgumentException
|
||||
* if {@code src} is not in valid Base64 scheme.
|
||||
*/
|
||||
public ByteBuffer decode(ByteBuffer buffer) {
|
||||
int pos0 = buffer.position();
|
||||
try {
|
||||
byte[] src;
|
||||
int sp, sl;
|
||||
if (buffer.hasArray()) {
|
||||
src = buffer.array();
|
||||
sp = buffer.arrayOffset() + buffer.position();
|
||||
sl = buffer.arrayOffset() + buffer.limit();
|
||||
buffer.position(buffer.limit());
|
||||
} else {
|
||||
src = new byte[buffer.remaining()];
|
||||
buffer.get(src);
|
||||
sp = 0;
|
||||
sl = src.length;
|
||||
}
|
||||
byte[] dst = new byte[outLength(src, sp, sl)];
|
||||
return ByteBuffer.wrap(dst, 0, decode0(src, sp, sl, dst));
|
||||
} catch (IllegalArgumentException iae) {
|
||||
buffer.position(pos0);
|
||||
throw iae;
|
||||
}
|
||||
}
|
||||
|
||||
private int outLength(byte[] src, int sp, int sl) {
|
||||
int[] base64 = isURL ? fromBase64URL : fromBase64;
|
||||
int paddings = 0;
|
||||
int len = sl - sp;
|
||||
if (len == 0)
|
||||
return 0;
|
||||
if (len < 2) {
|
||||
if (isMIME && base64[0] == -1)
|
||||
return 0;
|
||||
throw new IllegalArgumentException(
|
||||
"Input byte[] should at least have 2 bytes for base64 bytes");
|
||||
}
|
||||
if (isMIME) {
|
||||
// scan all bytes to fill out all non-alphabet. a performance
|
||||
// trade-off of pre-scan or Arrays.copyOf
|
||||
int n = 0;
|
||||
while (sp < sl) {
|
||||
int b = src[sp++] & 0xff;
|
||||
if (b == '=') {
|
||||
len -= (sl - sp + 1);
|
||||
break;
|
||||
}
|
||||
if ((b = base64[b]) == -1)
|
||||
n++;
|
||||
}
|
||||
len -= n;
|
||||
} else {
|
||||
if (src[sl - 1] == '=') {
|
||||
paddings++;
|
||||
if (src[sl - 2] == '=')
|
||||
paddings++;
|
||||
}
|
||||
}
|
||||
if (paddings == 0 && (len & 0x3) != 0)
|
||||
paddings = 4 - (len & 0x3);
|
||||
return 3 * ((len + 3) / 4) - paddings;
|
||||
}
|
||||
|
||||
private int decode0(byte[] src, int sp, int sl, byte[] dst) {
|
||||
int[] base64 = isURL ? fromBase64URL : fromBase64;
|
||||
int dp = 0;
|
||||
int bits = 0;
|
||||
int shiftto = 18; // pos of first byte of 4-byte atom
|
||||
while (sp < sl) {
|
||||
int b = src[sp++] & 0xff;
|
||||
if ((b = base64[b]) < 0) {
|
||||
if (b == -2) { // padding byte '='
|
||||
// = shiftto==18 unnecessary padding
|
||||
// x= shiftto==12 a dangling single x
|
||||
// x to be handled together with non-padding case
|
||||
// xx= shiftto==6&&sp==sl missing last =
|
||||
// xx=y shiftto==6 last is not =
|
||||
if (shiftto == 6 && (sp == sl || src[sp++] != '=') ||
|
||||
shiftto == 18) {
|
||||
throw new IllegalArgumentException(
|
||||
"Input byte array has wrong 4-byte ending unit");
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (isMIME) // skip if for rfc2045
|
||||
continue;
|
||||
else
|
||||
throw new IllegalArgumentException(
|
||||
"Illegal base64 character " +
|
||||
Integer.toString(src[sp - 1], 16));
|
||||
}
|
||||
bits |= (b << shiftto);
|
||||
shiftto -= 6;
|
||||
if (shiftto < 0) {
|
||||
dst[dp++] = (byte)(bits >> 16);
|
||||
dst[dp++] = (byte)(bits >> 8);
|
||||
dst[dp++] = (byte)(bits);
|
||||
shiftto = 18;
|
||||
bits = 0;
|
||||
}
|
||||
}
|
||||
// reached end of byte array or hit padding '=' characters.
|
||||
if (shiftto == 6) {
|
||||
dst[dp++] = (byte)(bits >> 16);
|
||||
} else if (shiftto == 0) {
|
||||
dst[dp++] = (byte)(bits >> 16);
|
||||
dst[dp++] = (byte)(bits >> 8);
|
||||
} else if (shiftto == 12) {
|
||||
// dangling single "x", incorrectly encoded.
|
||||
throw new IllegalArgumentException(
|
||||
"Last unit does not have enough valid bits");
|
||||
}
|
||||
// anything left is invalid, if is not MIME.
|
||||
// if MIME, ignore all non-base64 character
|
||||
while (sp < sl) {
|
||||
if (isMIME && base64[src[sp++]] < 0)
|
||||
continue;
|
||||
throw new IllegalArgumentException(
|
||||
"Input byte array has incorrect ending byte at " + sp);
|
||||
}
|
||||
return dp;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,16 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.common;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.border.Border;
|
||||
|
||||
/*
|
||||
* 边框设置
|
||||
*/
|
||||
public class BorderEx {
|
||||
public static void set(JComponent object, String title, int width) {
|
||||
Border innerBorder = BorderFactory.createTitledBorder(title);
|
||||
Border outerBorder = BorderFactory.createEmptyBorder(width, width, width, width);
|
||||
object.setBorder(BorderFactory.createCompoundBorder(outerBorder, innerBorder));
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,93 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.common;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Scanner;
|
||||
import java.util.Vector;
|
||||
|
||||
public class CaseMenu {
|
||||
|
||||
public static class Item {
|
||||
private Object object;
|
||||
private String itemName;
|
||||
private String methodName;
|
||||
|
||||
public Item(Object object, String itemName, String methodName) {
|
||||
super();
|
||||
this.object = object;
|
||||
this.itemName = itemName;
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
public Object getObject() {
|
||||
return object;
|
||||
}
|
||||
|
||||
public String getItemName() {
|
||||
return itemName;
|
||||
}
|
||||
|
||||
public String getMethodName() {
|
||||
return methodName;
|
||||
}
|
||||
}
|
||||
|
||||
private Vector<Item> items;
|
||||
|
||||
public CaseMenu() {
|
||||
super();
|
||||
items = new Vector<Item>();
|
||||
}
|
||||
|
||||
public void addItem(Item item) {
|
||||
items.add(item);
|
||||
}
|
||||
|
||||
private void showItem() {
|
||||
final String format = "%2d\t%-20s\n";
|
||||
int index = 0;
|
||||
System.out.printf(format, index++, "exit App");
|
||||
for (Item item : items) {
|
||||
System.out.printf(format, index++, item.getItemName());
|
||||
}
|
||||
System.out.println("Please input a item index to invoke the method:");
|
||||
}
|
||||
|
||||
public void run() {
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
while(true) {
|
||||
showItem();
|
||||
try {
|
||||
int input = Integer.parseInt(scanner.nextLine());
|
||||
|
||||
if (input <= 0 ) {
|
||||
System.err.println("input <= 0 || scanner.nextLine() == null");
|
||||
// scanner.close();
|
||||
// System.exit(0);
|
||||
break;
|
||||
}
|
||||
|
||||
if (input < 0 || input > items.size()) {
|
||||
System.err.println("Input Error Item Index.");
|
||||
continue;
|
||||
}
|
||||
|
||||
Item item = items.get(input - 1);
|
||||
Class<?> itemClass = item.getObject().getClass();
|
||||
Method method = itemClass.getMethod(item.getMethodName());
|
||||
method.invoke(item.getObject());
|
||||
} catch (NoSuchElementException e) {
|
||||
// scanner.close();
|
||||
// System.exit(0);
|
||||
break;
|
||||
} catch (NumberFormatException e) {
|
||||
System.err.println("Input Error NumberFormat.");
|
||||
continue;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
scanner.close();
|
||||
}
|
||||
}
|
||||
@ -1,869 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.common;
|
||||
|
||||
/**
|
||||
* 登录设备设备错误状态
|
||||
*/
|
||||
public class ErrorCode {
|
||||
|
||||
/**
|
||||
* 登录设备设备错误状态中英文
|
||||
* @param err 接口CLIENT_GetLastError返回, error code: (0x80000000|" + (LoginModule.netsdk.CLIENT_GetLastError() & 0x7fffffff) +")
|
||||
* @return
|
||||
*/
|
||||
public static String getErrorCode(int err) {
|
||||
String msg = "";
|
||||
switch(err) {
|
||||
case 0: // 0 没有错误
|
||||
msg = Res.string().getBundle().getString("NET_ERROR");
|
||||
break;
|
||||
case -1: // -1 未知错误
|
||||
msg = Res.string().getBundle().getString("NET_ERROR");
|
||||
break;
|
||||
case 1: // (0x80000000|1) Windows系统出错
|
||||
msg = Res.string().getBundle().getString("NET_SYSTEM_ERROR");
|
||||
break;
|
||||
case 2: // (0x80000000|2) 网络错误,可能是因为网络超时
|
||||
msg = Res.string().getBundle().getString("NET_NETWORK_ERROR");
|
||||
break;
|
||||
case 3: // (0x80000000|3) 设备协议不匹配
|
||||
msg = Res.string().getBundle().getString("NET_DEV_VER_NOMATCH");
|
||||
break;
|
||||
case 4: // (0x80000000|4) 句柄无效
|
||||
msg = Res.string().getBundle().getString("NET_INVALID_HANDLE");
|
||||
break;
|
||||
case 5: // (0x80000000|5) 打开通道失败
|
||||
msg = Res.string().getBundle().getString("NET_OPEN_CHANNEL_ERROR");
|
||||
break;
|
||||
case 6: // (0x80000000|6) 关闭通道失败
|
||||
msg = Res.string().getBundle().getString("NET_CLOSE_CHANNEL_ERROR");
|
||||
break;
|
||||
case 7: // (0x80000000|7) 用户参数不合法
|
||||
msg = Res.string().getBundle().getString("NET_ILLEGAL_PARAM");
|
||||
break;
|
||||
case 8: // (0x80000000|8) SDK初始化出错
|
||||
msg = Res.string().getBundle().getString("NET_SDK_INIT_ERROR");
|
||||
break;
|
||||
case 9: // (0x80000000|9) SDK清理出错
|
||||
msg = Res.string().getBundle().getString("NET_SDK_UNINIT_ERROR");
|
||||
break;
|
||||
case 10: // (0x80000000|10) 申请render资源出错
|
||||
msg = Res.string().getBundle().getString("NET_RENDER_OPEN_ERROR");
|
||||
break;
|
||||
case 11: // (0x80000000|11) 打开解码库出错
|
||||
msg = Res.string().getBundle().getString("NET_DEC_OPEN_ERROR");
|
||||
break;
|
||||
case 12: // (0x80000000|12) 关闭解码库出错
|
||||
msg = Res.string().getBundle().getString("NET_DEC_CLOSE_ERROR");
|
||||
break;
|
||||
case 13: // (0x80000000|13) 多画面预览中检测到通道数为0
|
||||
msg = Res.string().getBundle().getString("NET_MULTIPLAY_NOCHANNEL");
|
||||
break;
|
||||
case 14: // (0x80000000|14) 录音库初始化失败
|
||||
msg = Res.string().getBundle().getString("NET_TALK_INIT_ERROR");
|
||||
break;
|
||||
case 15: // (0x80000000|15) 录音库未经初始化
|
||||
msg = Res.string().getBundle().getString("NET_TALK_NOT_INIT");
|
||||
break;
|
||||
case 16: // (0x80000000|16) 发送音频数据出错
|
||||
msg = Res.string().getBundle().getString("NET_TALK_SENDDATA_ERROR");
|
||||
break;
|
||||
case 17: // (0x80000000|17) 实时数据已经处于保存状态
|
||||
msg = Res.string().getBundle().getString("NET_REAL_ALREADY_SAVING");
|
||||
break;
|
||||
case 18: // (0x80000000|18) 未保存实时数据
|
||||
msg = Res.string().getBundle().getString("NET_NOT_SAVING");
|
||||
break;
|
||||
case 19: // (0x80000000|19) 打开文件出错
|
||||
msg = Res.string().getBundle().getString("NET_OPEN_FILE_ERROR");
|
||||
break;
|
||||
case 20: // (0x80000000|20) 启动云台控制定时器失败
|
||||
msg = Res.string().getBundle().getString("NET_PTZ_SET_TIMER_ERROR");
|
||||
break;
|
||||
case 21: // (0x80000000|21) 对返回数据的校验出错
|
||||
msg = Res.string().getBundle().getString("NET_RETURN_DATA_ERROR");
|
||||
break;
|
||||
case 22: // (0x80000000|22) 没有足够的缓存
|
||||
msg = Res.string().getBundle().getString("NET_INSUFFICIENT_BUFFER");
|
||||
break;
|
||||
case 23: // (0x80000000|23) 当前SDK未支持该功能
|
||||
msg = Res.string().getBundle().getString("NET_NOT_SUPPORTED");
|
||||
break;
|
||||
case 24: // (0x80000000|24) 查询不到录像
|
||||
msg = Res.string().getBundle().getString("NET_NO_RECORD_FOUND");
|
||||
break;
|
||||
case 25: // (0x80000000|25) 无操作权限
|
||||
msg = Res.string().getBundle().getString("NET_NOT_AUTHORIZED");
|
||||
break;
|
||||
case 26: // (0x80000000|26) 暂时无法执行
|
||||
msg = Res.string().getBundle().getString("NET_NOT_NOW");
|
||||
break;
|
||||
// case NetSDKLib.NET_NO_TALK_CHANNEL: // (0x80000000|27) 未发现对讲通道
|
||||
// msg = Res.string().getBundle().getString("NET_NO_TALK_CHANNEL");
|
||||
// break;
|
||||
// case NetSDKLib.NET_NO_AUDIO: // (0x80000000|28) 未发现音频
|
||||
// msg = Res.string().getBundle().getString("NET_NO_AUDIO");
|
||||
// break;
|
||||
// case NetSDKLib.NET_NO_INIT: // (0x80000000|29) 网络SDK未经初始化
|
||||
// msg = Res.string().getBundle().getString("NET_NO_INIT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_DOWNLOAD_END: // (0x80000000|30) 下载已结束
|
||||
// msg = Res.string().getBundle().getString("NET_DOWNLOAD_END");
|
||||
// break;
|
||||
// case NetSDKLib.NET_EMPTY_LIST: // (0x80000000|31) 查询结果为空
|
||||
// msg = Res.string().getBundle().getString("NET_EMPTY_LIST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_SYSATTR: // (0x80000000|32) 获取系统属性配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SYSATTR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_SERIAL: // (0x80000000|33) 获取序列号失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SERIAL");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_GENERAL: // (0x80000000|34) 获取常规属性失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_GENERAL");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_DSPCAP: // (0x80000000|35) 获取DSP能力描述失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DSPCAP");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_NETCFG: // (0x80000000|36) 获取网络配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_NETCFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_CHANNAME: // (0x80000000|37) 获取通道名称失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_CHANNAME");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_VIDEO: // (0x80000000|38) 获取视频属性失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEO");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_RECORD: // (0x80000000|39) 获取录象配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_RECORD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_PRONAME: // (0x80000000|40) 获取解码器协议名称失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_PRONAME");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_FUNCNAME: // (0x80000000|41) 获取232串口功能名称失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_FUNCNAME");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_485DECODER: // (0x80000000|42) 获取解码器属性失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_485DECODER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_232COM: // (0x80000000|43) 获取232串口配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_232COM");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_ALARMIN: // (0x80000000|44) 获取外部报警输入配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ALARMIN");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_ALARMDET: // (0x80000000|45) 获取动态检测报警失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ALARMDET");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_SYSTIME: // (0x80000000|46) 获取设备时间失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SYSTIME");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_PREVIEW: // (0x80000000|47) 获取预览参数失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_PREVIEW");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_AUTOMT: // (0x80000000|48) 获取自动维护配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_AUTOMT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_VIDEOMTRX: // (0x80000000|49) 获取视频矩阵配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEOMTRX");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_COVER: // (0x80000000|50) 获取区域遮挡配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_COVER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_WATERMAKE: // (0x80000000|51) 获取图象水印配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WATERMAKE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_MULTICAST: // (0x80000000|52) 获取配置失败位置:组播端口按通道配置
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MULTICAST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_GENERAL: // (0x80000000|55) 修改常规属性失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_GENERAL");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_NETCFG: // (0x80000000|56) 改网络配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_NETCFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_CHANNAME: // (0x80000000|57) 修改通道名称失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_CHANNAME");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_VIDEO: // (0x80000000|58) 修改视频属性失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEO");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_RECORD: // (0x80000000|59) 修改录象配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_RECORD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_485DECODER: // (0x80000000|60) 修改解码器属性失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_485DECODER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_232COM: // (0x80000000|61) 修改232串口配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_232COM");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_ALARMIN: // (0x80000000|62) 修改外部输入报警配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ALARMIN");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_ALARMDET: // (0x80000000|63) 修改动态检测报警配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ALARMDET");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_SYSTIME: // (0x80000000|64) 修改设备时间失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SYSTIME");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_PREVIEW: // (0x80000000|65) 修改预览参数失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_PREVIEW");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_AUTOMT: // (0x80000000|66) 修改自动维护配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_AUTOMT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_VIDEOMTRX: // (0x80000000|67) 修改视频矩阵配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEOMTRX");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_COVER: // (0x80000000|68) 修改区域遮挡配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_COVER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_WATERMAKE: // (0x80000000|69) 修改图象水印配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WATERMAKE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_WLAN: // (0x80000000|70) 修改无线网络信息失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WLAN");
|
||||
// break;
|
||||
case 71: // (0x80000000|71) 选择无线网络设备失败
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_WLANDEV");
|
||||
break;
|
||||
case 72: // (0x80000000|72) 修改主动注册参数配置失败
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_REGISTER");
|
||||
break;
|
||||
case 73: // (0x80000000|73) 修改摄像头属性配置失败
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_CAMERA");
|
||||
break;
|
||||
case 74: // (0x80000000|74) 修改红外报警配置失败
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_INFRARED");
|
||||
break;
|
||||
case 75: // (0x80000000|75) 修改音频报警配置失败
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SOUNDALARM");
|
||||
break;
|
||||
case 76: // (0x80000000|76) 修改存储位置配置失败
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_STORAGE");
|
||||
break;
|
||||
case 77: // (0x80000000|77) 音频编码接口没有成功初始化
|
||||
msg = Res.string().getBundle().getString("NET_AUDIOENCODE_NOTINIT");
|
||||
break;
|
||||
case 78: // (0x80000000|78) 数据过长
|
||||
msg = Res.string().getBundle().getString("NET_DATA_TOOLONGH");
|
||||
break;
|
||||
case 79: // (0x80000000|79) 备不支持该操作
|
||||
msg = Res.string().getBundle().getString("NET_UNSUPPORTED");
|
||||
break;
|
||||
case 80: // (0x80000000|80) 设备资源不足
|
||||
msg = Res.string().getBundle().getString("NET_DEVICE_BUSY");
|
||||
break;
|
||||
case 81: // (0x80000000|81) 服务器已经启动
|
||||
msg = Res.string().getBundle().getString("NET_SERVER_STARTED");
|
||||
break;
|
||||
case 82: // (0x80000000|82) 服务器尚未成功启动
|
||||
msg = Res.string().getBundle().getString("NET_SERVER_STOPPED");
|
||||
break;
|
||||
case 83: // (0x80000000|83) 输入序列号有误
|
||||
msg = Res.string().getBundle().getString("NET_LISTER_INCORRECT_SERIAL");
|
||||
break;
|
||||
case 84: // (0x80000000|84) 获取硬盘信息失败
|
||||
msg = Res.string().getBundle().getString("NET_QUERY_DISKINFO_FAILED");
|
||||
break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_SESSION: // (0x80000000|85) 获取连接Session信息
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SESSION");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_FLASEPWD_TRYTIME: // (0x80000000|86) 输入密码错误超过限制次数
|
||||
// msg = Res.string().getBundle().getString("NET_USER_FLASEPWD_TRYTIME");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_PASSWORD: // (0x80000000|100) 密码不正确
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_PASSWORD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_USER: // (0x80000000|101) 帐户不存在
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_USER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_TIMEOUT: // (0x80000000|102) 等待登录返回超时
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_TIMEOUT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_RELOGGIN: // (0x80000000|103) 帐号已登录
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_RELOGGIN");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_LOCKED: // (0x80000000|104) 帐号已被锁定
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_LOCKED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_BLACKLIST: // (0x80000000|105) 帐号已被列为黑名单
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_BLACKLIST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_BUSY: // (0x80000000|106) 资源不足,系统忙
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_BUSY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_CONNECT: // (0x80000000|107) 登录设备超时,请检查网络并重试
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_CONNECT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_NETWORK: // (0x80000000|108) 网络连接失败
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_NETWORK");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_SUBCONNECT: // (0x80000000|109) 登录设备成功,但无法创建视频通道,请检查网
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_SUBCONNECT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_MAXCONNECT: // (0x80000000|110) 超过最大连接数
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_MAXCONNECT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_PROTOCOL3_ONLY: // (0x80000000|111) 只支持3代协议
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_PROTOCOL3_ONLY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_UKEY_LOST: // (0x80000000|112) 插入U盾或U盾信息错误
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_UKEY_LOST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_NO_AUTHORIZED: // (0x80000000|113) 客户端IP地址没有登录权限
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_NO_AUTHORIZED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_USER_OR_PASSOWRD: // (0x80000000|117) 账号或密码错误
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_USER_OR_PASSOWRD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_LOGIN_ERROR_DEVICE_NOT_INIT: // (0x80000000|118) 设备尚未初始化,不能登录,请先初始化设备
|
||||
// msg = Res.string().getBundle().getString("NET_LOGIN_ERROR_DEVICE_NOT_INIT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_SOUND_ON_ERROR: // (0x80000000|120) Render库打开音频出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_SOUND_ON_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_SOUND_OFF_ERROR: // (0x80000000|121) Render库关闭音频出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_SOUND_OFF_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_SET_VOLUME_ERROR: // (0x80000000|122) Render库控制音量出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_SET_VOLUME_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_ADJUST_ERROR: // (0x80000000|123) Render库设置画面参数出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_ADJUST_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_PAUSE_ERROR: // (0x80000000|124) Render库暂停播放出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_PAUSE_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_SNAP_ERROR: // (0x80000000|125) Render库抓图出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_SNAP_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_STEP_ERROR: // (0x80000000|126) Render库步进出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_STEP_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_FRAMERATE_ERROR: // (0x80000000|127) Render库设置帧率出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_FRAMERATE_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_DISPLAYREGION_ERROR: // (0x80000000|128) Render库设置显示区域出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_DISPLAYREGION_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_GETOSDTIME_ERROR: // (0x80000000|129) Render库获取当前播放时间出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_GETOSDTIME_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_GROUP_EXIST: // (0x80000000|140) 组名已存在
|
||||
// msg = Res.string().getBundle().getString("NET_GROUP_EXIST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_GROUP_NOEXIST: // (0x80000000|141) 组名不存在
|
||||
// msg = Res.string().getBundle().getString("NET_GROUP_NOEXIST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_GROUP_RIGHTOVER: // (0x80000000|142) 组的权限超出权限列表范围
|
||||
// msg = Res.string().getBundle().getString("NET_GROUP_RIGHTOVER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_GROUP_HAVEUSER: // (0x80000000|143) 组下有用户,不能删除
|
||||
// msg = Res.string().getBundle().getString("NET_GROUP_HAVEUSER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_GROUP_RIGHTUSE: // (0x80000000|144) 组的某个权限被用户使用,不能出除
|
||||
// msg = Res.string().getBundle().getString("NET_GROUP_RIGHTUSE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_GROUP_SAMENAME: // (0x80000000|145) 新组名同已有组名重复
|
||||
// msg = Res.string().getBundle().getString("NET_GROUP_SAMENAME");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_EXIST: // (0x80000000|146) 用户已存在
|
||||
// msg = Res.string().getBundle().getString("NET_USER_EXIST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_NOEXIST: // (0x80000000|147) 用户不存在
|
||||
// msg = Res.string().getBundle().getString("NET_USER_NOEXIST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_RIGHTOVER: // (0x80000000|148) 用户权限超出组权限
|
||||
// msg = Res.string().getBundle().getString("NET_USER_RIGHTOVER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_PWD: // (0x80000000|149) 保留帐号,不容许修改密码
|
||||
// msg = Res.string().getBundle().getString("NET_USER_PWD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_FLASEPWD: // (0x80000000|150) 密码不正确
|
||||
// msg = Res.string().getBundle().getString("NET_USER_FLASEPWD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_NOMATCHING: // (0x80000000|151) 密码不匹配
|
||||
// msg = Res.string().getBundle().getString("NET_USER_NOMATCHING");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_INUSE: // (0x80000000|152) 账号正在使用中
|
||||
// msg = Res.string().getBundle().getString("NET_USER_INUSE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_ETHERNET: // (0x80000000|300) 获取网卡配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_ETHERNET");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_WLAN: // (0x80000000|301) 获取无线网络信息失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WLAN");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_WLANDEV: // (0x80000000|302) 获取无线网络设备失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_WLANDEV");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_REGISTER: // (0x80000000|303) 获取主动注册参数失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_REGISTER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_CAMERA: // (0x80000000|304) 获取摄像头属性失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_CAMERA");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_INFRARED: // (0x80000000|305) 获取红外报警配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_INFRARED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_SOUNDALARM: // (0x80000000|306) 获取音频报警配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SOUNDALARM");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_STORAGE: // (0x80000000|307) 获取存储位置配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_STORAGE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_MAIL: // (0x80000000|308) 获取邮件配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MAIL");
|
||||
// break;
|
||||
// case NetSDKLib.NET_CONFIG_DEVBUSY: // (0x80000000|309) 暂时无法设置
|
||||
// msg = Res.string().getBundle().getString("NET_CONFIG_DEVBUSY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_CONFIG_DATAILLEGAL: // (0x80000000|310) 配置数据不合法
|
||||
// msg = Res.string().getBundle().getString("NET_CONFIG_DATAILLEGAL");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_DST: // (0x80000000|311) 获取夏令时配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_DST: // (0x80000000|312) 设置夏令时配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_DST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_VIDEO_OSD: // (0x80000000|313) 获取视频OSD叠加配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEO_OSD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_VIDEO_OSD: // (0x80000000|314) 设置视频OSD叠加配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEO_OSD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_GPRSCDMA: // (0x80000000|315) 获取CDMA\GPRS网络配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_GPRSCDMA");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_GPRSCDMA: // (0x80000000|316) 设置CDMA\GPRS网络配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_GPRSCDMA");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_IPFILTER: // (0x80000000|317) 获取IP过滤配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_IPFILTER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_IPFILTER: // (0x80000000|318) 设置IP过滤配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_IPFILTER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_TALKENCODE: // (0x80000000|319) 获取语音对讲编码配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_TALKENCODE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_TALKENCODE: // (0x80000000|320) 设置语音对讲编码配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_TALKENCODE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_RECORDLEN: // (0x80000000|321) 获取录像打包长度配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_RECORDLEN");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_RECORDLEN: // (0x80000000|322) 设置录像打包长度配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_RECORDLEN");
|
||||
// break;
|
||||
// case NetSDKLib.NET_DONT_SUPPORT_SUBAREA: // (0x80000000|323) 不支持网络硬盘分区
|
||||
// msg = Res.string().getBundle().getString("NET_DONT_SUPPORT_SUBAREA");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_AUTOREGSERVER: // (0x80000000|324) 获取设备上主动注册服务器信息失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_AUTOREGSERVER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_CONTROL_AUTOREGISTER: // (0x80000000|325) 主动注册重定向注册错误
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_CONTROL_AUTOREGISTER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_DISCONNECT_AUTOREGISTER: // (0x80000000|326) 断开主动注册服务器错误
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_DISCONNECT_AUTOREGISTER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_MMS: // (0x80000000|327) 获取mms配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MMS");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_MMS: // (0x80000000|328) 设置mms配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_MMS");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_SMSACTIVATION: // (0x80000000|329) 获取短信激活无线连接配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_SMSACTIVATION");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_SMSACTIVATION: // (0x80000000|330) 设置短信激活无线连接配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_SMSACTIVATION");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_DIALINACTIVATION: // (0x80000000|331) 获取拨号激活无线连接配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_DIALINACTIVATION");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_DIALINACTIVATION: // (0x80000000|332) 设置拨号激活无线连接配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_DIALINACTIVATION");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_VIDEOOUT: // (0x80000000|333) 查询视频输出参数配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_VIDEOOUT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_VIDEOOUT: // (0x80000000|334) 设置视频输出参数配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_VIDEOOUT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_OSDENABLE: // (0x80000000|335) 获取osd叠加使能配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_OSDENABLE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_OSDENABLE: // (0x80000000|336) 设置osd叠加使能配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_OSDENABLE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_ENCODERINFO: // (0x80000000|337) 设置数字通道前端编码接入配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_ENCODERINFO");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_TVADJUST: // (0x80000000|338) 获取TV调节配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_TVADJUST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_TVADJUST: // (0x80000000|339) 设置TV调节配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_TVADJUST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_CONNECT_FAILED: // (0x80000000|340) 请求建立连接失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_CONNECT_FAILED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_BURNFILE: // (0x80000000|341) 请求刻录文件上传失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_BURNFILE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SNIFFER_GETCFG: // (0x80000000|342) 获取抓包配置信息失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SNIFFER_GETCFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SNIFFER_SETCFG: // (0x80000000|343) 设置抓包配置信息失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SNIFFER_SETCFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_DOWNLOADRATE_GETCFG: // (0x80000000|344) 查询下载限制信息失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_DOWNLOADRATE_GETCFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_DOWNLOADRATE_SETCFG: // (0x80000000|345) 设置下载限制信息失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_DOWNLOADRATE_SETCFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SEARCH_TRANSCOM: // (0x80000000|346) 查询串口参数失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SEARCH_TRANSCOM");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_POINT: // (0x80000000|347) 获取预制点信息错误
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_POINT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_POINT: // (0x80000000|348) 设置预制点信息错误
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_POINT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_SDK_LOGOUT_ERROR: // (0x80000000|349) SDK没有正常登出设备
|
||||
// msg = Res.string().getBundle().getString("NET_SDK_LOGOUT_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_VEHICLE_CFG: // (0x80000000|350) 获取车载配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_VEHICLE_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SET_VEHICLE_CFG: // (0x80000000|351) 设置车载配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SET_VEHICLE_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_ATM_OVERLAY_CFG: // (0x80000000|352) 获取atm叠加配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_ATM_OVERLAY_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SET_ATM_OVERLAY_CFG: // (0x80000000|353) 设置atm叠加配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SET_ATM_OVERLAY_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_ATM_OVERLAY_ABILITY: // (0x80000000|354) 获取atm叠加能力失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_ATM_OVERLAY_ABILITY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_DECODER_TOUR_CFG: // (0x80000000|355) 获取解码器解码轮巡配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_DECODER_TOUR_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SET_DECODER_TOUR_CFG: // (0x80000000|356) 设置解码器解码轮巡配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SET_DECODER_TOUR_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_CTRL_DECODER_TOUR: // (0x80000000|357) 控制解码器解码轮巡失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_CTRL_DECODER_TOUR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_GROUP_OVERSUPPORTNUM: // (0x80000000|358) 超出设备支持最大用户组数目
|
||||
// msg = Res.string().getBundle().getString("NET_GROUP_OVERSUPPORTNUM");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_OVERSUPPORTNUM: // (0x80000000|359) 超出设备支持最大用户数目
|
||||
// msg = Res.string().getBundle().getString("NET_USER_OVERSUPPORTNUM");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_SIP_CFG: // (0x80000000|368) 获取SIP配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_SIP_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SET_SIP_CFG: // (0x80000000|369) 设置SIP配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SET_SIP_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_SIP_ABILITY: // (0x80000000|370) 获取SIP能力失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_SIP_ABILITY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_WIFI_AP_CFG: // (0x80000000|371) 获取WIFI ap配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_WIFI_AP_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SET_WIFI_AP_CFG: // (0x80000000|372) 设置WIFI ap配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SET_WIFI_AP_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_DECODE_POLICY: // (0x80000000|373) 获取解码策略配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_DECODE_POLICY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SET_DECODE_POLICY: // (0x80000000|374) 设置解码策略配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SET_DECODE_POLICY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_TALK_REJECT: // (0x80000000|375) 拒绝对讲
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_TALK_REJECT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_TALK_OPENED: // (0x80000000|376) 对讲被其他客户端打开
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_TALK_OPENED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_TALK_RESOURCE_CONFLICIT: // (0x80000000|377) 资源冲突
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_TALK_RESOURCE_CONFLICIT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_TALK_UNSUPPORTED_ENCODE: // (0x80000000|378) 不支持的语音编码格式
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_TALK_UNSUPPORTED_ENCODE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_TALK_RIGHTLESS: // (0x80000000|379) 无权限
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_TALK_RIGHTLESS");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_TALK_FAILED: // (0x80000000|380) 请求对讲失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_TALK_FAILED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_MACHINE_CFG: // (0x80000000|381) 获取机器相关配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_MACHINE_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SET_MACHINE_CFG: // (0x80000000|382) 设置机器相关配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SET_MACHINE_CFG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_DATA_FAILED: // (0x80000000|383) 设备无法获取当前请求数据
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_DATA_FAILED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_MAC_VALIDATE_FAILED: // (0x80000000|384) MAC地址验证失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_MAC_VALIDATE_FAILED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_INSTANCE: // (0x80000000|385) 获取服务器实例失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_INSTANCE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_JSON_REQUEST: // (0x80000000|386) 生成的json字符串错误
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_JSON_REQUEST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_JSON_RESPONSE: // (0x80000000|387) 响应的json字符串错误
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_JSON_RESPONSE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_VERSION_HIGHER: // (0x80000000|388) 协议版本低于当前使用的版本
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_VERSION_HIGHER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_SPARE_NO_CAPACITY: // (0x80000000|389) 热备操作失败, 容量不足
|
||||
// msg = Res.string().getBundle().getString("NET_SPARE_NO_CAPACITY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SOURCE_IN_USE: // (0x80000000|390) 显示源被其他输出占用
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SOURCE_IN_USE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_REAVE: // (0x80000000|391) 高级用户抢占低级用户资源
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_REAVE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_NETFORBID: // (0x80000000|392) 禁止入网
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_NETFORBID");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_MACFILTER: // (0x80000000|393) 获取MAC过滤配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_MACFILTER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_MACFILTER: // (0x80000000|394) 设置MAC过滤配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_MACFILTER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GETCFG_IPMACFILTER: // (0x80000000|395) 获取IP/MAC过滤配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GETCFG_IPMACFILTER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SETCFG_IPMACFILTER: // (0x80000000|396) 设置IP/MAC过滤配置失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SETCFG_IPMACFILTER");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_OPERATION_OVERTIME: // (0x80000000|397) 当前操作超时
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_OPERATION_OVERTIME");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SENIOR_VALIDATE_FAILED: // (0x80000000|398) 高级校验失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SENIOR_VALIDATE_FAILED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_DEVICE_ID_NOT_EXIST: // (0x80000000|399) 设备ID不存在
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_ID_NOT_EXIST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_UNSUPPORTED: // (0x80000000|400) 不支持当前操作
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_UNSUPPORTED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_PROXY_DLLLOAD: // (0x80000000|401) 代理库加载失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_PROXY_DLLLOAD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_PROXY_ILLEGAL_PARAM: // (0x80000000|402) 代理用户参数不合法
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_PROXY_ILLEGAL_PARAM");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_PROXY_INVALID_HANDLE: // (0x80000000|403) 代理句柄无效
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_PROXY_INVALID_HANDLE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_PROXY_LOGIN_DEVICE_ERROR: // (0x80000000|404) 代理登入前端设备失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_PROXY_LOGIN_DEVICE_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_PROXY_START_SERVER_ERROR: // (0x80000000|405) 启动代理服务失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_PROXY_START_SERVER_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SPEAK_FAILED: // (0x80000000|406) 请求喊话失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SPEAK_FAILED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_NOT_SUPPORT_F6: // (0x80000000|407) 设备不支持此F6接口调用
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_NOT_SUPPORT_F6");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_CD_UNREADY: // (0x80000000|408) 光盘未就绪
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_CD_UNREADY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_DIR_NOT_EXIST: // (0x80000000|409) 目录不存在
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_DIR_NOT_EXIST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_UNSUPPORTED_SPLIT_MODE: // (0x80000000|410) 设备不支持的分割模式
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_UNSUPPORTED_SPLIT_MODE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_OPEN_WND_PARAM: // (0x80000000|411) 开窗参数不合法
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_OPEN_WND_PARAM");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_LIMITED_WND_COUNT: // (0x80000000|412) 开窗数量超过限制
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_WND_COUNT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_UNMATCHED_REQUEST: // (0x80000000|413) 请求命令与当前模式不匹配
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_UNMATCHED_REQUEST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_RENDER_ENABLELARGEPICADJUSTMENT_ERROR: // (0x80000000|414) Render库启用高清图像内部调整策略出错
|
||||
// msg = Res.string().getBundle().getString("NET_RENDER_ENABLELARGEPICADJUSTMENT_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_UPGRADE_FAILED: // (0x80000000|415) 设备升级失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_UPGRADE_FAILED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_NO_TARGET_DEVICE: // (0x80000000|416) 找不到目标设备
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_NO_TARGET_DEVICE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_NO_VERIFY_DEVICE: // (0x80000000|417) 找不到验证设备
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_NO_VERIFY_DEVICE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_CASCADE_RIGHTLESS: // (0x80000000|418) 无级联权限
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_CASCADE_RIGHTLESS");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_LOW_PRIORITY: // (0x80000000|419) 低优先级
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_LOW_PRIORITY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_REMOTE_REQUEST_TIMEOUT: // (0x80000000|420) 远程设备请求超时
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_REMOTE_REQUEST_TIMEOUT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_LIMITED_INPUT_SOURCE: // (0x80000000|421) 输入源超出最大路数限制
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_INPUT_SOURCE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SET_LOG_PRINT_INFO: // (0x80000000|422) 设置日志打印失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SET_LOG_PRINT_INFO");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_PARAM_DWSIZE_ERROR: // (0x80000000|423) 入参的dwsize字段出错
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_PARAM_DWSIZE_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_LIMITED_MONITORWALL_COUNT: // (0x80000000|424) 电视墙数量超过上限
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_LIMITED_MONITORWALL_COUNT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_PART_PROCESS_FAILED: // (0x80000000|425) 部分过程执行失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_PART_PROCESS_FAILED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_TARGET_NOT_SUPPORT: // (0x80000000|426) 该功能不支持转发
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_TARGET_NOT_SUPPORT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_VISITE_FILE: // (0x80000000|510) 访问文件失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_VISITE_FILE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_DEVICE_STATUS_BUSY: // (0x80000000|511) 设备忙
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_STATUS_BUSY");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_PWD_NOT_AUTHORIZED: // (0x80000000|512)修改密码无权限
|
||||
// msg = Res.string().getBundle().getString("NET_USER_PWD_NOT_AUTHORIZED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_USER_PWD_NOT_STRONG: // (0x80000000|513) 密码强度不够
|
||||
// msg = Res.string().getBundle().getString("NET_USER_PWD_NOT_STRONG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_NO_SUCH_CONFIG: // (0x80000000|514) 没有对应的配置
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_NO_SUCH_CONFIG");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_AUDIO_RECORD_FAILED: // (0x80000000|515) 录音失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_AUDIO_RECORD_FAILED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SEND_DATA_FAILED: // (0x80000000|516) 数据发送失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SEND_DATA_FAILED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_OBSOLESCENT_INTERFACE: // (0x80000000|517) 废弃接口
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_OBSOLESCENT_INTERFACE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_INSUFFICIENT_INTERAL_BUF: // (0x80000000|518) 内部缓冲不足
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_INSUFFICIENT_INTERAL_BUF");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_NEED_ENCRYPTION_PASSWORD: // (0x80000000|519) 修改设备ip时,需要校验密码
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_NEED_ENCRYPTION_PASSWORD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_NOSUPPORT_RECORD: // (0x80000000|520) 设备不支持此记录集
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_NOSUPPORT_RECORD");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SERIALIZE_ERROR: // (0x80000000|1010) 数据序列化错误
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SERIALIZE_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_DESERIALIZE_ERROR: // (0x80000000|1011) 数据反序列化错误
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_DESERIALIZE_ERROR");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_LOWRATEWPAN_ID_EXISTED: // (0x80000000|1012) 该无线ID已存在
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_EXISTED");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_LOWRATEWPAN_ID_LIMIT: // (0x80000000|1013) 无线ID数量已超限
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_LIMIT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_LOWRATEWPAN_ID_ABNORMAL: // (0x80000000|1014) 无线异常添加
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_LOWRATEWPAN_ID_ABNORMAL");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_ENCRYPT: // (0x80000000|1015) 加密数据失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_ENCRYPT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_PWD_ILLEGAL: // (0x80000000|1016) 新密码不合规范
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_PWD_ILLEGAL");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_DEVICE_ALREADY_INIT: // (0x80000000|1017) 设备已经初始化
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_DEVICE_ALREADY_INIT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SECURITY_CODE: // (0x80000000|1018) 安全码错误
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SECURITY_CODE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_SECURITY_CODE_TIMEOUT: // (0x80000000|1019) 安全码超出有效期
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_SECURITY_CODE_TIMEOUT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_GET_PWD_SPECI: // (0x80000000|1020) 获取密码规范失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_GET_PWD_SPECI");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_NO_AUTHORITY_OF_OPERATION: // (0x80000000|1021) 无权限进行该操作
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_NO_AUTHORITY_OF_OPERATION");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_DECRYPT: // (0x80000000|1022) 解密数据失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_DECRYPT");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_2D_CODE: // (0x80000000|1023) 2D code校验失败
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_2D_CODE");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_INVALID_REQUEST: // (0x80000000|1024) 非法的RPC请求
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_INVALID_REQUEST");
|
||||
// break;
|
||||
// case NetSDKLib.NET_ERROR_PWD_RESET_DISABLE: // (0x80000000|1025) 密码重置功能已关闭
|
||||
// msg = Res.string().getBundle().getString("NET_ERROR_PWD_RESET_DISABLE");
|
||||
// break;
|
||||
case 1026: // (0x80000000|1026) 显示私有数据,比如规则框等失败
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_PLAY_PRIVATE_DATA");
|
||||
break;
|
||||
case 1027: // (0x80000000|1027) 机器人操作失败
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_ROBOT_OPERATE_FAILED");
|
||||
break;
|
||||
case 1028: // (0x80000000|1028) 图片大小超限
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_PHOTOSIZE_EXCEEDSLIMIT");
|
||||
break;
|
||||
case 1029: // (0x80000000|1029) 用户ID不存在
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_USERID_INVALID");
|
||||
break;
|
||||
case 1030: // (0x80000000|1030) 照片特征值提取失败
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_EXTRACTFEATURE_FAILED");
|
||||
break;
|
||||
case 1031: // (0x80000000|1031) 照片已存在
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_PHOTO_EXIST");
|
||||
break;
|
||||
case 1032: // (0x80000000|1032) 照片数量超过上限
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_PHOTO_OVERFLOW");
|
||||
break;
|
||||
case 1033: // (0x80000000|1033) 通道已经打开
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_CHANNEL_ALREADY_OPENED");
|
||||
break;
|
||||
case 1034: // (0x80000000|1034) 创建套接字失败
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_CREATE_SOCKET");
|
||||
break;
|
||||
case 1035: // (0x80000000|1035) 通道号错误
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_CHANNEL_NUM");
|
||||
break;
|
||||
case 1051: // (0x80000000|1051) 组ID超过最大值
|
||||
msg = Res.string().getBundle().getString("NET_ERROR_FACE_RECOGNITION_SERVER_GROUP_ID_EXCEED");
|
||||
break;
|
||||
default:
|
||||
msg = Res.string().getBundle().getString("NET_ERROR");
|
||||
break;
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,79 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.common;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.concurrent.LinkedBlockingDeque;
|
||||
|
||||
public class EventTaskCommonQueue {
|
||||
|
||||
// 设置一个队列,容量看情况改
|
||||
private final int MAX_TASK_COUNT = 10000; // 队列容量
|
||||
private final LinkedBlockingDeque<EventTaskHandler> eventTasks = new LinkedBlockingDeque<EventTaskHandler>(MAX_TASK_COUNT);
|
||||
|
||||
// 起一个线程池
|
||||
private final int MAX_THREAD_COUNT = 10; // 线程池容量
|
||||
private ExecutorService eventQueueService = Executors.newFixedThreadPool(MAX_THREAD_COUNT);
|
||||
|
||||
// 用于检验服务运行状态
|
||||
private volatile boolean running = true;
|
||||
|
||||
// 用于查看当前线程状态
|
||||
private Future<?> eventQueueThreadStatus;
|
||||
|
||||
// 初始化
|
||||
public void init() {
|
||||
eventQueueThreadStatus = eventQueueService.submit(new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
while (running) {
|
||||
try {
|
||||
EventTaskHandler task = eventTasks.take(); //开始一个任务
|
||||
try {
|
||||
task.eventTaskProcess(); // 主要的运行函数
|
||||
} catch (Exception e) {
|
||||
System.err.println("任务处理发生错误"); // error
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
System.err.println("任务已意外停止"); // error
|
||||
running = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}, "Event call back thread init"));
|
||||
}
|
||||
|
||||
// 向队列添加新的任务
|
||||
public boolean addEvent(EventTaskHandler eventHandler) {
|
||||
if (!running) {
|
||||
System.out.println("任务已停止"); // warning
|
||||
return false;
|
||||
}
|
||||
boolean success = eventTasks.offer(eventHandler);
|
||||
if (!success) {
|
||||
// 队列已满,无法再添加
|
||||
System.out.println("添加到事件队列失败");
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
// 手动启动服务
|
||||
public void activeService() {
|
||||
running = true;
|
||||
if (eventQueueService.isShutdown()) {
|
||||
eventQueueService = Executors.newFixedThreadPool(MAX_THREAD_COUNT);;
|
||||
init();
|
||||
System.out.println("线程池已关闭,重新初始化线程池及任务");
|
||||
}
|
||||
if (eventQueueThreadStatus.isDone()) {
|
||||
init();
|
||||
System.out.println("线程池任务结束,重新初始化任务");
|
||||
}
|
||||
}
|
||||
|
||||
// 手动关闭服务
|
||||
public void destroy() {
|
||||
running = false;
|
||||
eventQueueService.shutdownNow();
|
||||
}
|
||||
}
|
||||
@ -1,6 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.common;
|
||||
|
||||
public interface EventTaskHandler {
|
||||
|
||||
void eventTaskProcess();
|
||||
}
|
||||
@ -1,49 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.constant;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 一些结构体成员变量的数组长度
|
||||
* @date 2020/8/24
|
||||
*/
|
||||
public class SDKStructureFieldLenth {
|
||||
/** 通用名字字符串长度 */
|
||||
public static final int NET_MAX_NAME_LEN = 16;
|
||||
/** 视频分析设备支持的检测物体类型列表个数上限 */
|
||||
public static final int MAX_OBJECT_LIST_SIZE = 16;
|
||||
/** 一周的天数 */
|
||||
public static final int WEEK_DAY_NUM = 7;
|
||||
/** 录像时间段扩展个数 */
|
||||
public static final int MAX_REC_TSECT_EX = 10;
|
||||
/** 通用字符串长度512 */
|
||||
public static final int SDK_COMMON_STRING_512 = 512;
|
||||
/** 电视墙最大预案数 */
|
||||
public static final int NET_MAX_COLLECTION_NUM = 64;
|
||||
/** 景物点信息最大个数 */
|
||||
public static final int MAX_SCENICSPOT_POINTS_NUM = 256;
|
||||
/** 协议名称长度 */
|
||||
public static final int MAX_PROTOCOL_NAME_LEN = 32;
|
||||
/** 通用字符串长度32 */
|
||||
public static final int CFG_COMMON_STRING_32 = 32;
|
||||
|
||||
public static final int MAX_MASKTYPE_COUNT = 8;
|
||||
public static final int MAX_MOSAICTYPE_COUNT = 8;
|
||||
/** 最大下位矩阵输出通道数 */
|
||||
public static final int CFG_MAX_LOWER_MATRIX_OUTPUT = 32;
|
||||
// 最大通道数256
|
||||
public static final int CFG_MAX_VIDEO_CHANNEL_NUM = 256;
|
||||
/** 规则检测区域最大顶点数 */
|
||||
public static final int SDK_MAX_DETECT_REGION_NUM = 20;
|
||||
/** 检测到目标的最大个数 */
|
||||
public static final int HDBJ_MAX_OBJECTS_NUM = 200;
|
||||
/** 规则检测区域最大顶点数 */
|
||||
public static final int DH_MAX_DETECT_REGION_NUM = 20;
|
||||
/** 最大事件名称长度 */
|
||||
public static final int MAX_EVENT_NAME_LEN = 128;
|
||||
/** 最大标定点个数 */
|
||||
public static final int MAX_CALIBRATE_POINT_NUM = 64;
|
||||
/** 最大的地址长度 */
|
||||
public static final int MAX_ADDRESS_LEN = 256;
|
||||
/** 最大密码长度 */
|
||||
public static final int MAX_PASSWORD_LEN = 64;
|
||||
}
|
||||
@ -1,26 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 门禁单双向配置类型
|
||||
* @date 2021/2/7
|
||||
*/
|
||||
public enum CFG_ACCESS_PROPERTY_TYPE {
|
||||
/** 未知 */
|
||||
CFG_ACCESS_PROPERTY_UNKNOWN(0, "未知"),
|
||||
/** 双向门禁 */
|
||||
CFG_ACCESS_PROPERTY_BIDIRECT(1, "双向门禁"),
|
||||
/** 单向门禁 */
|
||||
CFG_ACCESS_PROPERTY_UNIDIRECT(2, "单向门禁");
|
||||
/** 枚举值 */
|
||||
private int type;
|
||||
/** 枚举对应的类型描述 */
|
||||
private String desc;
|
||||
|
||||
CFG_ACCESS_PROPERTY_TYPE(int type, String desc) {
|
||||
this.type = type;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,45 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 闸机进出语音方向
|
||||
* @date 2021/2/7
|
||||
*/
|
||||
public enum CFG_EM_ASG_VOICE_DIRECTION {
|
||||
CFG_EM_ASG_VOICE_DIRECTION_UNKNOWN(0, "未知"),
|
||||
CFG_EM_ASG_VOICE_DIRECTION_ENTER(1, "进入"),
|
||||
CFG_EM_ASG_VOICE_DIRECTION_LEAVE(2, "离开");
|
||||
private int direction;
|
||||
private String desc;
|
||||
|
||||
CFG_EM_ASG_VOICE_DIRECTION(int direction, String desc) {
|
||||
this.direction = direction;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public static CFG_EM_ASG_VOICE_DIRECTION getVoiceDirection(int direction) {
|
||||
for (CFG_EM_ASG_VOICE_DIRECTION voiceDirection : CFG_EM_ASG_VOICE_DIRECTION.values()) {
|
||||
if (voiceDirection.direction == direction) {
|
||||
return voiceDirection;
|
||||
}
|
||||
}
|
||||
return CFG_EM_ASG_VOICE_DIRECTION_UNKNOWN;
|
||||
}
|
||||
|
||||
public int getDirection() {
|
||||
return direction;
|
||||
}
|
||||
|
||||
public void setDirection(int direction) {
|
||||
this.direction = direction;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
||||
@ -1,55 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 251823
|
||||
* @description 智能类型
|
||||
* @date 2021/01/11
|
||||
*/
|
||||
public enum CFG_EM_FACEDETECT_TYPE {
|
||||
// 未知
|
||||
CFG_EM_FACEDETECT_TYPE_UNKNOWN(0, "未知"),
|
||||
|
||||
// 可见光
|
||||
CFG_EM_FACEDETECT_TYPE_VISUAL(1, "可见光"),
|
||||
|
||||
// 红外
|
||||
CFG_EM_FACEDETECT_TYPE_THERMAL(2, "红外"),
|
||||
|
||||
// 按时间段切换
|
||||
CFG_EM_FACEDETECT_TYPE_SWITCHBYTIME(3, "按时间段切换");
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private CFG_EM_FACEDETECT_TYPE(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (CFG_EM_FACEDETECT_TYPE enumType : CFG_EM_FACEDETECT_TYPE.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (CFG_EM_FACEDETECT_TYPE enumType : CFG_EM_FACEDETECT_TYPE.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,49 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 251823
|
||||
* @description 智能分析实例类型
|
||||
* @date 2021/01/11
|
||||
*/
|
||||
public enum CFG_EM_INSTANCE_SUBCLASS_TYPE {
|
||||
|
||||
// 本地实例
|
||||
CFG_EM_INSTANCE_SUBCLASS_TYPE_LOCAL(0, "本地实例"),
|
||||
|
||||
// 远程实例
|
||||
CFG_EM_INSTANCE_SUBCLASS_TYPE_REMOTE(1, "远程实例");
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private CFG_EM_INSTANCE_SUBCLASS_TYPE(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (CFG_EM_INSTANCE_SUBCLASS_TYPE enumType : CFG_EM_INSTANCE_SUBCLASS_TYPE.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (CFG_EM_INSTANCE_SUBCLASS_TYPE enumType : CFG_EM_INSTANCE_SUBCLASS_TYPE.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -1,70 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 语音ID
|
||||
* @date 2021/2/7
|
||||
*/
|
||||
public enum CFG_EM_VOICE_ID {
|
||||
/** 未知 */
|
||||
CFG_EM_VOICE_ID_UNKNOWN(-1, "未知"),
|
||||
/** 验证成功(默认) */
|
||||
CFG_EM_VOICE_ID_VERIFY_SUCCESS(0, "验证成功(默认)"),
|
||||
/** 开门成功 */
|
||||
CFG_EM_VOICE_ID_OPENDOOR_SUCCESS(1, "开门成功"),
|
||||
/** 开锁成功 */
|
||||
CFG_EM_VOICE_ID_UNLOCK_SUCCESS(2, "开锁成功"),
|
||||
/** 刷卡成功 */
|
||||
CFG_EM_VOICE_ID_SWIPECARD_SUCCESS(3, "刷卡成功"),
|
||||
/** 欢迎光临 */
|
||||
CFG_EM_VOICE_ID_WELCOME(4, "欢迎光临"),
|
||||
/** 欢迎再次光临 */
|
||||
CFG_EM_VOICE_ID_WELCOME_BACK(5, "欢迎再次光临"),
|
||||
/** 谢谢 */
|
||||
CFG_EM_VOICE_ID_THANKS(6, "谢谢"),
|
||||
/** 自定义 */
|
||||
CFG_EM_VOICE_ID_CUSTOMIZED_VOICE(7, "自定义"),
|
||||
/** 无声音 */
|
||||
CFG_EM_VOICE_ID_NO_VOICE(8, "无声音"),
|
||||
/** 欢迎回家 */
|
||||
CFG_EM_VOICE_ID_WELCOME_HOME(9, "欢迎回家"),
|
||||
/** 一路顺风 */
|
||||
CFG_EM_VOICE_ID_GOOD_JOURNEY(10, "一路顺风"),
|
||||
/** 欢迎下次光临 */
|
||||
CFG_EM_VOICE_ID_WELCOME_BACK_NEXT(11, "欢迎下次光临"),
|
||||
/** 谢谢惠顾 */
|
||||
CFG_EM_VOICE_ID_THANKS_FOR_PATRONAGE(12, "谢谢惠顾");
|
||||
private int id;
|
||||
private String desc;
|
||||
|
||||
CFG_EM_VOICE_ID(int id, String desc) {
|
||||
this.id = id;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public static CFG_EM_VOICE_ID getVoiceID(int id) {
|
||||
for (CFG_EM_VOICE_ID voiceID : CFG_EM_VOICE_ID.values()) {
|
||||
if (voiceID.id == id) {
|
||||
return voiceID;
|
||||
}
|
||||
}
|
||||
return CFG_EM_VOICE_ID_UNKNOWN;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
||||
@ -1,50 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* 日志查询类型
|
||||
*
|
||||
* @author 47081
|
||||
*/
|
||||
public enum DH_LOG_QUERY_TYPE {
|
||||
/**
|
||||
* 所有日志
|
||||
*/
|
||||
DHLOG_ALL,
|
||||
/**
|
||||
* 系统日志
|
||||
*/
|
||||
DHLOG_SYSTEM,
|
||||
/**
|
||||
* 配置日志
|
||||
*/
|
||||
DHLOG_CONFIG,
|
||||
/**
|
||||
* 存储相关
|
||||
*/
|
||||
DHLOG_STORAGE,
|
||||
/**
|
||||
* 报警日志
|
||||
*/
|
||||
DHLOG_ALARM,
|
||||
/**
|
||||
* 录象相关
|
||||
*/
|
||||
DHLOG_RECORD,
|
||||
/**
|
||||
* 帐号相关
|
||||
*/
|
||||
DHLOG_ACCOUNT,
|
||||
/**
|
||||
* 清除日志
|
||||
*/
|
||||
DHLOG_CLEAR,
|
||||
/**
|
||||
* 回放相关
|
||||
*/
|
||||
DHLOG_PLAYBACK,
|
||||
/**
|
||||
* 前端管理运行相关
|
||||
*/
|
||||
DHLOG_MANAGER
|
||||
|
||||
}
|
||||
@ -1,64 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* 是否跨位
|
||||
*
|
||||
* @author 47040
|
||||
* @since Created in 2020/11/18 14:40
|
||||
*/
|
||||
public enum EM_ACROSS_PARKING {
|
||||
/**
|
||||
* 未知
|
||||
*/
|
||||
EM_ACROSS_PARKING_UNKNOWN(0, "未知"),
|
||||
/**
|
||||
* 未跨位
|
||||
*/
|
||||
EM_ACROSS_PARKING_NO(1, "未跨位"),
|
||||
/**
|
||||
* 跨位
|
||||
*/
|
||||
EM_ACROSS_PARKING_YES(2, "跨位");
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
EM_ACROSS_PARKING(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_ACROSS_PARKING enumType : EM_ACROSS_PARKING.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_ACROSS_PARKING enumType : EM_ACROSS_PARKING.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static EM_ACROSS_PARKING getEnum(int value) {
|
||||
for (EM_ACROSS_PARKING e : EM_ACROSS_PARKING.values()) {
|
||||
if (e.getValue() == value)
|
||||
return e;
|
||||
}
|
||||
return EM_ACROSS_PARKING.EM_ACROSS_PARKING_UNKNOWN;
|
||||
}
|
||||
}
|
||||
@ -1,25 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 输出有效模式
|
||||
* @date 2021/2/22
|
||||
*/
|
||||
public enum EM_ALARMOUT_POLE {
|
||||
/** 未知 */
|
||||
EM_ALARMOUT_POLE_UNKNOWN,
|
||||
/** 低电平有效 */
|
||||
EM_ALARMOUT_POLE_LOW,
|
||||
/** 高电平有效 */
|
||||
EM_ALARMOUT_POLE_HIGH;
|
||||
|
||||
public static EM_ALARMOUT_POLE getAlarmOutPole(int pole) {
|
||||
for (EM_ALARMOUT_POLE alarmOutPole : EM_ALARMOUT_POLE.values()) {
|
||||
if (alarmOutPole.ordinal() == pole) {
|
||||
return alarmOutPole;
|
||||
}
|
||||
}
|
||||
return EM_ALARMOUT_POLE_UNKNOWN;
|
||||
}
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 分区类型
|
||||
* @date 2021/2/20
|
||||
*/
|
||||
public enum EM_ALGORITHM_PARTITION_TYPE {
|
||||
/** 未知 */
|
||||
EM_ALGORITHM_PARTITION_UNKNOWN,
|
||||
/** ext4分区 */
|
||||
EM_ALGORITHM_PARTITION_EXT4,
|
||||
/** suqshfs分区 */
|
||||
EM_ALGORITHM_PARTITION_SUQSHFS,
|
||||
/** ubifs分区 */
|
||||
EM_ALGORITHM_PARTITION_UBIFS;
|
||||
|
||||
public static EM_ALGORITHM_PARTITION_TYPE getAlgorithmPartitionType(int type) {
|
||||
for (EM_ALGORITHM_PARTITION_TYPE partitionType : EM_ALGORITHM_PARTITION_TYPE.values()) {
|
||||
if (partitionType.ordinal() == type) {
|
||||
return partitionType;
|
||||
}
|
||||
}
|
||||
return EM_ALGORITHM_PARTITION_UNKNOWN;
|
||||
}
|
||||
}
|
||||
@ -1,48 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 工作模式
|
||||
* @date 2021/2/7
|
||||
*/
|
||||
public enum EM_ASG_WORK_MODE {
|
||||
/** 未知 */
|
||||
EM_ASG_WORK_MODE_UNKNOWN(-1, "未知"),
|
||||
/** 常闭模式 */
|
||||
EM_ASG_WORK_MODE_CLOSE(0, "常闭模式"),
|
||||
EM_ASG_WORK_MODE_OPEN(1, "常开模式");
|
||||
|
||||
private int mode;
|
||||
private String desc;
|
||||
|
||||
EM_ASG_WORK_MODE(int mode, String desc) {
|
||||
this.mode = mode;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public static EM_ASG_WORK_MODE getAsgWorkMode(int mode) {
|
||||
for (EM_ASG_WORK_MODE workMode : EM_ASG_WORK_MODE.values()) {
|
||||
if (workMode.mode == mode) {
|
||||
return workMode;
|
||||
}
|
||||
}
|
||||
return EM_ASG_WORK_MODE_UNKNOWN;
|
||||
}
|
||||
|
||||
public int getMode() {
|
||||
return mode;
|
||||
}
|
||||
|
||||
public void setMode(int mode) {
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
||||
@ -1,54 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 251823
|
||||
* @description 音频解码能力数据流源类型
|
||||
* @date 2021/01/06
|
||||
*/
|
||||
public enum EM_AUDIO_DATA_SOURCE_TYPE {
|
||||
// 未知数据类型
|
||||
EM_AUDIO_DATA_SOURCE_TYPE_UNKNOWN(-1, "未知数据类型"),
|
||||
|
||||
// 对讲数据
|
||||
EM_AUDIO_DATA_SOURCE_TYPE_TALK(0, "对讲数据"),
|
||||
|
||||
// 普通音频数据,如伴音
|
||||
EM_AUDIO_DATA_SOURCE_TYPE_NORMAL(1, "普通音频数据,如伴音"),
|
||||
|
||||
// 报警音频数据流
|
||||
EM_AUDIO_DATA_SOURCE_TYPE_ALARM(2, "报警音频数据流");
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private EM_AUDIO_DATA_SOURCE_TYPE(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_AUDIO_DATA_SOURCE_TYPE enumType : EM_AUDIO_DATA_SOURCE_TYPE.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_AUDIO_DATA_SOURCE_TYPE enumType : EM_AUDIO_DATA_SOURCE_TYPE.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
@ -1,29 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 音频数据类型
|
||||
* @date 2021/2/22
|
||||
*/
|
||||
public enum EM_AUDIO_DATA_TYPE {
|
||||
/** 默认 */
|
||||
EM_AUDIO_DATA_TYPE_DEFAULT,
|
||||
/** 音频强制转换为AAC */
|
||||
EM_AUDIO_DATA_TYPE_AAC,
|
||||
/** 音频强制转换为G711A */
|
||||
EM_AUDIO_DATA_TYPE_G711A,
|
||||
/** 音频强制转换为G711U */
|
||||
EM_AUDIO_DATA_TYPE_G711U,
|
||||
/** 音频强制转换为MP2 */
|
||||
EM_AUDIO_DATA_TYPE_MP2;
|
||||
|
||||
public static EM_AUDIO_DATA_TYPE getAudioDataType(int type) {
|
||||
for (EM_AUDIO_DATA_TYPE audioType : EM_AUDIO_DATA_TYPE.values()) {
|
||||
if (audioType.ordinal() == type) {
|
||||
return audioType;
|
||||
}
|
||||
}
|
||||
return EM_AUDIO_DATA_TYPE_DEFAULT;
|
||||
}
|
||||
}
|
||||
@ -1,43 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
public enum EM_BATTERY_EXIST_STATE {
|
||||
|
||||
EM_BATTERY_EXIST_STATE_UNKNOWN(0, "电池在位未知"),
|
||||
EM_BATTERY_EXIST_STATE_EXIST(1, "电池在位"), // 电池在位
|
||||
EM_BATTERY_EXIST_STATE_MISSING(2, "电池丢失"); // 电池丢失
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private EM_BATTERY_EXIST_STATE(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_BATTERY_EXIST_STATE enumType : EM_BATTERY_EXIST_STATE.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_BATTERY_EXIST_STATE enumType : EM_BATTERY_EXIST_STATE.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,41 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
public enum EM_BATTERY_STATE {
|
||||
EM_BATTERY_STATE_UNKNOWN(0, "电量未知"),
|
||||
EM_BATTERY_STATE_NORMAL(1, "电量正常"), // 电量正常
|
||||
EM_BATTERY_STATE_LOW(2, "电量低"); // 电量低
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private EM_BATTERY_STATE(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_BATTERY_STATE enumType : EM_BATTERY_STATE.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_BATTERY_STATE enumType : EM_BATTERY_STATE.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -1,51 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 251823
|
||||
* @version 1.0
|
||||
* @description 相机连接状态
|
||||
* @date 2020/11/09
|
||||
*/
|
||||
public enum EM_CAMERA_CONNECT_STATE {
|
||||
// 未知
|
||||
EM_CAMERA_CONNECT_STATE_UNKNOWN(-1, "未知"),
|
||||
// 北向南
|
||||
EM_CAMERA_CONNECT_STATE_UNCONNECT(0, "未连接"),
|
||||
// 东北向西南
|
||||
EM_CAMERA_CONNECT_STATE_CONNECTED(1, "已连接");
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private EM_CAMERA_CONNECT_STATE(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_CAMERA_CONNECT_STATE enumType : EM_CAMERA_CONNECT_STATE.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_CAMERA_CONNECT_STATE enumType : EM_CAMERA_CONNECT_STATE.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -2;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,52 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
public enum EM_CAPTURE_PROCESS_END_TYPE {
|
||||
|
||||
/**
|
||||
* 未知
|
||||
*/
|
||||
EM_CAPTURE_PROCESS_END_TYPE_UNKNOWN(-1,"未知"),
|
||||
/**
|
||||
* 异常
|
||||
*/
|
||||
EM_CAPTURE_PROCESS_END_TYPE_ABNORMAL(0,"异常"),
|
||||
/**
|
||||
* 正常
|
||||
*/
|
||||
EM_CAPTURE_PROCESS_END_TYPE_NORMAL(1,"正常");
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private EM_CAPTURE_PROCESS_END_TYPE(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_CAPTURE_PROCESS_END_TYPE enumType : EM_CAPTURE_PROCESS_END_TYPE.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_CAPTURE_PROCESS_END_TYPE enumType : EM_CAPTURE_PROCESS_END_TYPE.values()) {
|
||||
if (givenNote.equals(enumType.getNote()) ) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,35 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* 命令类型,对应QueryNewSystemInfo接口
|
||||
*/
|
||||
public enum EM_CFG_CAP_CMD {
|
||||
/**
|
||||
* 获取设备状态信息 (对应 CFG_CAP_TRAFFIC_DEVICE_STATUS)
|
||||
*/
|
||||
CFG_CAP_CMD_DEVICE_STATE("trafficSnap.getDeviceStatus"),
|
||||
/**
|
||||
* 获取查询记录能力集, (对应结构体 CFG_CAP_RECORDFINDER_INFO)
|
||||
*/
|
||||
CFG_CAP_CMD_RECORDFINDER("RecordFinder.getCaps"),
|
||||
/**
|
||||
*获取视频诊断进行状态(CFG_VIDEODIAGNOSIS_STATE_INFO)
|
||||
*/
|
||||
CFG_CMD_VIDEODIAGNOSIS_GETSTATE("videoDiagnosisServer.getState"),
|
||||
/**
|
||||
* 获取云台支持信息(CFG_CAP_PTZ_ENABLEINFO)
|
||||
*/
|
||||
CFG_CAP_CMD_PTZ_ENABLE("ptz.factory.instance");
|
||||
/**
|
||||
* 获取门禁能力集,对应结构体CFG_CAP_ACCESSCONTROL
|
||||
*/
|
||||
public static final String CFG_CAP_CMD_ACCESSCONTROLMANAGER="accessControlManager.getCaps";
|
||||
private String cmd;
|
||||
EM_CFG_CAP_CMD(String cmd){
|
||||
this.cmd=cmd;
|
||||
}
|
||||
|
||||
public String getCmd() {
|
||||
return cmd;
|
||||
}
|
||||
}
|
||||
@ -1,57 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 通道宽度
|
||||
* @date 2021/2/7
|
||||
*/
|
||||
public enum EM_CHANNEL_WIDTH {
|
||||
/** 未知 */
|
||||
EM_CHANNEL_WIDTH_UNKNOWN(-1, "未知"),
|
||||
/** 600mm */
|
||||
EM_CHANNEL_WIDTH_600(0, "600mm"),
|
||||
/** 700mm */
|
||||
EM_CHANNEL_WIDTH_700(1, "700mm"),
|
||||
/** 800mm */
|
||||
EM_CHANNEL_WIDTH_800(2, "800mm"),
|
||||
/** 900mm */
|
||||
EM_CHANNEL_WIDTH_900(3, "900mm"),
|
||||
/** 1000mm */
|
||||
EM_CHANNEL_WIDTH_1000(4, "1000mm"),
|
||||
/** 1100mm */
|
||||
EM_CHANNEL_WIDTH_1100(5, "1100mm"),
|
||||
/** 1200mm */
|
||||
EM_CHANNEL_WIDTH_1200(6, "1200mm");
|
||||
private int emWidth;
|
||||
private String desc;
|
||||
|
||||
EM_CHANNEL_WIDTH(int emWidth, String desc) {
|
||||
this.emWidth = emWidth;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public int getEmWidth() {
|
||||
return emWidth;
|
||||
}
|
||||
|
||||
public void setEmWidth(int emWidth) {
|
||||
this.emWidth = emWidth;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
public static EM_CHANNEL_WIDTH getChannelWidth(int emWidth){
|
||||
for (EM_CHANNEL_WIDTH channelWidth :EM_CHANNEL_WIDTH.values() ) {
|
||||
if(channelWidth.emWidth==emWidth){
|
||||
return channelWidth;
|
||||
}
|
||||
}
|
||||
return EM_CHANNEL_WIDTH_UNKNOWN;
|
||||
}
|
||||
}
|
||||
@ -1,28 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 诊断结果状态
|
||||
* @date 2021/2/22
|
||||
*/
|
||||
public enum EM_COLLECTIVITY_STATE {
|
||||
/** 成功 */
|
||||
EM_COLLECTIVITY_STATE_SUCCESSED,
|
||||
/** 失败 */
|
||||
EM_COLLECTIVITY_STATE_FAILED;
|
||||
|
||||
/**
|
||||
* 默认返回failed
|
||||
* @param state
|
||||
* @return
|
||||
*/
|
||||
public EM_COLLECTIVITY_STATE getCollectivityState(int state) {
|
||||
for (EM_COLLECTIVITY_STATE collectivityState : EM_COLLECTIVITY_STATE.values()) {
|
||||
if (collectivityState.ordinal() == state) {
|
||||
return collectivityState;
|
||||
}
|
||||
}
|
||||
return EM_COLLECTIVITY_STATE_FAILED;
|
||||
}
|
||||
}
|
||||
@ -1,41 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 闸机防冲撞模式
|
||||
* @date 2021/2/7
|
||||
*/
|
||||
public enum EM_COLLISION_MODE {
|
||||
/** 未知 */
|
||||
EM_COLLISION_MODE_UNKNOWN(-1, "未知"),
|
||||
/** 2s松开离合 */
|
||||
EM_COLLISION_MODE_2S(0, "2s松开离合"),
|
||||
/** 5s松开离合 */
|
||||
EM_COLLISION_MODE_5S(1, "5s松开离合"),
|
||||
/** 人员离开松开离合 */
|
||||
EM_COLLISION_MODE_LEAVING(2, "人员离开松开离合");
|
||||
private int mode;
|
||||
private String desc;
|
||||
|
||||
EM_COLLISION_MODE(int mode, String desc) {
|
||||
this.mode = mode;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public int getMode() {
|
||||
return mode;
|
||||
}
|
||||
|
||||
public void setMode(int mode) {
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
||||
@ -1,43 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
public enum EM_CURRENT_STATE_TYPE {
|
||||
EM_CURRENT_STATE_UNKNOWN(0, "电流状态未知"),
|
||||
EM_CURRENT_STATE_OVER_CURRENT(1, "电流过载"), // 电流过载
|
||||
EM_CURRENT_STATE_NORMAL(2, "电流正常"), // 电流正常
|
||||
EM_CURRENT_STATE_UNDER_CURRENT(3, "电源欠流"); // 电源欠流
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private EM_CURRENT_STATE_TYPE(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_CURRENT_STATE_TYPE enumType : EM_CURRENT_STATE_TYPE.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_CURRENT_STATE_TYPE enumType : EM_CURRENT_STATE_TYPE.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,78 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 语音类型
|
||||
* @date 2021/2/20
|
||||
*/
|
||||
public enum EM_CUSTOM_EDUCATION_VOICE_TYPE {
|
||||
/** 未知 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_UNKNOWN,
|
||||
/** 超时出校 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_LEAVE_SCHOOL_TIMEOUT,
|
||||
/** 超时进校 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_ENTER_SCHOOL_TIMEOUT,
|
||||
/** 出校 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_LEAVE_SCHOOL,
|
||||
/** 此卡未绑定 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_CARD_NOT_BIND,
|
||||
/** 寄宿生 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_BOARDER,
|
||||
/** 家长卡已挂失 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_PARENT_CARD_REPORT_LOST,
|
||||
/** 进校已过期 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_ENTER_SCHOOL_OVERDUE,
|
||||
/** 您有包裹待领取 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_PACKAGE_TO_PICKUP,
|
||||
/** 请假 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE,
|
||||
/** 请假返校超时 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_RETURN_SCHOOL_TIMEOUT_WHEN_ASKFORLEAVE,
|
||||
/** 请假进出校时间未到 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_INANDOUT_SCHOOL_TIMENOTUP_WHEN_ASKFORLEAVE,
|
||||
/** 请假拒绝出校 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_REFUSE_LEAVE_SCHOOL_WHEN_ASKFORLEAVE,
|
||||
/** 请假拒绝进校 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_REFUSE_ENTER_SCHOOL_WHEN_ASKFORLEAVE,
|
||||
/** 请假审核中 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE_IN_REVIEW,
|
||||
/** 请假已过期 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE_EXPIRED,
|
||||
/** 请假已批准 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_ASKFORLEAVE_APPROVED,
|
||||
/** 请假已失效禁止重复出校 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_FORBID_LEAVE_SCHOOL_WITH_LEAVE_INVALID,
|
||||
/** 时间未到 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_TIME_ISNOT_UP,
|
||||
/** 未预约 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_NOT_APPOINT,
|
||||
/** 未在允许时段内禁止通行 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_NO_PASSAGE_IN_NONPERMIT_TIMESECTION,
|
||||
/** 无效卡 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_INVALID_CARD,
|
||||
/** 已预约 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_ALREADY_APPOINTED,
|
||||
/** 允许返校 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_ALLOW_BACK_SCHOOL,
|
||||
/** 再见 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_GOODBYE,
|
||||
/** 正常进校 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_ENTER_SCHOOL_NORMALLY,
|
||||
/** 重复出校 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_REPEAT_LEAVE_SCHOOLL,
|
||||
/** 重复进校 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_REPEAT_ENTER_SCHOOLL,
|
||||
/** 走读生 */
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE_DAY_STUDENT;
|
||||
|
||||
public static EM_CUSTOM_EDUCATION_VOICE_TYPE getEducationVoiceType(int type) {
|
||||
for (EM_CUSTOM_EDUCATION_VOICE_TYPE educationVoiceType :
|
||||
EM_CUSTOM_EDUCATION_VOICE_TYPE.values()) {
|
||||
if (educationVoiceType.ordinal() == type) {
|
||||
return educationVoiceType;
|
||||
}
|
||||
}
|
||||
return EM_CUSTOM_EDUCATION_VOICE_TYPE_UNKNOWN;
|
||||
}
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* AccessControlCustomPassword记录集中密码的保存方式
|
||||
*/
|
||||
public enum EM_CUSTOM_PASSWORD_ENCRYPTION_MODE {
|
||||
/**
|
||||
* 未知方式
|
||||
*/
|
||||
EM_CUSTOM_PASSWORD_ENCRYPTION_MODE_UNKNOWN,
|
||||
/**
|
||||
* 明文
|
||||
*/
|
||||
EM_CUSTOM_PASSWORD_ENCRYPTION_MODE_PLAINTEXT,
|
||||
/**
|
||||
* MD5加密方式
|
||||
*/
|
||||
EM_CUSTOM_PASSWORD_ENCRYPTION_MODE_MD5,
|
||||
}
|
||||
@ -1,52 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
import com.zhehekeji.web.lib.joyware.NetSDKLib;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 智能分析数据源类型
|
||||
* @date 2020/10/19
|
||||
*/
|
||||
public enum EM_DATA_SOURCE_TYPE {
|
||||
/**
|
||||
* {@link NetSDKLib.NET_REMOTE_REALTIME_STREAM_INFO}
|
||||
*/
|
||||
EM_DATA_SOURCE_REMOTE_REALTIME_STREAM(1, "远程实时流"),
|
||||
/**
|
||||
* {@link NetSDKLib.NET_PUSH_PICFILE_INFO}
|
||||
*/
|
||||
EM_DATA_SOURCE_PUSH_PICFILE(2, "主动推送图片文件");
|
||||
private int type;
|
||||
private String des;
|
||||
|
||||
private EM_DATA_SOURCE_TYPE(int type, String des) {
|
||||
this.type = type;
|
||||
this.des = des;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getDes() {
|
||||
return des;
|
||||
}
|
||||
|
||||
public void setDes(String des) {
|
||||
this.des = des;
|
||||
}
|
||||
|
||||
public static EM_DATA_SOURCE_TYPE getDataSourceType(int type) {
|
||||
for (EM_DATA_SOURCE_TYPE source : EM_DATA_SOURCE_TYPE.values()) {
|
||||
if (type == source.getType()) {
|
||||
return source;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -1,48 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description
|
||||
* @date 2020/9/14
|
||||
*/
|
||||
public enum EM_DELIVERY_FILE_TYPE {
|
||||
/**
|
||||
* 未知
|
||||
*/
|
||||
EM_DELIVERY_FILE_TYPE_UNKNOWN(0,"未知"),
|
||||
/**
|
||||
* 视频
|
||||
*/
|
||||
EM_DELIVERY_FILE_TYPE_VIDEO(1,"视频"),
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
EM_DELIVERY_FILE_TYPE_IMAGE(2,"图片"),
|
||||
/**
|
||||
* 音频
|
||||
*/
|
||||
EM_DELIVERY_FILE_TYPE_AUDIO(3,"音频");
|
||||
private int type;
|
||||
private String desc;
|
||||
private EM_DELIVERY_FILE_TYPE(int type,String desc){
|
||||
this.type=type;
|
||||
this.desc=desc;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
||||
@ -1,48 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 闸机断电以后门摆动放向
|
||||
* @date 2021/2/7
|
||||
*/
|
||||
public enum EM_DIRECTION_AFTER_POWER_OFF {
|
||||
/** 未知 */
|
||||
EM_DIRECTION_AFTER_POWER_OFF_UNKNOWN(-1, "未知"),
|
||||
/** 进门方向 */
|
||||
EM_DIRECTION_AFTER_POWER_OFF_IN(0, "进门方向"),
|
||||
/** 出门方向 */
|
||||
EM_DIRECTION_AFTER_POWER_OFF_OUT(1, "出门方向");
|
||||
private int mode;
|
||||
private String desc;
|
||||
|
||||
EM_DIRECTION_AFTER_POWER_OFF(int mode, String desc) {
|
||||
this.mode = mode;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public static EM_DIRECTION_AFTER_POWER_OFF getEmDirectionAfterPowerOff(int mode) {
|
||||
for (EM_DIRECTION_AFTER_POWER_OFF powerOff : EM_DIRECTION_AFTER_POWER_OFF.values()) {
|
||||
if (powerOff.mode == mode) {
|
||||
return powerOff;
|
||||
}
|
||||
}
|
||||
return EM_DIRECTION_AFTER_POWER_OFF_UNKNOWN;
|
||||
}
|
||||
|
||||
public int getMode() {
|
||||
return mode;
|
||||
}
|
||||
|
||||
public void setMode(int mode) {
|
||||
this.mode = mode;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 光盘状态
|
||||
* @date 2021/2/22
|
||||
*/
|
||||
public enum EM_DISK_STATE {
|
||||
/** 未知 */
|
||||
EM_DISK_STATE_UNKNOWN,
|
||||
/** 已放磁盘 */
|
||||
EM_DISK_STATE_EXIST,
|
||||
/** 未放磁盘 */
|
||||
EM_DISK_STATE_NO_EXIST,
|
||||
/** 需要换盘 */
|
||||
EM_DISK_STATE_NEED_CHANGE;
|
||||
|
||||
public static EM_DISK_STATE getDiskState(int state) {
|
||||
for (EM_DISK_STATE diskState : EM_DISK_STATE.values()) {
|
||||
if (diskState.ordinal() == state) {
|
||||
return diskState;
|
||||
}
|
||||
}
|
||||
return EM_DISK_STATE_UNKNOWN;
|
||||
}
|
||||
}
|
||||
@ -1,51 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
public enum EM_DRIVING_DIRECTION {
|
||||
|
||||
/**
|
||||
* 未知
|
||||
*/
|
||||
EM_DRIVING_DIRECTION_UNKNOWN(0,"未知"),
|
||||
/**
|
||||
* 驶入
|
||||
*/
|
||||
EM_DRIVING_DIRECTION_IN(1,"驶入"),
|
||||
/**
|
||||
* 驶出
|
||||
*/
|
||||
EM_DRIVING_DIRECTION_OUT(2,"驶出");
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private EM_DRIVING_DIRECTION(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_DRIVING_DIRECTION enumType : EM_DRIVING_DIRECTION.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_DRIVING_DIRECTION enumType : EM_DRIVING_DIRECTION.values()) {
|
||||
if (givenNote.equals(enumType.getNote()) ) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -1,38 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 47081
|
||||
* @version 1.0
|
||||
* @description 紧急报警状态
|
||||
* @date 2021/2/22
|
||||
*/
|
||||
public enum EM_EMERGENCYSTATUS_TYPE {
|
||||
/** 未知 */
|
||||
EM_EMERGENCYSTATUS_UNKNOWN(-1, "未知"),
|
||||
EM_EMERGENCYSTATUS_CLOSE(0, "关闭"),
|
||||
EM_EMERGENCYSTATUS_OPEN(1, "开启");
|
||||
private int type;
|
||||
private String desc;
|
||||
|
||||
EM_EMERGENCYSTATUS_TYPE(int type, String desc) {
|
||||
this.type = type;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public static EM_EMERGENCYSTATUS_TYPE getEmergencyStatusType(int type) {
|
||||
for (EM_EMERGENCYSTATUS_TYPE emergencyStatus : EM_EMERGENCYSTATUS_TYPE.values()) {
|
||||
if (emergencyStatus.type == type) {
|
||||
return emergencyStatus;
|
||||
}
|
||||
}
|
||||
return EM_EMERGENCYSTATUS_UNKNOWN;
|
||||
}
|
||||
}
|
||||
@ -1,63 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 251823
|
||||
* @version 1.0
|
||||
* @description 进口方向
|
||||
* @date 2020/11/07
|
||||
*/
|
||||
public enum EM_ENTRY_DIRECTION {
|
||||
|
||||
// 未知
|
||||
EM_ENTRY_UNKNOWN(0, "未知"),
|
||||
// 北向南
|
||||
EM_ENTRY_NORTH_TO_SOUTH(1, "北向南"),
|
||||
// 东北向西南
|
||||
EM_ENTRY_EASTNORTH_TO_WESTSOUTH(2, "东北向西南"),
|
||||
// 东向西
|
||||
EM_ENTRY_EAST_TO_WEST(3, "东向西"),
|
||||
// 东南向西北
|
||||
EM_ENTRY_EASTSOUTH_TO_WESTNORTH(4, "东南向西北"),
|
||||
// 南向北
|
||||
EM_ENTRY_SOUTH_TO_NORTH(5, "南向北"),
|
||||
// 西南向东北
|
||||
EM_ENTRY_WESTSOUTH_TO_EASTSOUTH(6, "西南向东北"),
|
||||
// 西向东
|
||||
EM_ENTRY_WEST_TO_EAST(7, "西向东"),
|
||||
// 西北向东南
|
||||
EM_ENTRY_WESTNORTH_TO_EASTSOUTH(8, "西北向东南");
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private EM_ENTRY_DIRECTION(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_ENTRY_DIRECTION enumType : EM_ENTRY_DIRECTION.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_ENTRY_DIRECTION enumType : EM_ENTRY_DIRECTION.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -1,56 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 251823
|
||||
* @version 1.0
|
||||
* @description 进口类型
|
||||
* @date 2020/11/07
|
||||
*/
|
||||
public enum EM_ENTRY_TYPE {
|
||||
|
||||
// 未知
|
||||
EM_ENTRY_TYPE_UNKNOWN(0, "未知"),
|
||||
// 左转
|
||||
EM_ENTRY_TYPE_TURN_LEFT(1, "左转"),
|
||||
// 直行
|
||||
EM_ENTRY_TYPE_STRAIGHT(2, "直行"),
|
||||
// 右转
|
||||
EM_ENTRY_TYPE_TRUN_RIGHT(3, "右转"),
|
||||
// 掉头
|
||||
EM_ENTRY_TYPE_TURN_ROUND(4, "掉头");
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private EM_ENTRY_TYPE(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_ENTRY_TYPE enumType : EM_ENTRY_TYPE.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_ENTRY_TYPE enumType : EM_ENTRY_TYPE.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,57 +0,0 @@
|
||||
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||
|
||||
/**
|
||||
* @author 251823
|
||||
* @description 睿厨着装检特征列表
|
||||
* @date 2021/01/11
|
||||
*/
|
||||
public enum EM_FEATURE_LIST_TYPE {
|
||||
// 未知
|
||||
EM_FEATURE_LIST_UNKNOWN(0, "未知"),
|
||||
|
||||
// 是否戴口罩
|
||||
EM_FEATURE_LIST_HAS_MASK(1, "是否戴口罩"),
|
||||
|
||||
// 是否戴厨师帽
|
||||
EM_FEATURE_LIST_HAS_CHEF_HAT(2, "是否戴厨师帽"),
|
||||
|
||||
// 是否穿厨师服
|
||||
EM_FEATURE_LIST_HAS_CHEF_CLOTHES(3, "是否穿厨师服"),
|
||||
|
||||
// 厨师服的颜色
|
||||
EM_FEATURE_LIST_CHEF_CLOTHES_COLOR(4, "厨师服的颜色");
|
||||
|
||||
private int value;
|
||||
private String note;
|
||||
|
||||
private EM_FEATURE_LIST_TYPE(int givenValue, String note) {
|
||||
this.value = givenValue;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String getNoteByValue(int givenValue) {
|
||||
for (EM_FEATURE_LIST_TYPE enumType : EM_FEATURE_LIST_TYPE.values()) {
|
||||
if (givenValue == enumType.getValue()) {
|
||||
return enumType.getNote();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int getValueByNote(String givenNote) {
|
||||
for (EM_FEATURE_LIST_TYPE enumType : EM_FEATURE_LIST_TYPE.values()) {
|
||||
if (givenNote.equals(enumType.getNote())) {
|
||||
return enumType.getValue();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue