// Autogenerated from Pigeon (v2.0.2), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name // @dart = 2.12 import 'dart:async'; import 'dart:typed_data' show Uint8List, Int32List, Int64List, Float64List; import 'package:flutter/foundation.dart' show WriteBuffer, ReadBuffer; import 'package:flutter/services.dart'; class _OathApiCodec extends StandardMessageCodec { const _OathApiCodec(); } class OathApi { /// Constructor for [OathApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. OathApi({BinaryMessenger? binaryMessenger}) : _binaryMessenger = binaryMessenger; final BinaryMessenger? _binaryMessenger; static const MessageCodec codec = _OathApiCodec(); Future reset() async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.OathApi.reset', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send(null) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else { return; } } Future unlock(String arg_password, bool arg_remember) async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.OathApi.unlock', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send([arg_password, arg_remember]) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else if (replyMap['result'] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { return (replyMap['result'] as bool?)!; } } Future setPassword(String? arg_currentPassword, String arg_newPassword) async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.OathApi.setPassword', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send([arg_currentPassword, arg_newPassword]) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else { return; } } Future unsetPassword(String arg_currentPassword) async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.OathApi.unsetPassword', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send([arg_currentPassword]) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else { return; } } Future forgetPassword() async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.OathApi.forgetPassword', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send(null) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else { return; } } Future addAccount(String arg_uri, bool arg_requireTouch) async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.OathApi.addAccount', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send([arg_uri, arg_requireTouch]) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else if (replyMap['result'] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { return (replyMap['result'] as String?)!; } } Future renameAccount(String arg_uri, String arg_name, String? arg_issuer) async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.OathApi.renameAccount', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send([arg_uri, arg_name, arg_issuer]) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else if (replyMap['result'] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { return (replyMap['result'] as String?)!; } } Future deleteAccount(String arg_uri) async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.OathApi.deleteAccount', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send([arg_uri]) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else { return; } } Future refreshCodes() async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.OathApi.refreshCodes', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send(null) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else if (replyMap['result'] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { return (replyMap['result'] as String?)!; } } Future calculate(String arg_uri) async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.OathApi.calculate', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send([arg_uri]) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else if (replyMap['result'] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { return (replyMap['result'] as String?)!; } } } class _AppApiCodec extends StandardMessageCodec { const _AppApiCodec(); } class AppApi { /// Constructor for [AppApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. AppApi({BinaryMessenger? binaryMessenger}) : _binaryMessenger = binaryMessenger; final BinaryMessenger? _binaryMessenger; static const MessageCodec codec = _AppApiCodec(); Future setContext(int arg_subPageIndex) async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.AppApi.setContext', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send([arg_subPageIndex]) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else { return; } } } class _FOathApiCodec extends StandardMessageCodec { const _FOathApiCodec(); } abstract class FOathApi { static const MessageCodec codec = _FOathApiCodec(); Future updateSession(String sessionJson); Future updateOathCredentials(String credentialListJson); static void setup(FOathApi? api, {BinaryMessenger? binaryMessenger}) { { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.FOathApi.updateSession', codec, binaryMessenger: binaryMessenger); if (api == null) { channel.setMessageHandler(null); } else { channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.FOathApi.updateSession was null.'); final List args = (message as List?)!; final String? arg_sessionJson = (args[0] as String?); assert(arg_sessionJson != null, 'Argument for dev.flutter.pigeon.FOathApi.updateSession was null, expected non-null String.'); await api.updateSession(arg_sessionJson!); return; }); } } { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.FOathApi.updateOathCredentials', codec, binaryMessenger: binaryMessenger); if (api == null) { channel.setMessageHandler(null); } else { channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.FOathApi.updateOathCredentials was null.'); final List args = (message as List?)!; final String? arg_credentialListJson = (args[0] as String?); assert(arg_credentialListJson != null, 'Argument for dev.flutter.pigeon.FOathApi.updateOathCredentials was null, expected non-null String.'); await api.updateOathCredentials(arg_credentialListJson!); return; }); } } } } class _FManagementApiCodec extends StandardMessageCodec { const _FManagementApiCodec(); } abstract class FManagementApi { static const MessageCodec codec = _FManagementApiCodec(); Future updateDeviceInfo(String deviceInfoJson); static void setup(FManagementApi? api, {BinaryMessenger? binaryMessenger}) { { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.FManagementApi.updateDeviceInfo', codec, binaryMessenger: binaryMessenger); if (api == null) { channel.setMessageHandler(null); } else { channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.FManagementApi.updateDeviceInfo was null.'); final List args = (message as List?)!; final String? arg_deviceInfoJson = (args[0] as String?); assert(arg_deviceInfoJson != null, 'Argument for dev.flutter.pigeon.FManagementApi.updateDeviceInfo was null, expected non-null String.'); await api.updateDeviceInfo(arg_deviceInfoJson!); return; }); } } } } class _FDialogApiCodec extends StandardMessageCodec { const _FDialogApiCodec(); } abstract class FDialogApi { static const MessageCodec codec = _FDialogApiCodec(); Future showDialogApi(String dialogMessage); Future closeDialogApi(); static void setup(FDialogApi? api, {BinaryMessenger? binaryMessenger}) { { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.FDialogApi.showDialogApi', codec, binaryMessenger: binaryMessenger); if (api == null) { channel.setMessageHandler(null); } else { channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.FDialogApi.showDialogApi was null.'); final List args = (message as List?)!; final String? arg_dialogMessage = (args[0] as String?); assert(arg_dialogMessage != null, 'Argument for dev.flutter.pigeon.FDialogApi.showDialogApi was null, expected non-null String.'); await api.showDialogApi(arg_dialogMessage!); return; }); } } { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.FDialogApi.closeDialogApi', codec, binaryMessenger: binaryMessenger); if (api == null) { channel.setMessageHandler(null); } else { channel.setMessageHandler((Object? message) async { // ignore message await api.closeDialogApi(); return; }); } } } } class _HDialogApiCodec extends StandardMessageCodec { const _HDialogApiCodec(); } class HDialogApi { /// Constructor for [HDialogApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. HDialogApi({BinaryMessenger? binaryMessenger}) : _binaryMessenger = binaryMessenger; final BinaryMessenger? _binaryMessenger; static const MessageCodec codec = _HDialogApiCodec(); Future dialogClosed() async { final BasicMessageChannel channel = BasicMessageChannel( 'dev.flutter.pigeon.HDialogApi.dialogClosed', codec, binaryMessenger: _binaryMessenger); final Map? replyMap = await channel.send(null) as Map?; if (replyMap == null) { throw PlatformException( code: 'channel-error', message: 'Unable to establish connection on channel.', ); } else if (replyMap['error'] != null) { final Map error = (replyMap['error'] as Map?)!; throw PlatformException( code: (error['code'] as String?)!, message: error['message'] as String?, details: error['details'], ); } else { return; } } }