init
This commit is contained in:
40
lib/zhiwen.dart
Normal file
40
lib/zhiwen.dart
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
import 'zhiwen_platform_interface.dart';
|
||||
|
||||
class Zhiwen {
|
||||
Future<String?> getPlatformVersion() {
|
||||
return ZhiwenPlatform.instance.getPlatformVersion();
|
||||
}
|
||||
|
||||
Future<bool> openDevice(String devicePath, int baudRate) {
|
||||
return ZhiwenPlatform.instance.openDevice(devicePath, baudRate);
|
||||
}
|
||||
|
||||
Future<void> closeDevice() {
|
||||
return ZhiwenPlatform.instance.closeDevice();
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> enrollFingerprint(int userId) {
|
||||
return ZhiwenPlatform.instance.enrollFingerprint(userId);
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> verifyFingerprint(int userId) {
|
||||
return ZhiwenPlatform.instance.verifyFingerprint(userId);
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> deleteAllFingerprint() {
|
||||
return ZhiwenPlatform.instance.deleteAllFingerprint();
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> deleteOneFingerprint(int userId) {
|
||||
return ZhiwenPlatform.instance.deleteOneFingerprint(userId);
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> identifyFingerprint() {
|
||||
return ZhiwenPlatform.instance.identifyFingerprint();
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> getUserCount() {
|
||||
return ZhiwenPlatform.instance.getUserCount();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user