From 46a8044f3449c6e9a884c90477ada5a5e6879367 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期二, 01 八月 2017 17:37:39 +0800
Subject: [PATCH]
---
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java | 193 +++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 188 insertions(+), 5 deletions(-)
diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java
index a9a7b64..db54c45 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/discern/query/item/SurveillanceQueryItem.java
@@ -1,5 +1,14 @@
package cn.com.basic.face.discern.query.item;
+import android.graphics.Bitmap;
+
+import java.io.ByteArrayOutputStream;
+import java.util.Date;
+
+import android.net.Uri;
+import android.util.Base64;
+
+import cn.com.basic.face.util.NativeImg;
public class SurveillanceQueryItem {
@@ -15,7 +24,48 @@
private String imagePath;
// 绉诲姩鐢佃瘽
private String mobilePhone;
- private int type;
+ // 娉ㄥ唽鎴栫櫥璁�
+ private int registerOrCheckIn;
+ // 杩涙憚鍍忓ご鎴栧嚭鎽勫儚澶�
+ private String inOrOutCamera;
+ // 鐘舵��
+ private String status;
+
+ private Bitmap bitmap;
+
+ private String warning;
+ //
+ private String base64Image;
+
+ private String width;
+
+ private String height;
+
+ private Uri localUri;
+
+ private boolean surveillancePhotoSelected;
+
+ private NativeImg nativeImg;
+
+ private Date createTime;
+
+ public static long initialSelectId = 1;
+
+ private long idForSelect;
+
+ private String surveillancePhoto;
+
+ private int stTrackId;
+ private String visitorType;
+ private String authentication;
+
+ public SurveillanceQueryItem() {
+ if (initialSelectId > 10000) {
+ initialSelectId = 1;
+ }
+ idForSelect = initialSelectId;
+ initialSelectId++;
+ }
/**
* Get 浜哄憳涓婚敭
@@ -108,11 +158,144 @@
;
}
- public void setType(int type) {
- this.type = type;
+ public void setRegisterOrCheckIn(int registerOrCheckIn) {
+ this.registerOrCheckIn = registerOrCheckIn;
}
- public int getType() {
- return type;
+ public int getRegisterOrCheckIn() {
+ return registerOrCheckIn;
+ }
+
+ public String getInOrOutCamera() {
+ return inOrOutCamera;
+ }
+
+ public void setInOrOutCamera(String inOrOutCamera) {
+ this.inOrOutCamera = inOrOutCamera;
+ }
+
+ public Bitmap getBitmap() {
+ return bitmap;
+ }
+
+ public void setBitmap(Bitmap bitmap) {
+ this.bitmap = bitmap;
+ }
+
+ public String getWarning() {
+ return warning;
+ }
+
+ public void setWarning(String warning) {
+ this.warning = warning;
+ }
+
+ public String getWidth() {
+ return width;
+ }
+
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ public String getHeight() {
+ return height;
+ }
+
+ public void setHeight(String height) {
+ this.height = height;
+ }
+
+ public String getBase64Image() {
+// ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
+// bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);
+// byte[] imageBytes = byteArrayOutputStream.toByteArray();
+// String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);
+// return encodedImage;
+ return "";
+ }
+
+ public void setBase64Image(String base64Image) {
+ this.base64Image = base64Image;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public Uri getLocalUri() {
+ return localUri;
+ }
+
+ public void setLocalUri(Uri localUri) {
+ this.localUri = localUri;
+ }
+
+ public boolean isSurveillancePhotoSelected() {
+ return surveillancePhotoSelected;
+ }
+
+ public void setSurveillancePhotoSelected(boolean surveillancePhotoSelected) {
+ this.surveillancePhotoSelected = surveillancePhotoSelected;
+ }
+
+ public NativeImg getNativeImg() {
+ return nativeImg;
+ }
+
+ public void setNativeImg(NativeImg nativeImg) {
+ this.nativeImg = nativeImg;
+ }
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public long getIdForSelect() {
+ return idForSelect;
+ }
+
+ public void setIdForSelect(long idForSelect) {
+ this.idForSelect = idForSelect;
+ }
+
+ public String getSurveillancePhoto() {
+ return surveillancePhoto;
+ }
+
+ public void setSurveillancePhoto(String surveillancePhoto) {
+ this.surveillancePhoto = surveillancePhoto;
+ }
+
+ public int getStTrackId() {
+ return stTrackId;
+ }
+
+ public void setStTrackId(int stTrackId) {
+ this.stTrackId = stTrackId;
+ }
+
+ public String getVisitorType() {
+ return visitorType;
+ }
+
+ public void setVisitorType(String visitorType) {
+ this.visitorType = visitorType;
+ }
+
+ public String getAuthentication() {
+ return authentication;
+ }
+
+ public void setAuthentication(String authentication) {
+ this.authentication = authentication;
}
}
--
Gitblit v1.8.0