| | |
| | | return instance;
|
| | | }
|
| | |
|
| | | public void findSurveillanceBottomList(final boolean isVisit) {
|
| | | if (!BaseApplication.deviceAvailable) {
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | public static class SurveillanceListThread extends Thread {
|
| | | @Override
|
| | | public void run() {
|
| | |
| | | }
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.SURVEILLANCE_UPLOAD);
|
| | | params.addBodyParameter("base64Photo", Base64.encodeToString(byteArray, 0, len, Base64.DEFAULT));
|
| | | params.addBodyParameter("deviceCompanyId", BaseApplication.getInstance().getDevice().getDeviceCompanyId());
|
| | | params.addBodyParameter("deviceCompanyId", BaseApplication.getInstance().getDevice().getCompanyId());
|
| | | params.addBodyParameter("deviceId", BaseApplication.getInstance().getDevice().getDeviceId());
|
| | | params.addBodyParameter("InOrOutCamera", cameraInOrOut+"");
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | |
| | | if (type == CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE
|
| | | || type == CommonVariables.Surveillance.VISIT_CHECK_IN_ITEM_TYPE
|
| | | ) {
|
| | | //item.setRegisterOrCheckIn(CommonVariables.Surveillance.VISIT_CHECK_IN_ITEM_TYPE);
|
| | | if (prevVisitorList.size() > 3 ) {
|
| | |
|
| | | }
|
| | | item.setCreateTime(new Date());
|
| | | newVisitorList.add(0, item);
|
| | | if (i < bitmapList.size()) {
|