Contacts

Defines all the APIs for the contact discovery.

Functions

Link copied to clipboard

Blocking-call variant of Contacts.getContacts.

Link copied to clipboard

Blocking-call variant of Contacts.getContacts.

Link copied to clipboard
abstract suspend fun getContact(msisdnNumber: Msisdn): HubPayload<Contact>

Retrieves the contact that match the given msisdnNumber.

Link copied to clipboard
abstract suspend fun getContacts(msisdnNumbers: List<Msisdn>): HubPayload<List<Contact>>

Retrieves all contacts that match the given msisdnNumbers.

abstract fun getContacts(msisdnNumbers: Flow<Msisdn>): Flow<HubPayload<Contact>>

Retrieves a stream of contacts that match the given msisdnNumbers.

Link copied to clipboard
fun Contacts.getContacts(msisdnNumbers: Flux<Msisdn>): Flux<HubPayload<Contact>>

Flux variant of Contacts.getContacts stream.

Link copied to clipboard
fun <T> HubClientCoroutineContextStrategy.runBlockingWithContext(block: suspend CoroutineScope.() -> T): T

Runs a new coroutine in HubClientCoroutineContextStrategy.clientCoroutineContext context and blocks the current thread until its completion. This function should not be used from a coroutine.

Properties

Link copied to clipboard

The hubClient's-coroutine-context. It can be used to explicit define in which CoroutineContext the new client will run.