Last active
September 25, 2020 22:18
-
-
Save alperenbabagil/c273c17a21d527361635640ce519b395 to your computer and use it in GitHub Desktop.
Example Interactor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ChangePasswordInteractor(private val repository: ProfileRepository) : | |
BaseInteractor(), Interactor.SingleInteractor<ChangePasswordInteractor.Params, Any> { | |
class Params(val oldPassword:String,val newPassword:String) : Interactor.Params() | |
override suspend fun execute(params: Params): DataHolder<Any> = | |
repository.changePassword(ChangePasswordRequest(params.oldPassword,params.newPassword)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment