TF-4186 Add datasource/repository for save and get company server login info
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:tmail_ui_user/features/login/domain/model/company_server_login_info.dart';
|
||||
|
||||
class GettingCompanyServerLoginInfo extends LoadingState {}
|
||||
|
||||
class GetCompanyServerLoginInfoSuccess extends UIState {
|
||||
final CompanyServerLoginInfo serverLoginInfo;
|
||||
|
||||
GetCompanyServerLoginInfoSuccess(this.serverLoginInfo);
|
||||
|
||||
@override
|
||||
List<Object> get props => [serverLoginInfo];
|
||||
}
|
||||
|
||||
class GetCompanyServerLoginInfoFailure extends FeatureFailure {
|
||||
GetCompanyServerLoginInfoFailure(dynamic exception)
|
||||
: super(exception: exception);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class SavingCompanyServerLoginInfo extends LoadingState {}
|
||||
|
||||
class SaveCompanyServerLoginInfoSuccess extends UIState {}
|
||||
|
||||
class SaveCompanyServerLoginInfoFailure extends FeatureFailure {
|
||||
SaveCompanyServerLoginInfoFailure(dynamic exception)
|
||||
: super(exception: exception);
|
||||
}
|
||||
Reference in New Issue
Block a user