TF-148 Add domain layer for cleanup email cache
This commit is contained in:
@@ -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];
|
||||
}
|
||||
Reference in New Issue
Block a user