TF-571 Implement AccountRepository with HiveAccountDataSource
This commit is contained in:
committed by
Dat H. Pham
parent
f8e7429751
commit
ff6e6d8878
@@ -0,0 +1,22 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:tmail_ui_user/features/caching/utils/caching_constants.dart';
|
||||
|
||||
part 'account_cache.g.dart';
|
||||
|
||||
@HiveType(typeId: CachingConstants.ACCOUNT_HIVE_CACHE_IDENTIFY)
|
||||
class AccountCache extends HiveObject with EquatableMixin {
|
||||
@HiveField(0)
|
||||
final String id;
|
||||
|
||||
@HiveField(1)
|
||||
final String authenticationType;
|
||||
|
||||
@HiveField(2)
|
||||
final bool isSelected;
|
||||
|
||||
AccountCache(this.id, this.authenticationType, {required this.isSelected});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [id, authenticationType, isSelected];
|
||||
}
|
||||
Reference in New Issue
Block a user