getContacts

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

Retrieves all contacts that match the given msisdnNumbers.

Returns a HubPayload which encapsulates the outcome. In case it is successful the value is the resulted list of contacts or the error if it is failure.


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

Retrieves a stream of contacts that match the given msisdnNumbers.

Returns a stream of HubPayload which encapsulates the outcome. In case it is successful the value is the resulted Contact or the error if it is failure.