Created
March 29, 2019 15:29
-
-
Save togramago/7d3c3703ba9873dfa65a39e132ee1153 to your computer and use it in GitHub Desktop.
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
object MatchesDependencies { | |
internal lateinit var matchMakingService: MatchMakingService | |
private set | |
fun init(networkingModule: NetworkingModule) { | |
matchMakingService = | |
networkingModule.createSecureServiceEndpoint(MatchMakingService::class.java) | |
} | |
internal lateinit var matchesBehavior: MatchesBehavior | |
fun setBehavior(behavior: MatchesBehavior) { //behavior can be changed throughout the life scope of the matches component | |
matchesBehavior = behavior | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment