45cd1c3613
Signed-off-by: dab246 <tdvu@linagora.com>
22 lines
554 B
Dart
22 lines
554 B
Dart
|
|
import 'package:equatable/equatable.dart';
|
|
import 'package:hive_ce/hive.dart';
|
|
import 'package:tmail_ui_user/features/caching/utils/caching_constants.dart';
|
|
import 'package:tmail_ui_user/features/mailbox/data/model/state_type.dart';
|
|
|
|
part 'state_cache.g.dart';
|
|
|
|
@HiveType(typeId: CachingConstants.STATE_CACHE_IDENTIFY)
|
|
class StateCache extends HiveObject with EquatableMixin {
|
|
|
|
@HiveField(0)
|
|
final StateType type;
|
|
|
|
@HiveField(1)
|
|
final String state;
|
|
|
|
StateCache(this.type, this.state);
|
|
|
|
@override
|
|
List<Object?> get props => [type, state];
|
|
} |