class AddLoginInteractor( private val savedLoginsController: SavedLoginsStorageController, ) { fun findDuplicate(originText: String, usernameText: String, passwordText: String) { savedLoginsController.findDuplicateForAdd(originText, usernameText, passwordText) } fun onAddLogin(originText: String, usernameText: String, passwordText: String) { savedLoginsController.add(originText, usernameText, passwordText) } }
Interactor for the add login screen