TF-1289: [Presentation] Refactor name function

This commit is contained in:
HuyNguyen
2022-12-29 21:54:21 +07:00
committed by Dat Vu
parent b291250cfc
commit f2636b1ecf
17 changed files with 18 additions and 242 deletions
@@ -1,24 +0,0 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class GetDeviceIdLoading extends UIState {}
class GetDeviceIdSuccess extends UIState {
final String deviceId;
GetDeviceIdSuccess(this.deviceId);
@override
List<Object> get props => [deviceId];
}
class GetDeviceIdFailure extends FeatureFailure {
final dynamic exception;
GetDeviceIdFailure(this.exception);
@override
List<Object> get props => [exception];
}
@@ -1,22 +0,0 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class StoreDeviceIdLoading extends UIState {}
class StoreDeviceIdSuccess extends UIState {
StoreDeviceIdSuccess();
@override
List<Object> get props => [];
}
class StoreDeviceIdFailure extends FeatureFailure {
final dynamic exception;
StoreDeviceIdFailure(this.exception);
@override
List<Object> get props => [exception];
}