TF-1289: [Domain] Add DestroySubscription in use-case
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
|
||||
class DestroySubscriptionLoading extends UIState {}
|
||||
|
||||
class DestroySubscriptionSuccess extends UIState {
|
||||
|
||||
final bool destroyedSubscription;
|
||||
|
||||
DestroySubscriptionSuccess(this.destroyedSubscription);
|
||||
|
||||
@override
|
||||
List<Object> get props => [destroyedSubscription];
|
||||
}
|
||||
|
||||
class DestroySubscriptionFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
DestroySubscriptionFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user