Skip to content

Instantly share code, notes, and snippets.

@togramago
Created March 29, 2019 15:29
Show Gist options
  • Save togramago/7d3c3703ba9873dfa65a39e132ee1153 to your computer and use it in GitHub Desktop.
Save togramago/7d3c3703ba9873dfa65a39e132ee1153 to your computer and use it in GitHub Desktop.
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