|
|
@ -336,6 +336,17 @@ open class BajajFDViewModel(private val mainRepository: MainRepository) : ViewMo |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
val customerListMutableData: MutableLiveData<Resource<JsonObject>> = MutableLiveData() |
|
|
|
fun customerListApi(getCodeRequest: GetCodeRequest, token: String,activity : Activity) = viewModelScope.launch( |
|
|
|
handleError(activity) |
|
|
|
) { |
|
|
|
if (Common.isNetworkAvailable(activity)) { |
|
|
|
customerListMutableData.postValue(Resource.Loading()) |
|
|
|
val response = mainRepository.payModeCheck(getCodeRequest, token) |
|
|
|
customerListMutableData.postValue(handleResponse(response)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
fun updateFDPaymentStatus(getRatesRequest: GetRatesRequest, token: String, |
|
|
|
activity: Activity |
|
|
|
) = |
|
|
|