get Subscriber Remote Update
suspend fun getSubscriberRemoteUpdate( context: Context, internationalNumber: String, forceUpdate: Boolean = false): ApiResult<STWSubscriberDetails>
Content copied to clipboard
Call this method to get update for the given subscriber this method should get details from remote server, then update the local database
Return
STWSubscriberDetails in case of success else return the error code ContactErrorKT.NO_UPDATE_IS_AVAILABLE ContactErrorKT.NETWORK_ERROR ContactErrorKT.EMPTY_DATA
Parameters
context
Context: The application context
international Number
String: The subscriber international phone number
force Update
Boolean: when true should get subscriber details, when false we should check the last update date for the given phone number