TF-4171 Add datasource/repository/interactor for get all labels

This commit is contained in:
dab246
2025-11-25 00:11:16 +07:00
committed by Dat H. Pham
parent 4af0ee1086
commit f4302e06e8
15 changed files with 250 additions and 0 deletions
@@ -0,0 +1,18 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:labels/model/label.dart';
class GettingAllLabel extends LoadingState {}
class GetAllLabelSuccess extends UIState {
final List<Label> labels;
GetAllLabelSuccess(this.labels);
@override
List<Object> get props => [labels];
}
class GetAllLabelFailure extends FeatureFailure {
GetAllLabelFailure(dynamic exception) : super(exception: exception);
}