米游社.apk(点击下载) / b.java


package co;

import android.util.Log;
import av.l0;
import bo.g;
import bo.o;
import kotlin.Metadata;
import uz.d;

@Metadata(bv = {}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0002\b\u0006\bÆ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\r\u0010\u000eR\"\u0010\u0003\u001a\u00020\u00028\u0016@\u0016X–\u000e¢\u0006\u0012\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\bR\u0014\u0010\f\u001a\u00020\t8VX–\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000b¨\u0006\u000f"}, d2 = {"Lco/b;", "Lbo/o;", "Lbo/g;", "env", "Lbo/g;", "a", "()Lbo/g;", "b", "(Lbo/g;)V", "", "getHost", "()Ljava/lang/String;", "host", "<init>", "()V", "devicefp-cn_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: CnNetHost.kt */
public final class b implements o {
    @d

    /* renamed from: a  reason: collision with root package name */
    public static final b f24877a = new b();
    @d

    /* renamed from: b  reason: collision with root package name */
    public static final String f24878b = "CnNetHostLog";
    @d

    /* renamed from: c  reason: collision with root package name */
    public static g f24879c = g.DEV;
    @d

    /* renamed from: d  reason: collision with root package name */
    public static final String f24880d = "https://devop-data-takumi.mihoyo.com";
    @d

    /* renamed from: e  reason: collision with root package name */
    public static final String f24881e = "https://ptsop-data-takumi.mihoyo.com";
    @d

    /* renamed from: f  reason: collision with root package name */
    public static final String f24882f = "https://pre-op-data-takumi.mihoyo.com";
    @d

    /* renamed from: g  reason: collision with root package name */
    public static final String f24883g = "https://public-data-api.mihoyo.com";

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: CnNetHost.kt */
    public /* synthetic */ class a {

        /* renamed from: a  reason: collision with root package name */
        public static final /* synthetic */ int[] f24884a;

        static {
            int[] iArr = new int[g.values().length];
            iArr[g.DEV.ordinal()] = 1;
            iArr[g.PTS.ordinal()] = 2;
            iArr[g.PRE.ordinal()] = 3;
            iArr[g.RELEASE.ordinal()] = 4;
            f24884a = iArr;
        }
    }

    @Override // bo.o
    @d
    public g a() {
        return f24879c;
    }

    @Override // bo.o
    public void b(@d g gVar) {
        l0.p(gVar, "<set-?>");
        f24879c = gVar;
    }

    @Override // bo.o
    @d
    public String getHost() {
        int i10 = a.f24884a[a().ordinal()];
        if (i10 == 1) {
            return f24880d;
        }
        if (i10 == 2) {
            return f24881e;
        }
        if (i10 == 3) {
            return f24882f;
        }
        if (i10 == 4) {
            return f24883g;
        }
        Log.e(f24878b, "Unrecognised env: " + a().name() + ", use dev instead");
        return f24880d;
    }
}