TF-1362: [Data] Implement store and get LastTimeDismissedSpamReport in repository and datasource
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
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];
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class StoreSpamReportLoading extends UIState {}
|
||||
|
||||
class StoreSpamReportSuccess extends UIState {
|
||||
|
||||
StoreSpamReportSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class StoreSpamReportFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
StoreSpamReportFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user