TF-1068 implement data layer save recent login username & get all login username
This commit is contained in:
@@ -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];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user