|
|
@ -125,14 +125,14 @@ class StepTwoBajajFDViewModel(private val mainRepository: MainRepository) : View |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
val getifscCodeCheckMutableData: MutableLiveData<Resource<JsonObject>> = MutableLiveData() |
|
|
|
val getIfscCodeCheckMutableData: MutableLiveData<Resource<JsonObject>> = MutableLiveData() |
|
|
|
fun ifscCodeApi(ifsc : String,activity : Activity) = viewModelScope.launch( |
|
|
|
Common.handleError(activity) |
|
|
|
) { |
|
|
|
if (Common.isNetworkAvailable(activity)) { |
|
|
|
getifscCodeCheckMutableData.postValue(Resource.Loading()) |
|
|
|
getIfscCodeCheckMutableData.postValue(Resource.Loading()) |
|
|
|
val response = mainRepository.ifscCodeCheck(ifsc) |
|
|
|
getifscCodeCheckMutableData.postValue(handleResponse(response)) |
|
|
|
getIfscCodeCheckMutableData.postValue(handleResponse(response)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|