Cache Linagora Ecosystem in controller for Scribe

This commit is contained in:
Théo Poizat
2026-03-03 08:46:13 +01:00
committed by Dat H. Pham
parent 3ebb9113bc
commit 32cf606aea
10 changed files with 72 additions and 75 deletions
@@ -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];
}