Files
workavia-mail-front/lib/features/login/domain/state/get_credential_state.dart
T
2021-08-05 10:53:10 +07:00

24 lines
627 B
Dart

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 UIState {
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];
}