001// Automatically generated by the Thrifty compiler; do not edit!
002// Generated on: 2020-11-05T09:22:38.165Z
003// Source: J:\facelog\facelog-service\IFaceLog.thrift at 280:1
004package net.gdface.facelog.client.thrift;
005
006import com.microsoft.thrifty.service.ServiceMethodCallback;
007import java.util.List;
008import java.util.Map;
009import javax.annotation.Generated;
010import okio.ByteString;
011
012@Generated(
013    value = "com.microsoft.thrifty.gen.ThriftyCodeGenerator",
014    comments = "https://github.com/microsoft/thrifty"
015)
016public interface IFaceLog {
017  void addErrorLog(ErrorLogBean errorLogBean, Token token, ServiceMethodCallback<Void> callback);
018
019  void addFeature(ByteString feature, String featureVersion, Integer personId,
020      List<FaceBean> faecBeans, String removed, Token token,
021      ServiceMethodCallback<FeatureBean> callback);
022
023  void addFeatureMulti(ByteString feature, String featureVersion, Integer personId,
024      List<ByteString> photos, List<FaceBean> faces, String removed, Token token,
025      ServiceMethodCallback<FeatureBean> callback);
026
027  void addFeatureWithImage(ByteString feature, String featureVersion, Integer personId,
028      Boolean asIdPhotoIfAbsent, ByteString featurePhoto, FaceBean faceBean, String removed,
029      Token token, ServiceMethodCallback<FeatureBean> callback);
030
031  void addImage(ByteString imageData, Integer deviceId, FaceBean faceBean, Integer personId,
032      Token token, ServiceMethodCallback<ImageBean> callback);
033
034  void addLog(LogBean logBean, Token token, ServiceMethodCallback<Void> callback);
035
036  void addLogFull(LogBean logBean, FaceBean faceBean, ByteString featureImage, Token token,
037      ServiceMethodCallback<Void> callback);
038
039  void addLogWithFaceImage(LogBean logBean, ByteString faceImage, Token token,
040      ServiceMethodCallback<Void> callback);
041
042  void addLogs(List<LogBean> beans, Token token, ServiceMethodCallback<Void> callback);
043
044  void addLogsFull(List<LogBean> logBeans, List<FaceBean> faceBeans, List<ByteString> featureImages,
045      Token token, ServiceMethodCallback<Void> callback);
046
047  void addLogsWithFaceImage(List<LogBean> logBeans, List<ByteString> faceImages, Token token,
048      ServiceMethodCallback<Void> callback);
049
050  void applyAckChannel(Token token, ServiceMethodCallback<String> callback);
051
052  void applyAckChannelWithDuration(Integer duration, Token token,
053      ServiceMethodCallback<String> callback);
054
055  void applyCmdSn(Token token, ServiceMethodCallback<Integer> callback);
056
057  void applyPersonToken(Integer personId, String password, Boolean isMd5,
058      ServiceMethodCallback<Token> callback);
059
060  void applyRootToken(String password, Boolean isMd5, ServiceMethodCallback<Token> callback);
061
062  void applyUserToken(Integer userid, String password, Boolean isMd5,
063      ServiceMethodCallback<Token> callback);
064
065  void bindBorder(Integer personGroupId, Integer deviceGroupId, Token token,
066      ServiceMethodCallback<Void> callback);
067
068  void childListForDeviceGroup(Integer deviceGroupId,
069      ServiceMethodCallback<List<Integer>> callback);
070
071  void childListForPersonGroup(Integer personGroupId,
072      ServiceMethodCallback<List<Integer>> callback);
073
074  void countDeviceByWhere(String where, ServiceMethodCallback<Integer> callback);
075
076  void countDeviceGroupByWhere(String where, ServiceMethodCallback<Integer> callback);
077
078  void countErrorLogByWhere(String where, ServiceMethodCallback<Integer> callback);
079
080  void countLogByWhere(String where, ServiceMethodCallback<Integer> callback);
081
082  void countLogLightByVerifyTime(Long timestamp, ServiceMethodCallback<Integer> callback);
083
084  void countLogLightByVerifyTimeTimestr(String timestamp, ServiceMethodCallback<Integer> callback);
085
086  void countLogLightByWhere(String where, ServiceMethodCallback<Integer> callback);
087
088  void countPersonByWhere(String where, ServiceMethodCallback<Integer> callback);
089
090  void countPersonGroupByWhere(String where, ServiceMethodCallback<Integer> callback);
091
092  void countPersonLog(Integer personId, Long startDate, Long endDate,
093      ServiceMethodCallback<Map<String, Integer>> callback);
094
095  void countPersonLogTimeStr(Integer personId, String startDate, String endDate,
096      ServiceMethodCallback<Map<String, Integer>> callback);
097
098  void createTempPwd(Integer targetId, TmpPwdTargetType targetType, String expiryDate, Token token,
099      ServiceMethodCallback<String> callback);
100
101  void createTempPwdWithDuration(Integer targetId, TmpPwdTargetType targetType, Integer duration,
102      Token token, ServiceMethodCallback<String> callback);
103
104  void deleteAllFeaturesByPersonId(Integer personId, Boolean deleteImage, Token token,
105      ServiceMethodCallback<Integer> callback);
106
107  void deleteDevice(Integer id, Token token, ServiceMethodCallback<Boolean> callback);
108
109  void deleteDeviceByMac(String mac, Token token, ServiceMethodCallback<Boolean> callback);
110
111  void deleteDeviceGroup(Integer deviceGroupId, Token token,
112      ServiceMethodCallback<Integer> callback);
113
114  void deleteErrorLogByWhere(String where, Token token, ServiceMethodCallback<Integer> callback);
115
116  void deleteFeature(String featureMd5, Boolean deleteImage, Token token,
117      ServiceMethodCallback<List<String>> callback);
118
119  void deleteGroupPermitOnDeviceGroup(Integer deviceGroupId, Token token,
120      ServiceMethodCallback<Integer> callback);
121
122  void deleteImage(String imageMd5, Token token, ServiceMethodCallback<Integer> callback);
123
124  void deleteLogByWhere(String where, Token token, ServiceMethodCallback<Integer> callback);
125
126  void deletePermitById(Integer deviceGroupId, Integer personGroupId, Token token,
127      ServiceMethodCallback<Integer> callback);
128
129  void deletePerson(Integer personId, Token token, ServiceMethodCallback<Integer> callback);
130
131  void deletePersonByPapersNum(String papersNum, Token token,
132      ServiceMethodCallback<Integer> callback);
133
134  void deletePersonGroup(Integer personGroupId, Token token,
135      ServiceMethodCallback<Integer> callback);
136
137  void deletePersonGroupPermit(Integer personGroupId, Token token,
138      ServiceMethodCallback<Integer> callback);
139
140  void deletePersons(List<Integer> personIdList, Token token,
141      ServiceMethodCallback<Integer> callback);
142
143  void deletePersonsByPapersNum(List<String> papersNumlist, Token token,
144      ServiceMethodCallback<Integer> callback);
145
146  void disablePerson(Integer personId, Integer moveToGroupId, Boolean deletePhoto,
147      Boolean deleteFeature, Boolean deleteLog, Token token, ServiceMethodCallback<Void> callback);
148
149  void disablePersonList(List<Integer> personIdList, Token token,
150      ServiceMethodCallback<Void> callback);
151
152  void existsDevice(Integer id, ServiceMethodCallback<Boolean> callback);
153
154  void existsFeature(String md5, ServiceMethodCallback<Boolean> callback);
155
156  void existsImage(String md5, ServiceMethodCallback<Boolean> callback);
157
158  void existsPerson(Integer persionId, ServiceMethodCallback<Boolean> callback);
159
160  void faceRecognizePersonPermitted(ByteString imageData, Double threshold, Integer deviceId,
161      ServiceMethodCallback<Integer> callback);
162
163  void getDevice(Integer deviceId, ServiceMethodCallback<DeviceBean> callback);
164
165  void getDeviceByMac(String mac, ServiceMethodCallback<DeviceBean> callback);
166
167  void getDeviceGroup(Integer deviceGroupId, ServiceMethodCallback<DeviceGroupBean> callback);
168
169  void getDeviceGroups(List<Integer> groupIdList,
170      ServiceMethodCallback<List<DeviceGroupBean>> callback);
171
172  void getDeviceGroupsBelongs(Integer deviceId, ServiceMethodCallback<List<Integer>> callback);
173
174  void getDeviceGroupsPermit(Integer personGroupId, ServiceMethodCallback<List<Integer>> callback);
175
176  void getDeviceGroupsPermittedBy(Integer personGroupId,
177      ServiceMethodCallback<List<Integer>> callback);
178
179  void getDeviceIdOfFeature(String featureMd5, ServiceMethodCallback<Integer> callback);
180
181  void getDevices(List<Integer> idList, ServiceMethodCallback<List<DeviceBean>> callback);
182
183  void getDevicesOfGroup(Integer deviceGroupId, ServiceMethodCallback<List<Integer>> callback);
184
185  void getFace(Integer faceId, ServiceMethodCallback<FaceBean> callback);
186
187  void getFaceApiParameters(Token token, ServiceMethodCallback<Map<String, String>> callback);
188
189  void getFacesOfFeature(String featureMd5, ServiceMethodCallback<List<FaceBean>> callback);
190
191  void getFacesOfImage(String imageMd5, ServiceMethodCallback<List<FaceBean>> callback);
192
193  void getFeature(String md5, ServiceMethodCallback<FeatureBean> callback);
194
195  void getFeatureBytes(String md5, ServiceMethodCallback<ByteString> callback);
196
197  void getFeatureBytesList(List<String> md5List, Boolean truncation,
198      ServiceMethodCallback<List<ByteString>> callback);
199
200  void getFeatureBytesTruncation(String md5, Boolean truncation,
201      ServiceMethodCallback<ByteString> callback);
202
203  void getFeatures(List<String> md5List, ServiceMethodCallback<List<FeatureBean>> callback);
204
205  void getFeaturesByPersonIdAndSdkVersion(Integer personId, String sdkVersion,
206      ServiceMethodCallback<List<String>> callback);
207
208  void getFeaturesOfImage(String imageMd5, ServiceMethodCallback<List<String>> callback);
209
210  void getFeaturesOfPerson(Integer personId, ServiceMethodCallback<List<String>> callback);
211
212  void getFeaturesPermittedOnDevice(Integer deviceId, Boolean ignoreSchedule, String sdkVersion,
213      List<String> excludeFeatureIds, Long timestamp, ServiceMethodCallback<List<String>> callback);
214
215  void getGroupPermit(Integer deviceId, Integer personGroupId,
216      ServiceMethodCallback<PermitBean> callback);
217
218  void getGroupPermitOnDeviceGroup(Integer deviceGroupId, Integer personGroupId,
219      ServiceMethodCallback<PermitBean> callback);
220
221  void getGroupPermits(Integer deviceId, List<Integer> personGroupIdList,
222      ServiceMethodCallback<List<PermitBean>> callback);
223
224  void getImage(String imageMD5, ServiceMethodCallback<ImageBean> callback);
225
226  void getImageBytes(String imageMD5, ServiceMethodCallback<ByteString> callback);
227
228  void getImageBytesRef(String primaryKey, String refType,
229      ServiceMethodCallback<ByteString> callback);
230
231  void getImageRef(String primaryKey, String refType, ServiceMethodCallback<ImageBean> callback);
232
233  void getImagesAssociatedByFeature(String featureMd5,
234      ServiceMethodCallback<List<String>> callback);
235
236  void getLogBeansByPersonId(Integer personId, ServiceMethodCallback<List<LogBean>> callback);
237
238  void getMessageQueueParameters(Token token, ServiceMethodCallback<Map<MQParam, String>> callback);
239
240  void getPerson(Integer personId, ServiceMethodCallback<PersonBean> callback);
241
242  void getPersonByMobilePhone(String mobilePhone, ServiceMethodCallback<PersonBean> callback);
243
244  void getPersonByMobilePhoneReal(String mobilePhone, Token token,
245      ServiceMethodCallback<PersonBean> callback);
246
247  void getPersonByPapersNum(String papersNum, ServiceMethodCallback<PersonBean> callback);
248
249  void getPersonByPapersNumReal(String papersNum, Token token,
250      ServiceMethodCallback<PersonBean> callback);
251
252  void getPersonGroup(Integer personGroupId, ServiceMethodCallback<PersonGroupBean> callback);
253
254  void getPersonGroups(List<Integer> groupIdList,
255      ServiceMethodCallback<List<PersonGroupBean>> callback);
256
257  void getPersonGroupsBelongs(Integer personId, ServiceMethodCallback<List<Integer>> callback);
258
259  void getPersonGroupsPermittedBy(Integer deviceGroupId,
260      ServiceMethodCallback<List<Integer>> callback);
261
262  void getPersonPermit(Integer deviceId, Integer personId,
263      ServiceMethodCallback<PermitBean> callback);
264
265  void getPersonPermits(Integer deviceId, List<Integer> personIdList,
266      ServiceMethodCallback<List<PermitBean>> callback);
267
268  void getPersonReal(Integer personId, Token token, ServiceMethodCallback<PersonBean> callback);
269
270  void getPersons(List<Integer> idList, ServiceMethodCallback<List<PersonBean>> callback);
271
272  void getPersonsOfGroup(Integer personGroupId, ServiceMethodCallback<List<Integer>> callback);
273
274  void getPersonsPermittedOnDevice(Integer deviceId, Boolean ignoreSchedule,
275      List<Integer> excludePersonIds, Long timestamp,
276      ServiceMethodCallback<List<Integer>> callback);
277
278  void getPersonsReal(List<Integer> idList, Token token,
279      ServiceMethodCallback<List<PersonBean>> callback);
280
281  void getProperties(String prefix, Token token,
282      ServiceMethodCallback<Map<String, String>> callback);
283
284  void getProperty(String key, Token token, ServiceMethodCallback<String> callback);
285
286  void getRedisParameters(Token token, ServiceMethodCallback<Map<MQParam, String>> callback);
287
288  void getServiceConfig(Token token, ServiceMethodCallback<Map<String, String>> callback);
289
290  void getSubDeviceGroup(Integer deviceGroupId, ServiceMethodCallback<List<Integer>> callback);
291
292  void getSubPersonGroup(Integer personGroupId, ServiceMethodCallback<List<Integer>> callback);
293
294  void getTargetInfo4PwdOnDevice(String pwd, Token token,
295      ServiceMethodCallback<TmpwdTargetInfo> callback);
296
297  void initTopGroup(TopGroupInfo groupInfo, Token token, ServiceMethodCallback<Integer> callback);
298
299  void isDisable(Integer personId, ServiceMethodCallback<Boolean> callback);
300
301  void isLocal(ServiceMethodCallback<Boolean> callback);
302
303  void isValidAckChannel(String ackChannel, ServiceMethodCallback<Boolean> callback);
304
305  void isValidCmdSn(Integer cmdSn, ServiceMethodCallback<Boolean> callback);
306
307  void isValidDeviceToken(Token token, ServiceMethodCallback<Boolean> callback);
308
309  void isValidPassword(String userId, String password, Boolean isMd5,
310      ServiceMethodCallback<Boolean> callback);
311
312  void isValidPersonToken(Token token, ServiceMethodCallback<Boolean> callback);
313
314  void isValidRootToken(Token token, ServiceMethodCallback<Boolean> callback);
315
316  void isValidToken(Token token, ServiceMethodCallback<Boolean> callback);
317
318  void isValidUserToken(Token token, ServiceMethodCallback<Boolean> callback);
319
320  void iso8601Time(ServiceMethodCallback<String> callback);
321
322  void listOfParentForDeviceGroup(Integer deviceGroupId,
323      ServiceMethodCallback<List<Integer>> callback);
324
325  void listOfParentForPersonGroup(Integer personGroupId,
326      ServiceMethodCallback<List<Integer>> callback);
327
328  void loadAllPerson(ServiceMethodCallback<List<Integer>> callback);
329
330  void loadDeviceByWhere(String where, Integer startRow, Integer numRows,
331      ServiceMethodCallback<List<DeviceBean>> callback);
332
333  void loadDeviceGroupByWhere(String where, Integer startRow, Integer numRows,
334      ServiceMethodCallback<List<Integer>> callback);
335
336  void loadDeviceGroupIdByWhere(String where, ServiceMethodCallback<List<Integer>> callback);
337
338  void loadDeviceIdByWhere(String where, ServiceMethodCallback<List<Integer>> callback);
339
340  void loadDistinctIntegerColumn(String table, String column, String where,
341      ServiceMethodCallback<List<Integer>> callback);
342
343  void loadDistinctStringColumn(String table, String column, String where,
344      ServiceMethodCallback<List<String>> callback);
345
346  void loadErrorLogByWhere(String where, Integer startRow, Integer numRows,
347      ServiceMethodCallback<List<ErrorLogBean>> callback);
348
349  void loadFeatureMd5ByUpdate(Long timestamp, ServiceMethodCallback<List<String>> callback);
350
351  void loadFeatureMd5ByUpdateTimeStr(String timestamp,
352      ServiceMethodCallback<List<String>> callback);
353
354  void loadLogByWhere(String where, Integer startRow, Integer numRows,
355      ServiceMethodCallback<List<LogBean>> callback);
356
357  void loadLogLightByVerifyTime(Long timestamp, Integer startRow, Integer numRows,
358      ServiceMethodCallback<List<LogLightBean>> callback);
359
360  void loadLogLightByVerifyTimeTimestr(String timestamp, Integer startRow, Integer numRows,
361      ServiceMethodCallback<List<LogLightBean>> callback);
362
363  void loadLogLightByWhere(String where, Integer startRow, Integer numRows,
364      ServiceMethodCallback<List<LogLightBean>> callback);
365
366  void loadPermitByUpdate(Long timestamp, ServiceMethodCallback<List<PermitBean>> callback);
367
368  void loadPermitByUpdateTimestr(String timestamp,
369      ServiceMethodCallback<List<PermitBean>> callback);
370
371  void loadPersonByWhere(String where, Integer startRow, Integer numRows,
372      ServiceMethodCallback<List<PersonBean>> callback);
373
374  void loadPersonByWhereReal(String where, Integer startRow, Integer numRows, Token token,
375      ServiceMethodCallback<List<PersonBean>> callback);
376
377  void loadPersonGroupByWhere(String where, Integer startRow, Integer numRows,
378      ServiceMethodCallback<List<Integer>> callback);
379
380  void loadPersonGroupIdByWhere(String where, ServiceMethodCallback<List<Integer>> callback);
381
382  void loadPersonIdByUpdateTime(Long timestamp, ServiceMethodCallback<List<Integer>> callback);
383
384  void loadPersonIdByUpdateTimeTimeStr(String timestamp,
385      ServiceMethodCallback<List<Integer>> callback);
386
387  void loadPersonIdByWhere(String where, ServiceMethodCallback<List<Integer>> callback);
388
389  void loadUpdatedPersons(Long timestamp, ServiceMethodCallback<List<Integer>> callback);
390
391  void loadUpdatedPersonsTimestr(String timestamp, ServiceMethodCallback<List<Integer>> callback);
392
393  void lockWakeup(DeviceBean deviceBean, Boolean ignoreSchedule, String sdkVersion,
394      ServiceMethodCallback<LockWakeupResponse> callback);
395
396  void offline(Token token, ServiceMethodCallback<Void> callback);
397
398  void online(DeviceBean device, ServiceMethodCallback<Token> callback);
399
400  void registerDevice(DeviceBean newDevice, ServiceMethodCallback<DeviceBean> callback);
401
402  void releasePersonToken(Token token, ServiceMethodCallback<Void> callback);
403
404  void releaseRootToken(Token token, ServiceMethodCallback<Void> callback);
405
406  void releaseUserToken(Token token, ServiceMethodCallback<Void> callback);
407
408  void replaceFeature(Integer personId, String featureMd5, Boolean deleteOldFeatureImage,
409      Token token, ServiceMethodCallback<Void> callback);
410
411  void rootGroupOfDevice(Integer deviceId, ServiceMethodCallback<Integer> callback);
412
413  void rootGroupOfDeviceGroup(Integer groupId, ServiceMethodCallback<Integer> callback);
414
415  void rootGroupOfPerson(Integer personId, ServiceMethodCallback<Integer> callback);
416
417  void rootGroupOfPersonGroup(Integer groupId, ServiceMethodCallback<Integer> callback);
418
419  void runCmd(List<Integer> target, Boolean group, String cmdpath, String jsonArgs,
420      String ackChannel, Token token, ServiceMethodCallback<String> callback);
421
422  void runTask(String taskQueue, String cmdpath, String jsonArgs, String ackChannel, Token token,
423      ServiceMethodCallback<Integer> callback);
424
425  void runTaskSync(String taskQueue, String cmdpath, String jsonArgs, Integer timeoutSecs,
426      Token token, ServiceMethodCallback<String> callback);
427
428  void saveDevice(DeviceBean deviceBean, Token token, ServiceMethodCallback<DeviceBean> callback);
429
430  void saveDeviceGroup(DeviceGroupBean deviceGroupBean, Token token,
431      ServiceMethodCallback<DeviceGroupBean> callback);
432
433  void savePermit(PermitBean permitBean, Token token, ServiceMethodCallback<PermitBean> callback);
434
435  void savePermitWithColumn(Integer deviceGroupId, Integer personGroupId, String column,
436      String value, Token token, ServiceMethodCallback<PermitBean> callback);
437
438  void savePerson(PersonBean personBean, Token token, ServiceMethodCallback<PersonBean> callback);
439
440  void savePersonFull(PersonBean personBean, ByteString idPhoto, ByteString feature,
441      String featureVersion, ByteString featureImage, FaceBean faceBean, Token token,
442      ServiceMethodCallback<PersonBean> callback);
443
444  void savePersonGroup(PersonGroupBean personGroupBean, Token token,
445      ServiceMethodCallback<PersonGroupBean> callback);
446
447  void savePersonWithPhoto(PersonBean personBean, ByteString idPhoto, Token token,
448      ServiceMethodCallback<PersonBean> callback);
449
450  void savePersonWithPhotoAndFeature(PersonBean personBean, ByteString idPhoto,
451      FeatureBean featureBean, Token token, ServiceMethodCallback<PersonBean> callback);
452
453  void savePersonWithPhotoAndFeatureMultiFaces(PersonBean personBean, ByteString idPhoto,
454      ByteString feature, String featureVersion, List<FaceBean> faceBeans, Token token,
455      ServiceMethodCallback<PersonBean> callback);
456
457  void savePersonWithPhotoAndFeatureMultiImage(PersonBean personBean, ByteString idPhoto,
458      ByteString feature, String featureVersion, List<ByteString> photos, List<FaceBean> faces,
459      Token token, ServiceMethodCallback<PersonBean> callback);
460
461  void savePersonWithPhotoAndFeatureSaved(PersonBean personBean, String idPhotoMd5,
462      String featureMd5, Token token, ServiceMethodCallback<PersonBean> callback);
463
464  void savePersons(List<PersonBean> persons, Token token, ServiceMethodCallback<Void> callback);
465
466  void savePersonsWithPhoto(List<ByteString> photos, List<PersonBean> persons, Token token,
467      ServiceMethodCallback<Integer> callback);
468
469  void saveServiceConfig(Token token, ServiceMethodCallback<Void> callback);
470
471  void sdkTaskQueueOf(String task, String sdkVersion, Token token,
472      ServiceMethodCallback<String> callback);
473
474  void setPersonExpiryDate(Integer personId, Long expiryDate, Token token,
475      ServiceMethodCallback<Void> callback);
476
477  void setPersonExpiryDateList(List<Integer> personIdList, Long expiryDate, Token token,
478      ServiceMethodCallback<Void> callback);
479
480  void setPersonExpiryDateTimeStr(Integer personId, String expiryDate, Token token,
481      ServiceMethodCallback<Void> callback);
482
483  void setProperties(Map<String, String> config, Token token, ServiceMethodCallback<Void> callback);
484
485  void setProperty(String key, String value, Token token, ServiceMethodCallback<Void> callback);
486
487  void taskQueueOf(String task, Token token, ServiceMethodCallback<String> callback);
488
489  void unbindBorder(Integer personGroupId, Integer deviceGroupId, Token token,
490      ServiceMethodCallback<Void> callback);
491
492  void unregisterDevice(Token token, ServiceMethodCallback<Void> callback);
493
494  void updateDevice(DeviceBean deviceBean, Token token, ServiceMethodCallback<DeviceBean> callback);
495
496  void version(ServiceMethodCallback<String> callback);
497
498  void versionInfo(ServiceMethodCallback<Map<String, String>> callback);
499}