TF-838 Update inject bindings for Interactor

This commit is contained in:
dab246
2022-08-16 11:03:29 +07:00
committed by Dat H. Pham
parent 9d0c9ca1f0
commit a364524367
4 changed files with 127 additions and 20 deletions
@@ -145,13 +145,22 @@ class MailboxDashBoardBindings extends BaseBindings {
@override
void bindingsInteractor() {
Get.lazyPut(() => GetUserProfileInteractor(Get.find<CredentialRepository>()));
Get.lazyPut(() => RemoveEmailDraftsInteractor(Get.find<EmailRepository>()));
Get.lazyPut(() => MoveToMailboxInteractor(Get.find<EmailRepository>()));
Get.lazyPut(() => DeleteEmailPermanentlyInteractor(Get.find<EmailRepository>()));
Get.lazyPut(() => RemoveEmailDraftsInteractor(
Get.find<EmailRepository>(),
Get.find<MailboxRepository>()));
Get.lazyPut(() => MoveToMailboxInteractor(
Get.find<EmailRepository>(),
Get.find<MailboxRepository>()));
Get.lazyPut(() => DeleteEmailPermanentlyInteractor(
Get.find<EmailRepository>(),
Get.find<MailboxRepository>()));
Get.lazyPut(() => SaveRecentSearchInteractor(Get.find<SearchRepository>()));
Get.lazyPut(() => GetAllRecentSearchLatestInteractor(Get.find<SearchRepository>()));
Get.lazyPut(() => QuickSearchEmailInteractor(Get.find<ThreadRepository>()));
Get.lazyPut(() => MarkAsMailboxReadInteractor(Get.find<MailboxRepository>()));
Get.lazyPut(() => MarkAsMailboxReadInteractor(
Get.find<MailboxRepository>(),
Get.find<EmailRepository>())
);
Get.lazyPut(() => LogoutOidcInteractor(
Get.find<AccountRepository>(),
Get.find<AuthenticationOIDCRepository>(),
@@ -188,7 +197,8 @@ class MailboxDashBoardBindings extends BaseBindings {
void bindingsRepositoryImpl() {
Get.lazyPut(() => EmailRepositoryImpl(
Get.find<EmailDataSource>(),
Get.find<HtmlDataSource>()
Get.find<HtmlDataSource>(),
Get.find<StateDataSource>(),
));
Get.lazyPut(() => SearchRepositoryImpl(Get.find<SearchDataSource>()));
Get.lazyPut(() => ThreadRepositoryImpl(