Created
May 17, 2020 22:25
-
-
Save DenisBronx/7d4d085170d13b8879441acb3af1e593 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 GetTransactionsUseCaseImpl( | |
private val getUserUseCase: GetUserUseCase, | |
private val transactionRepository: TransactionRepository | |
) : GetTransactionsUseCase { | |
override fun invoke(): Single<SimpleResult<List<Transaction>>> { | |
return transactionRepository.getTransactions(getUserUseCase().id) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment