Skip to content

Instantly share code, notes, and snippets.

@DenisBronx
Last active July 26, 2020 10:46
Show Gist options
  • Save DenisBronx/2149d3e2d680e32d629cf5426859917a to your computer and use it in GitHub Desktop.
Save DenisBronx/2149d3e2d680e32d629cf5426859917a to your computer and use it in GitHub Desktop.
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