Last active
November 17, 2020 16:53
-
-
Save DenisBronx/1dfa13ba90d14129b34dead720ab51da 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 MyDaggerModule { | |
@Provides | |
fun provideGetTransactionsUseCase( | |
private val userRepository: UserRepository, | |
private val transactionRepository: TransactionRepository | |
): GetTransactionsUseCase { | |
return { | |
getTransactions( | |
userRepository::getUser, | |
transactionRepository | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment