正在查看: Brevistay v5.8.2 应用的 ApplyCouponFragment$onCreate$1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Brevistay v5.8.2 应用的 ApplyCouponFragment$onCreate$1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.brevistay.app.view.booking.fragments;
import com.brevistay.app.models.booking_model.hotel_availabilty.HotelAvailabiltyBody;
import com.brevistay.app.models.offers.OffersBody;
import com.brevistay.app.viewmodels.booking_viewmodel.BookingViewModel;
import kotlin.Metadata;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.CoroutineScope;
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\n"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {2, 1, 0}, xi = 48)
@DebugMetadata(c = "com.brevistay.app.view.booking.fragments.ApplyCouponFragment$onCreate$1", f = "ApplyCouponFragment.kt", i = {}, l = {64}, m = "invokeSuspend", n = {}, s = {})
final class ApplyCouponFragment$onCreate$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
int label;
final ApplyCouponFragment this$0;
ApplyCouponFragment$onCreate$1(ApplyCouponFragment applyCouponFragment, Continuation<? super ApplyCouponFragment$onCreate$1> continuation) {
super(2, continuation);
this.this$0 = applyCouponFragment;
}
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
return new ApplyCouponFragment$onCreate$1(this.this$0, continuation);
}
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
return create(coroutineScope, continuation).invokeSuspend(Unit.INSTANCE);
}
public final Object invokeSuspend(Object obj) {
BookingViewModel viewmodel;
BookingViewModel viewmodel2;
String str;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.label;
if (i == 0) {
ResultKt.throwOnFailure(obj);
viewmodel = this.this$0.getViewmodel();
HotelAvailabiltyBody hotelAvailabiltyBody = (HotelAvailabiltyBody) viewmodel.getHotelAvailabiltyBody_BD().getValue();
OffersBody offersBody = new OffersBody("valid", hotelAvailabiltyBody != null ? hotelAvailabiltyBody.getHotel_id() : this.this$0.getArgs().getHotelId());
viewmodel2 = this.this$0.getViewmodel();
str = this.this$0.token;
if (str == null) {
Intrinsics.throwUninitializedPropertyAccessException("token");
str = null;
}
this.label = 1;
if (viewmodel2.getHolidaOffers(str, offersBody, "https://api.holida.com/app-api/get_offers", (Continuation) this) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
return Unit.INSTANCE;
}
}