导航菜单

页面标题

页面副标题

Brevistay v5.8.2 - CreatedBookingDetailsFragment$onViewCreated$1$10$1.java 源代码

正在查看: Brevistay v5.8.2 应用的 CreatedBookingDetailsFragment$onViewCreated$1$10$1.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.brevistay.app.view.booking.fragments;

import com.brevistay.app.models.booking_model.booking_details.BookingDetailBody;
import com.brevistay.app.viewmodels.booking_viewmodel.CreatedBookingViewModel;
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.CreatedBookingDetailsFragment$onViewCreated$1$10$1", f = "CreatedBookingDetailsFragment.kt", i = {}, l = {2142}, m = "invokeSuspend", n = {}, s = {})
final class CreatedBookingDetailsFragment$onViewCreated$1$10$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
    final String $jwtId;
    int label;
    final CreatedBookingDetailsFragment this$0;

    CreatedBookingDetailsFragment$onViewCreated$1$10$1(CreatedBookingDetailsFragment createdBookingDetailsFragment, String str, Continuation<? super CreatedBookingDetailsFragment$onViewCreated$1$10$1> continuation) {
        super(2, continuation);
        this.this$0 = createdBookingDetailsFragment;
        this.$jwtId = str;
    }

    public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
        return new CreatedBookingDetailsFragment$onViewCreated$1$10$1(this.this$0, this.$jwtId, continuation);
    }

    public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
        return create(coroutineScope, continuation).invokeSuspend(Unit.INSTANCE);
    }

    public final Object invokeSuspend(Object obj) {
        CreatedBookingViewModel createdBookingViewModel;
        CreatedBookingViewModel createdBookingViewModel2;
        Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
        int i = this.label;
        if (i == 0) {
            ResultKt.throwOnFailure(obj);
            Thread.sleep(300L);
            createdBookingViewModel = this.this$0.viewmodel;
            CreatedBookingViewModel createdBookingViewModel3 = null;
            if (createdBookingViewModel == null) {
                Intrinsics.throwUninitializedPropertyAccessException("viewmodel");
                createdBookingViewModel = null;
            }
            String str = (String) createdBookingViewModel.getUserToken().getValue();
            if (str != null) {
                CreatedBookingDetailsFragment createdBookingDetailsFragment = this.this$0;
                String str2 = this.$jwtId;
                createdBookingDetailsFragment.setBookingDetailsFlag(true);
                createdBookingViewModel2 = createdBookingDetailsFragment.viewmodel;
                if (createdBookingViewModel2 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("viewmodel");
                } else {
                    createdBookingViewModel3 = createdBookingViewModel2;
                }
                BookingDetailBody bookingDetailBody = new BookingDetailBody(str2);
                this.label = 1;
                if (createdBookingViewModel3.getHolidaBookingDetail(bookingDetailBody, str, "https://api.holida.com/app-api/booking-details", 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;
    }
}