导航菜单

页面标题

页面副标题

MedEd v5.3.6 - NeetPGQuizFeedbackActivity.java 源代码

正在查看: MedEd v5.3.6 应用的 NeetPGQuizFeedbackActivity.java JAVA 源代码文件

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


package com.penpencil.physicswallah.feature.quiz.presentation.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
import androidx.compose.ui.input.key.mmtm.EZkPENtU;
import androidx.lifecycle.I;
import com.google.gson.Gson;
import com.mocklets.pluto.modules.exceptions.sJ.cpLPGnqcuD;
import com.penpencil.k8_timeless.ui.mainviewmodel.K8MainContract;
import com.penpencil.k8_timeless.ui.mainviewmodel.a;
import com.penpencil.network.response.ExerciseResultResponse;
import com.penpencil.physicswallah.feature.quiz.presentation.activity.NeetPGQuizFeedbackActivity;
import com.penpencil.physicswallah.feature.quiz.presentation.activity.QuizSummaryActivity;
import defpackage.P;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;

@Metadata
public final class NeetPGQuizFeedbackActivity extends XQ0 {
    public static final int M0 = 0;
    public String B0;
    public String C0;
    public String D0;
    public String E0;
    public String F0;
    public String G0;
    public String H0;
    public String I0;
    public String J0;
    public jV1 K0;
    public nP1 L0;

    public final void Q0(final int i) {
        Intrinsics.checkNotNullParameter(this, "owner");
        Qt3 viewModelStore = getViewModelStore();
        I.c c = Pt3.c(this);
        SW b = Pt3.b(this);
        Intrinsics.checkNotNullParameter(viewModelStore, "store");
        Intrinsics.checkNotNullParameter(c, "factory");
        Ot3 b2 = Yd.b(b, "defaultCreationExtras", viewModelStore, c, b);
        EG b3 = Y0.b(h93.class, "modelClass", h93.class, "<this>", h93.class);
        Intrinsics.checkNotNullParameter(b3, "modelClass");
        h93 b4 = Ot3.b(b2, b3);
        Xt.k(this, "Loading Summary");
        String str = this.B0;
        if (str == null) {
            Intrinsics.n("testId");
            throw null;
        }
        final int i2 = 2;
        b4.f(str).f(this, new b((P) new Function1() {
            public final Object invoke(Object obj) {
                int i3 = i2;
                int i4 = i;
                Object obj2 = this;
                switch (i3) {
                    case 1:
                        a aVar = (a) obj2;
                        int intValue = ((Integer) obj).intValue();
                        Intrinsics.checkNotNullParameter(aVar, "$viewModel");
                        aVar.p(new K8MainContract.Event.OnFIBRemove(i4, intValue));
                        return Unit.a;
                    default:
                        ?? r2 = (NeetPGQuizFeedbackActivity) obj2;
                        ExerciseResultResponse exerciseResultResponse = (ExerciseResultResponse) obj;
                        int i5 = NeetPGQuizFeedbackActivity.M0;
                        Intrinsics.checkNotNullParameter((Object) r2, "this$0");
                        Xt.g();
                        if (exerciseResultResponse == null) {
                            Toast.makeText((Context) r2, 2132018186, 0).show();
                            return Unit.a;
                        }
                        if (exerciseResultResponse.getSuccess()) {
                            jV1 jv1 = r2.K0;
                            if (jv1 == null) {
                                Intrinsics.n("networkManager");
                                throw null;
                            }
                            if (Intrinsics.b(jv1.c().v(), "neetpgSearchLanding")) {
                                rH.b = true;
                            }
                            Intent intent = new Intent((Context) r2, (Class<?>) QuizSummaryActivity.class);
                            intent.putExtra("type", "QBank Summary");
                            String str2 = r2.E0;
                            String str3 = cpLPGnqcuD.FRpHuGPsqQOLg;
                            if (str2 == null) {
                                Intrinsics.n(str3);
                                throw null;
                            }
                            intent.putExtra(str3, str2);
                            String str4 = r2.D0;
                            if (str4 == null) {
                                Intrinsics.n("topicName");
                                throw null;
                            }
                            intent.putExtra("topicName", str4);
                            String str5 = r2.G0;
                            if (str5 == null) {
                                Intrinsics.n("quizEntryPoint");
                                throw null;
                            }
                            intent.putExtra("entryPoint", str5);
                            String str6 = r2.B0;
                            if (str6 == null) {
                                Intrinsics.n("testId");
                                throw null;
                            }
                            intent.putExtra("exerciseId", str6);
                            String str7 = r2.C0;
                            if (str7 == null) {
                                Intrinsics.n("testTitle");
                                throw null;
                            }
                            intent.putExtra("exerciseName", str7);
                            String str8 = r2.F0;
                            if (str8 == null) {
                                Intrinsics.n("testMappingId");
                                throw null;
                            }
                            intent.putExtra("testMappingId", str8);
                            String str9 = r2.I0;
                            if (str9 == null) {
                                Intrinsics.n("subjectName");
                                throw null;
                            }
                            intent.putExtra("subjectName", str9);
                            String str10 = r2.J0;
                            if (str10 == null) {
                                Intrinsics.n("source");
                                throw null;
                            }
                            intent.putExtra("source", str10);
                            intent.putExtra("show_play_store_rating", i4);
                            intent.putExtra("testResultData", new Gson().l(exerciseResultResponse.getData()));
                            r2.startActivity(intent);
                            r2.finish();
                        } else {
                            Toast.makeText((Context) r2, 2132018186, 0).show();
                        }
                        return Unit.a;
                }
            }
        }));
    }

    public final void onCreate(Bundle bundle) {
        String e;
        String e2;
        String e3;
        String e4;
        String e5;
        String e6;
        String e7;
        String e8;
        String e9;
        super.onCreate(bundle);
        Intent intent = getIntent();
        if (intent == null || (e = intent.getStringExtra("test_id")) == null) {
            e = UW2.e(QW2.a);
        }
        this.B0 = e;
        Intent intent2 = getIntent();
        if (intent2 == null || (e2 = intent2.getStringExtra("test_title")) == null) {
            e2 = UW2.e(QW2.a);
        }
        this.C0 = e2;
        Intent intent3 = getIntent();
        if (intent3 == null || (e3 = intent3.getStringExtra("testMappingId")) == null) {
            e3 = UW2.e(QW2.a);
        }
        this.F0 = e3;
        Intent intent4 = getIntent();
        if (intent4 == null || (e4 = intent4.getStringExtra(EZkPENtU.GipHYZ)) == null) {
            e4 = UW2.e(QW2.a);
        }
        this.D0 = e4;
        Intent intent5 = getIntent();
        if (intent5 == null || (e5 = intent5.getStringExtra("programId")) == null) {
            e5 = UW2.e(QW2.a);
        }
        this.E0 = e5;
        Intent intent6 = getIntent();
        if (intent6 == null || (e6 = intent6.getStringExtra("entryPoint")) == null) {
            e6 = UW2.e(QW2.a);
        }
        this.G0 = e6;
        Intent intent7 = getIntent();
        if (intent7 == null || (e7 = intent7.getStringExtra("QUIZ_OR_QBANK")) == null) {
            e7 = UW2.e(QW2.a);
        }
        this.H0 = e7;
        Intent intent8 = getIntent();
        if (intent8 == null || (e8 = intent8.getStringExtra("subjectName")) == null) {
            e8 = UW2.e(QW2.a);
        }
        this.I0 = e8;
        Intent intent9 = getIntent();
        if (intent9 == null || (e9 = intent9.getStringExtra("source")) == null) {
            e9 = UW2.e(QW2.a);
        }
        this.J0 = e9;
        String str = this.H0;
        if (str != null) {
            if (f93.b(str, "Quiz")) {
                uY0[] uy0Arr = uY0.a;
            } else {
                uY0[] uy0Arr2 = uY0.a;
            }
            nP1 np1 = this.L0;
            if (np1 != null) {
                String str2 = this.J0;
                if (str2 != null) {
                    String str3 = this.B0;
                    if (str3 != null) {
                        np1.e(str2, str3, (String) null);
                        WL.a(this, new pM(-1848260107, new a(this), true));
                        return;
                    } else {
                        Intrinsics.n("testId");
                        throw null;
                    }
                }
                Intrinsics.n("source");
                throw null;
            }
            Intrinsics.n("neetPGGAEvents");
            throw null;
        }
        Intrinsics.n("quizOrQbank");
        throw null;
    }
}