Last active
July 26, 2020 10:46
-
-
Save DenisBronx/2149d3e2d680e32d629cf5426859917a 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
inline fun getTransactions( | |
getUserUseCase: GetUserUseCase, | |
transactionRepository: TransactionRepository | |
): Single<SimpleResult<List<Transaction>>> { | |
return transactionRepository.getTransactions(getUserUseCase().id) | |
} | |
typealias GetTransactionsUseCase = () -> Single<SimpleResult<List<Transaction>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment