导航菜单

页面标题

页面副标题

klikUMKM v2.0.1 - a.java 源代码

正在查看: klikUMKM v2.0.1 应用的 a.java JAVA 源代码文件

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


package ga;

import android.content.Context;
import android.os.Message;
import android.widget.FrameLayout;
import androidx.camera.core.RetryPolicy;
import com.yx.credit.indonesia.http.entity.HomePageResult;
import com.yx.credit.indonesia.http.entity.HomePageRsp;
import com.yx.credit.indonesia.http.entity.HomepageBannerRsp;
import com.yx.credit.indonesia.view.homepage.CreditInReviewView;
import com.yx.credit.indonesia.view.homepage.CreditInitView;
import com.yx.credit.indonesia.view.homepage.CreditInvalidityView;
import com.yx.credit.indonesia.view.homepage.CreditRejectView;
import com.yx.credit.indonesia.view.homepage.HomePageView;
import com.yx.credit.indonesia.view.homepage.RequestFundsInReviewView;
import com.yx.credit.indonesia.view.homepage.RequestFundsInitView;
import com.yx.credit.indonesia.view.homepage.RequestFundsPassedView;
import com.yx.credit.indonesia.view.homepage.RequestFundsRejectView;
import java.util.HashMap;
import java.util.Objects;

public final class a implements db.h {
    public final int a;

    public final c f8531b;

    public a(c cVar, int i10) {
        this.a = i10;
        this.f8531b = cVar;
    }

    private final void a() {
    }

    private final void b() {
    }

    private final void c(eb.b bVar) {
    }

    private final void d(eb.b bVar) {
    }

    @Override
    public final void onComplete() {
        int i10 = this.a;
    }

    @Override
    public final void onError(Throwable th) {
        switch (this.a) {
            case 0:
                c cVar = this.f8531b;
                cVar.f8536f0.setVisibility(8);
                cVar.f8538h0.setVisibility(0);
                break;
            default:
                c cVar2 = this.f8531b;
                cVar2.f8537g0.setVisibility(8);
                cVar2.f8536f0.setVisibility(8);
                cVar2.f8538h0.setVisibility(8);
                break;
        }
    }

    @Override
    public final void onNext(Object obj) {
        switch (this.a) {
            case 0:
                HomePageRsp homePageRsp = (HomePageRsp) obj;
                c cVar = this.f8531b;
                if (homePageRsp != null && homePageRsp.isSuccess()) {
                    cVar.f8536f0.setVisibility(8);
                    cVar.f8538h0.setVisibility(8);
                    if (cVar.j0 != null) {
                        cVar.f8536f0.setVisibility(0);
                        cVar.f8538h0.setVisibility(8);
                        HashMap hashMap = new HashMap();
                        com.yx.credit.base.net.k.a.w("https://api.klikumkm.co.id/api/indo/mk/resource/banners", hashMap, HomepageBannerRsp.class, true).M(cb.b.a()).R(new a(cVar, 1));
                    }
                    HomePageResult data = homePageRsp.getData();
                    p6.f fVar = cVar.f8532b0;
                    if (data != null) {
                        if (cVar.n() != null) {
                            cVar.f8533c0.removeAllViews();
                            Context n6 = cVar.n();
                            HomePageResult data2 = homePageRsp.getData();
                            HomePageView homePageView = null;
                            if (data2 != null) {
                                int applyStatus = data2.getApplyStatus();
                                if (applyStatus == 0) {
                                    homePageView = new CreditInitView(n6);
                                } else if (applyStatus == 1) {
                                    homePageView = new CreditInReviewView(n6);
                                } else if (applyStatus == 2) {
                                    homePageView = new CreditRejectView(n6);
                                } else if (applyStatus == 3 || applyStatus == 4) {
                                    homePageView = new RequestFundsInitView(n6);
                                } else if (applyStatus == 5) {
                                    homePageView = new RequestFundsInReviewView(n6);
                                } else if (applyStatus == 15) {
                                    homePageView = new RequestFundsRejectView(n6);
                                } else if (applyStatus == 6) {
                                    homePageView = new RequestFundsPassedView(n6);
                                } else if (applyStatus == 16 || applyStatus == 17) {
                                    homePageView = new CreditInvalidityView(n6);
                                }
                                if (homePageView != null) {
                                    homePageView.setData(data2);
                                }
                            }
                            if (homePageView != null) {
                                homePageView.f7758c = cVar.f11295a0;
                                homePageView.f7759d = "HomeFragment";
                                cVar.f8533c0.addView(homePageView, new FrameLayout.LayoutParams(-1, -2));
                            }
                            int applyStatus2 = homePageRsp.getData().getApplyStatus();
                            if (1 == applyStatus2 || 5 == applyStatus2) {
                                Message obtain = Message.obtain();
                                obtain.arg1 = applyStatus2;
                                cVar.f8539k0.sendMessageDelayed(obtain, RetryPolicy.DEFAULT_RETRY_TIMEOUT_IN_MILLIS);
                                fVar.getClass();
                                p6.f.n();
                                break;
                            }
                        } else {
                            fVar.getClass();
                            p6.f.n();
                            break;
                        }
                    } else {
                        Objects.toString(homePageRsp);
                        fVar.getClass();
                        p6.f.n();
                        break;
                    }
                } else {
                    cVar.f8536f0.setVisibility(8);
                    cVar.f8538h0.setVisibility(0);
                    break;
                }
                break;
            default:
                HomepageBannerRsp homepageBannerRsp = (HomepageBannerRsp) obj;
                c cVar2 = this.f8531b;
                cVar2.f8536f0.setVisibility(8);
                cVar2.f8538h0.setVisibility(8);
                if (homepageBannerRsp == null || !homepageBannerRsp.isSuccess() || !h4.h.v(homepageBannerRsp.getData())) {
                    cVar2.f8537g0.setVisibility(8);
                    break;
                } else {
                    cVar2.f8537g0.setVisibility(0);
                    cVar2.f8537g0.setData(homepageBannerRsp.getData());
                    break;
                }
                break;
        }
    }

    @Override
    public final void onSubscribe(eb.b bVar) {
        int i10 = this.a;
    }
}