Vaani/lib/db/available_boxes.dart

31 lines
999 B
Dart
Raw Normal View History

2024-05-08 05:03:49 -04:00
import 'package:flutter/foundation.dart' show immutable;
2026-01-10 16:46:06 +05:30
import 'package:hive_plus_secure/hive_plus_secure.dart';
import 'package:vaani/features/per_book_settings/models/book_settings.dart';
2024-08-23 04:21:46 -04:00
import 'package:vaani/settings/models/models.dart';
2024-05-08 05:03:49 -04:00
@immutable
class AvailableHiveBoxes {
const AvailableHiveBoxes._();
/// Box for storing user preferences as [AppSettings]
static final userPrefsBox = Hive.box<AppSettings>(name: 'userPrefs');
/// Box for storing [ApiSettings]
static final apiSettingsBox = Hive.box<ApiSettings>(name: 'apiSettings');
/// stores the a list of [AudiobookShelfServer]
2026-01-10 16:51:05 +05:30
static final serverBox = Hive.box<AudiobookShelfServer>(
name: 'audiobookShelfServer',
);
2024-05-08 05:03:49 -04:00
/// stores the a list of [AuthenticatedUser]
2026-01-10 16:51:05 +05:30
static final authenticatedUserBox = Hive.box<AuthenticatedUser>(
name: 'authenticatedUser',
);
/// stores the a list of [BookSettings]
2026-01-10 16:51:05 +05:30
static final individualBookSettingsBox = Hive.box<BookSettings>(
name: 'bookSettings',
);
2024-05-08 05:03:49 -04:00
}