TF-1068 implement data layer save recent login username & get all login username

This commit is contained in:
Ms Thuỷ
2022-10-24 17:38:41 +07:00
committed by Dat H. Pham
parent 06ec261d05
commit 6cf86b0edf
11 changed files with 230 additions and 0 deletions
@@ -0,0 +1,22 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:tmail_ui_user/features/login/domain/model/recent_login_username.dart';
class GetAllRecentLoginUsernameLatestSuccess extends UIState {
final List<RecentLoginUsername> listRecentLoginUsername;
GetAllRecentLoginUsernameLatestSuccess(this.listRecentLoginUsername);
@override
List<Object> get props => [listRecentLoginUsername];
}
class GetAllRecentLoginUsernameLatestFailure extends FeatureFailure {
final dynamic exception;
GetAllRecentLoginUsernameLatestFailure(this.exception);
@override
List<Object> get props => [exception];
}
@@ -0,0 +1,20 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class SaveRecentLoginUsernameSuccess extends UIState {
SaveRecentLoginUsernameSuccess();
@override
List<Object> get props => [];
}
class SaveRecentLoginUsernameFailed extends FeatureFailure {
final dynamic exception;
SaveRecentLoginUsernameFailed(this.exception);
@override
List<Object?> get props => [exception];
}