yubioath-flutter/pigeons/api.dart
Adam Velebil af593289d1
Initial
2022-03-03 16:43:36 +01:00

77 lines
1.2 KiB
Dart

import 'package:pigeon/pigeon.dart';
@HostApi()
abstract class OathApi {
@async
void reset();
@async
bool unlock(String password, bool remember);
@async
void setPassword(String newPassword);
@async
void changePassword(String currentPassword, String newPassword);
@async
void unsetPassword(String currentPassword);
@async
void forgetPassword();
@async
String addAccount(String uri, bool requireTouch);
@async
String renameAccount(String uri, String name);
@async
String renameAccountWithIssuer(String uri, String name, String issuer);
@async
void deleteAccount(String uri);
@async
String refreshCodes();
@async
String calculate(String uri);
}
@HostApi()
abstract class AppApi {
@async
void setContext(int subPageIndex);
}
@FlutterApi()
abstract class FOathApi {
@async
void updateSession(String sessionJson);
@async
void updateOathCredentials(String credentialListJson);
}
@FlutterApi()
abstract class FManagementApi {
@async
void updateDeviceInfo(String deviceInfoJson);
}
@FlutterApi()
abstract class FDialogApi {
@async
void showDialogApi(String dialogParametersJson);
@async
void closeDialogApi();
}
@HostApi()
abstract class HDialogApi {
@async
void dialogClosed();
}