Last active
June 14, 2020 17:19
-
-
Save saurabharora90/846ac70042eb143d9ea772f0adaa24c4 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
class CustomerCareInitializer @Inject constructor( | |
private val session: UserSession, | |
private val apiService: ApiService | |
) : ModuleInitializer { | |
override fun initialize(context: Context): Completable { | |
return apiService.execute( ... ) | |
.flatMap { | |
Zendesk.init(...) | |
} | |
.ignoreElement() | |
.onErrorComplete() | |
} | |
} |
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
class SubscriptionInitializer @Inject constructor() : ModuleInitializer { | |
override fun initialize(context: Context): Completable { | |
// perfom quick initialisation | |
return Completable.complete() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment