Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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()
}
}
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