Vaani/lib/db/available_boxes.dart

23 lines
762 B
Dart
Raw Normal View History

2024-05-08 05:03:49 -04:00
import 'package:flutter/foundation.dart' show immutable;
import 'package:hive/hive.dart';
import 'package:whispering_pages/settings/models/models.dart';
@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]
static final serverBox =
Hive.box<AudiobookShelfServer>(name: 'audiobookShelfServer');
/// stores the a list of [AuthenticatedUser]
static final authenticatedUserBox =
Hive.box<AuthenticatedUser>(name: 'authenticatedUser');
}