Init login feature add domain layer
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/model.dart';
|
||||
|
||||
class AuthenticationUserViewState extends ViewState {
|
||||
final User user;
|
||||
|
||||
AuthenticationUserViewState(this.user);
|
||||
|
||||
@override
|
||||
List<Object> get props => [user];
|
||||
}
|
||||
|
||||
class AuthenticationUserFailure extends FeatureFailure {
|
||||
final exception;
|
||||
|
||||
AuthenticationUserFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:model/account/password.dart';
|
||||
import 'package:model/account/user_name.dart';
|
||||
|
||||
class GetCredentialViewState extends ViewState {
|
||||
final Uri baseUrl;
|
||||
final UserName userName;
|
||||
final Password password;
|
||||
|
||||
GetCredentialViewState(this.baseUrl, this.userName, this.password);
|
||||
|
||||
@override
|
||||
List<Object> get props => [baseUrl, this.userName, this.password];
|
||||
}
|
||||
|
||||
class GetCredentialFailure extends FeatureFailure {
|
||||
final exception;
|
||||
|
||||
GetCredentialFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user