TF-1363: [Domain] [Domain] Store, Get, Delete spamReportState in UseCase
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class DeleteLastTimeDismissedSpamReportedLoading extends UIState {}
|
||||
|
||||
class DeleteLastTimeDismissedSpamReportedSuccess extends UIState {
|
||||
|
||||
DeleteLastTimeDismissedSpamReportedSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class DeleteLastTimeDismissedSpamReportedFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
DeleteLastTimeDismissedSpamReportedFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class DeleteSpamReportStateLoading extends UIState {}
|
||||
|
||||
class DeleteSpamReportStateSuccess extends UIState {
|
||||
|
||||
DeleteSpamReportStateSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class DeleteSpamReportStateFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
DeleteSpamReportStateFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/domain/model/spam_report_state.dart';
|
||||
|
||||
class GetSpamReportStateLoading extends UIState {}
|
||||
|
||||
class GetSpamReportStateSuccess extends UIState {
|
||||
final SpamReportState spamReportState;
|
||||
|
||||
GetSpamReportStateSuccess(this.spamReportState);
|
||||
|
||||
@override
|
||||
List<Object> get props => [spamReportState];
|
||||
}
|
||||
|
||||
class GetSpamReportStateFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetSpamReportStateFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class StoreSpamReportStateLoading extends UIState {}
|
||||
|
||||
class StoreSpamReportStateSuccess extends UIState {
|
||||
|
||||
StoreSpamReportStateSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class StoreSpamReportStateFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
StoreSpamReportStateFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user