TF-148 Add domain layer for cleanup email cache

This commit is contained in:
dab246
2021-10-21 14:38:36 +07:00
committed by Dat H. Pham
parent 82d88efc9f
commit 08a9a74de1
4 changed files with 65 additions and 0 deletions
@@ -0,0 +1,22 @@
import 'package:equatable/equatable.dart';
class CleanupRule with EquatableMixin {
final Duration cachingEmailPeriod;
CleanupRule(this.cachingEmailPeriod);
@override
List<Object?> get props => [cachingEmailPeriod];
}
class Duration with EquatableMixin {
static final defaultValue = Duration(7);
final int countDay;
Duration(this.countDay);
@override
List<Object?> get props => [countDay];
}