Created
October 14, 2017 18:58
-
-
Save Zhuinden/64a3ff58ae1c06c16ae0ad3605b2a44a to your computer and use it in GitHub Desktop.
Auto-generated Kotlin @Inject constructor vs style proposition
This file contains 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
@Singleton | |
class EventDao @Inject | |
constructor(databaseManager: DatabaseManager, table: EventTable, private val sportDao: SportDao, private val locationDao: LocationDao) : BaseDao<Event>(databaseManager, table) { |
This file contains 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
@Singleton class EventDao | |
@Inject constructor( | |
databaseManager: DatabaseManager, | |
table: EventTable, | |
private val sportDao: SportDao, | |
private val locationDao: LocationDao | |
) : BaseDao<Event>(databaseManager, table) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment