val result = bookingRepository.createBooking(body)
when (result) {
is ClientResult.ClientSuccess -> _isBookingCreationSuccess.value = true
is ClientResult.ClientError -> {
// Handle ClientError case here if needed
// For now, we just ensure it's covered
}
// Optionally, handle other types of ClientResult if they exist
}
ApiIdlingResource.decrement()
https://github.com/Lucas-Israel/trybnb/blob/8e504026dd19e408bed5cebadef48c296022eb45/app/src/main/java/com/betrybe/trybnb/ui/viewmodels/BookingViewModel.kt#L53-L60