TF-1362: [Domain] Get unreadSpamEmail in Usecase
This commit is contained in:
-22
@@ -1,22 +0,0 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class GetLastTimeDismissedSpamReportedLoading extends UIState {}
|
||||
|
||||
class GetLastTimeDismissedSpamReportedSuccess extends UIState {
|
||||
final DateTime lastTimeDismissedSpamReported;
|
||||
|
||||
GetLastTimeDismissedSpamReportedSuccess(this.lastTimeDismissedSpamReported);
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class GetLastTimeDismissedSpamReportedFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetLastTimeDismissedSpamReportedFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class GetNumberOfUnreadSpamEmailsLoading extends UIState {}
|
||||
|
||||
class GetNumberOfUnreadSpamEmailsSuccess extends UIState {
|
||||
final int unreadSpamEmailNumber;
|
||||
|
||||
GetNumberOfUnreadSpamEmailsSuccess(this.unreadSpamEmailNumber);
|
||||
|
||||
@override
|
||||
List<Object> get props => [unreadSpamEmailNumber];
|
||||
}
|
||||
|
||||
class InvalidSpamReportCondition extends FeatureFailure {
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
class GetNumberOfUnreadSpamEmailsFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetNumberOfUnreadSpamEmailsFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user