Skip to content

Instantly share code, notes, and snippets.

@DenisBronx
Last active November 17, 2020 16:54
Show Gist options
  • Save DenisBronx/5b39fce83001311ea63b503786aeb7be to your computer and use it in GitHub Desktop.
Save DenisBronx/5b39fce83001311ea63b503786aeb7be to your computer and use it in GitHub Desktop.
class FPGetTransactionUseCaseFactory(
private val userRepository: UserRepository,
private val transactionRepository: TransactionRepository
) {
fun makeGetTransactionsUseCase(): GetTransactionsUseCase {
return {
getTransactions(
userRepository::getUser,
transactionRepository
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment