Cache Linagora Ecosystem in controller for Scribe
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/domain/linagora_ecosystem/linagora_ecosystem.dart';
|
||||
|
||||
class GetLinagoraEcosystemSuccess extends Success {
|
||||
final LinagoraEcosystem linagoraEcosystem;
|
||||
|
||||
GetLinagoraEcosystemSuccess(this.linagoraEcosystem);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [linagoraEcosystem];
|
||||
}
|
||||
|
||||
class GetLinagoraEcosystemFailure extends Failure {
|
||||
final dynamic exception;
|
||||
|
||||
GetLinagoraEcosystemFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
|
||||
class GetScribePromptUrlSuccess extends Success {
|
||||
final String? promptUrl;
|
||||
|
||||
GetScribePromptUrlSuccess(this.promptUrl);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [promptUrl];
|
||||
}
|
||||
|
||||
class GetScribePromptUrlFailure extends Failure {
|
||||
final dynamic exception;
|
||||
|
||||
GetScribePromptUrlFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user