class EditLoginInteractor( private val savedLoginsController: SavedLoginsStorageController, ) { fun findDuplicate(loginId: String, usernameText: String, passwordText: String) { savedLoginsController.findDuplicateForSave(loginId, usernameText, passwordText) } fun onSaveLogin(loginId: String, usernameText: String, passwordText: String) { savedLoginsController.save(loginId, usernameText, passwordText) } }
Interactor for the edit login screen