class SavedLoginsInteractor( private val loginsListController: LoginsListController, private val savedLoginsStorageController: SavedLoginsStorageController, ) { fun onItemClicked(item: SavedLogin) { loginsListController.handleItemClicked(item) } fun onLearnMoreClicked() { loginsListController.handleLearnMoreClicked() } fun onSortingStrategyChanged(sortingStrategy: SortingStrategy) { loginsListController.handleSort(sortingStrategy) } fun loadAndMapLogins() { savedLoginsStorageController.handleLoadAndMapLogins() } fun onAddLoginClick() { loginsListController.handleAddLoginClicked() } }
Interactor for the saved logins screen