You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
740 B
Kotlin
25 lines
740 B
Kotlin
5 years ago
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||
|
|
||
4 years ago
|
package org.mozilla.fenix.loginexceptions
|
||
5 years ago
|
|
||
4 years ago
|
import mozilla.components.feature.logins.exceptions.LoginException
|
||
4 years ago
|
|
||
5 years ago
|
/**
|
||
|
* Interactor for the exceptions screen
|
||
|
* Provides implementations for the ExceptionsViewInteractor
|
||
|
*/
|
||
4 years ago
|
class LoginExceptionsInteractor(
|
||
|
private val deleteOne: (LoginException) -> Unit,
|
||
5 years ago
|
private val deleteAll: () -> Unit
|
||
|
) : ExceptionsViewInteractor {
|
||
|
override fun onDeleteAll() {
|
||
|
deleteAll.invoke()
|
||
|
}
|
||
|
|
||
4 years ago
|
override fun onDeleteOne(item: LoginException) {
|
||
5 years ago
|
deleteOne.invoke(item)
|
||
|
}
|
||
|
}
|