// GENERATED CODE - DO NOT MODIFY BY HAND part of 'api_provider.dart'; // ************************************************************************** // RiverpodGenerator // ************************************************************************** String _$audiobookshelfApiHash() => r'5eb091c6b18c0bf5a0eec079fdb872a84c4f00d9'; /// Copied from Dart SDK class _SystemHash { _SystemHash._(); static int combine(int hash, int value) { // ignore: parameter_assignments hash = 0x1fffffff & (hash + value); // ignore: parameter_assignments hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10)); return hash ^ (hash >> 6); } static int finish(int hash) { // ignore: parameter_assignments hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); // ignore: parameter_assignments hash = hash ^ (hash >> 11); return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); } } /// get the api instance for the given base url /// /// Copied from [audiobookshelfApi]. @ProviderFor(audiobookshelfApi) const audiobookshelfApiProvider = AudiobookshelfApiFamily(); /// get the api instance for the given base url /// /// Copied from [audiobookshelfApi]. class AudiobookshelfApiFamily extends Family { /// get the api instance for the given base url /// /// Copied from [audiobookshelfApi]. const AudiobookshelfApiFamily(); /// get the api instance for the given base url /// /// Copied from [audiobookshelfApi]. AudiobookshelfApiProvider call( Uri? baseUrl, ) { return AudiobookshelfApiProvider( baseUrl, ); } @override AudiobookshelfApiProvider getProviderOverride( covariant AudiobookshelfApiProvider provider, ) { return call( provider.baseUrl, ); } static const Iterable? _dependencies = null; @override Iterable? get dependencies => _dependencies; static const Iterable? _allTransitiveDependencies = null; @override Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'audiobookshelfApiProvider'; } /// get the api instance for the given base url /// /// Copied from [audiobookshelfApi]. class AudiobookshelfApiProvider extends AutoDisposeProvider { /// get the api instance for the given base url /// /// Copied from [audiobookshelfApi]. AudiobookshelfApiProvider( Uri? baseUrl, ) : this._internal( (ref) => audiobookshelfApi( ref as AudiobookshelfApiRef, baseUrl, ), from: audiobookshelfApiProvider, name: r'audiobookshelfApiProvider', debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$audiobookshelfApiHash, dependencies: AudiobookshelfApiFamily._dependencies, allTransitiveDependencies: AudiobookshelfApiFamily._allTransitiveDependencies, baseUrl: baseUrl, ); AudiobookshelfApiProvider._internal( super._createNotifier, { required super.name, required super.dependencies, required super.allTransitiveDependencies, required super.debugGetCreateSourceHash, required super.from, required this.baseUrl, }) : super.internal(); final Uri? baseUrl; @override Override overrideWith( AudiobookshelfApi Function(AudiobookshelfApiRef provider) create, ) { return ProviderOverride( origin: this, override: AudiobookshelfApiProvider._internal( (ref) => create(ref as AudiobookshelfApiRef), from: from, name: null, dependencies: null, allTransitiveDependencies: null, debugGetCreateSourceHash: null, baseUrl: baseUrl, ), ); } @override AutoDisposeProviderElement createElement() { return _AudiobookshelfApiProviderElement(this); } @override bool operator ==(Object other) { return other is AudiobookshelfApiProvider && other.baseUrl == baseUrl; } @override int get hashCode { var hash = _SystemHash.combine(0, runtimeType.hashCode); hash = _SystemHash.combine(hash, baseUrl.hashCode); return _SystemHash.finish(hash); } } mixin AudiobookshelfApiRef on AutoDisposeProviderRef { /// The parameter `baseUrl` of this provider. Uri? get baseUrl; } class _AudiobookshelfApiProviderElement extends AutoDisposeProviderElement with AudiobookshelfApiRef { _AudiobookshelfApiProviderElement(super.provider); @override Uri? get baseUrl => (origin as AudiobookshelfApiProvider).baseUrl; } String _$authenticatedApiHash() => r'62213d5d0268eeaa2a16211cd60b1b6f0d19dd40'; /// get the api instance for the authenticated user /// /// if the user is not authenticated throw an error /// /// Copied from [authenticatedApi]. @ProviderFor(authenticatedApi) final authenticatedApiProvider = AutoDisposeProvider.internal( authenticatedApi, name: r'authenticatedApiProvider', debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$authenticatedApiHash, dependencies: null, allTransitiveDependencies: null, ); typedef AuthenticatedApiRef = AutoDisposeProviderRef; String _$isServerAliveHash() => r'f839350795fbdeb0ca1d5f0c84a9065cac4dd40a'; /// ping the server to check if it is reachable /// /// Copied from [isServerAlive]. @ProviderFor(isServerAlive) const isServerAliveProvider = IsServerAliveFamily(); /// ping the server to check if it is reachable /// /// Copied from [isServerAlive]. class IsServerAliveFamily extends Family> { /// ping the server to check if it is reachable /// /// Copied from [isServerAlive]. const IsServerAliveFamily(); /// ping the server to check if it is reachable /// /// Copied from [isServerAlive]. IsServerAliveProvider call( String address, ) { return IsServerAliveProvider( address, ); } @override IsServerAliveProvider getProviderOverride( covariant IsServerAliveProvider provider, ) { return call( provider.address, ); } static const Iterable? _dependencies = null; @override Iterable? get dependencies => _dependencies; static const Iterable? _allTransitiveDependencies = null; @override Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'isServerAliveProvider'; } /// ping the server to check if it is reachable /// /// Copied from [isServerAlive]. class IsServerAliveProvider extends AutoDisposeFutureProvider { /// ping the server to check if it is reachable /// /// Copied from [isServerAlive]. IsServerAliveProvider( String address, ) : this._internal( (ref) => isServerAlive( ref as IsServerAliveRef, address, ), from: isServerAliveProvider, name: r'isServerAliveProvider', debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$isServerAliveHash, dependencies: IsServerAliveFamily._dependencies, allTransitiveDependencies: IsServerAliveFamily._allTransitiveDependencies, address: address, ); IsServerAliveProvider._internal( super._createNotifier, { required super.name, required super.dependencies, required super.allTransitiveDependencies, required super.debugGetCreateSourceHash, required super.from, required this.address, }) : super.internal(); final String address; @override Override overrideWith( FutureOr Function(IsServerAliveRef provider) create, ) { return ProviderOverride( origin: this, override: IsServerAliveProvider._internal( (ref) => create(ref as IsServerAliveRef), from: from, name: null, dependencies: null, allTransitiveDependencies: null, debugGetCreateSourceHash: null, address: address, ), ); } @override AutoDisposeFutureProviderElement createElement() { return _IsServerAliveProviderElement(this); } @override bool operator ==(Object other) { return other is IsServerAliveProvider && other.address == address; } @override int get hashCode { var hash = _SystemHash.combine(0, runtimeType.hashCode); hash = _SystemHash.combine(hash, address.hashCode); return _SystemHash.finish(hash); } } mixin IsServerAliveRef on AutoDisposeFutureProviderRef { /// The parameter `address` of this provider. String get address; } class _IsServerAliveProviderElement extends AutoDisposeFutureProviderElement with IsServerAliveRef { _IsServerAliveProviderElement(super.provider); @override String get address => (origin as IsServerAliveProvider).address; } String _$fetchContinueListeningHash() => r'f65fe3ac3a31b8ac074330525c5d2cc4b526802d'; /// fetch continue listening audiobooks /// /// Copied from [fetchContinueListening]. @ProviderFor(fetchContinueListening) final fetchContinueListeningProvider = AutoDisposeFutureProvider.internal( fetchContinueListening, name: r'fetchContinueListeningProvider', debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$fetchContinueListeningHash, dependencies: null, allTransitiveDependencies: null, ); typedef FetchContinueListeningRef = AutoDisposeFutureProviderRef; String _$personalizedViewHash() => r'2e70fe2bfc766a963f7a8e94211ad50d959fbaa2'; /// fetch the personalized view /// /// Copied from [PersonalizedView]. @ProviderFor(PersonalizedView) final personalizedViewProvider = AutoDisposeStreamNotifierProvider>.internal( PersonalizedView.new, name: r'personalizedViewProvider', debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$personalizedViewHash, dependencies: null, allTransitiveDependencies: null, ); typedef _$PersonalizedView = AutoDisposeStreamNotifier>; // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member