updateFavoriteList

fun updateFavoriteList(    context: Context,     contacts: <ERROR CLASS><STWContact>,     callback: (ApiResult<Any>) -> Unit?? = null)

Update the favorite contacts list to the given list This method works asynchronously and will synchronize the favorite list with other accounts of User (Like webchat)

Parameters

context

The application context

contacts

list of STWContact to be the new favorite list