apk(点击下载) / e.java


package com.netease.nimlib.f;

import android.text.TextUtils;
import com.netease.nimlib.c;
import com.netease.nimlib.push.packet.asymmetric.AsymmetricType;
import com.netease.nimlib.push.packet.symmetry.SymmetryType;
import com.netease.nimlib.sdk.ServerAddresses;
import java.util.List;

/* compiled from: ServerConfig */
public final class e {

    /* access modifiers changed from: package-private */
    /* compiled from: ServerConfig */
    public enum a {
        TEST("t", "link-test.netease.im:8000", g.c, "https://lbs-test.netease.im/lbs/conf.jsp", g.f, "https://imtest.netease.im/1.gif", "http://check-ipv4.netease.im/", "http://check-ipv6.netease.im/"),
        PRE_REL("p", "59.111.209.58:8080", g.b, "https://imtest.netease.im/lbsrc/conf.jsp", g.e, "https://imtest.netease.im/1.gif", "http://check-ipv4.netease.im/", "http://check-ipv6.netease.im/"),
        REL("r", "link.netease.im:8080", g.a, "https://lbs.netease.im/lbs/conf.jsp", g.f1710d, "https://dr.netease.im/1.gif", "http://check-ipv4.netease.im/", "http://check-ipv6.netease.im/");
        

        /* renamed from: d  reason: collision with root package name */
        String f1709d;
        String e;
        List<String> f;
        String g;
        List<String> h;
        String i;
        String j;
        String k;

        private a(String str, String str2, List list, String str3, List list2, String str4, String str5, String str6) {
            this.f1709d = str;
            this.e = str2;
            this.f = list;
            this.g = str3;
            this.h = list2;
            this.i = str4;
            this.j = str5;
            this.k = str6;
        }

        public String a() {
            return this.e;
        }

        public List<String> b() {
            return this.f;
        }

        public String c() {
            return this.g;
        }

        public List<String> d() {
            return this.h;
        }

        public String e() {
            return this.i;
        }

        public String f() {
            return this.j;
        }

        public String g() {
            return this.k;
        }
    }

    public static boolean a() {
        return f.a == a.TEST;
    }

    public static boolean b() {
        return f.a == a.PRE_REL;
    }

    public static boolean c() {
        return c.l() != null;
    }

    public static boolean d() {
        ServerAddresses l = c.l();
        return l != null && !TextUtils.isEmpty(l.negoKeyEncaKeyParta) && !TextUtils.isEmpty(l.negoKeyEncaKeyPartb);
    }

    public static boolean e() {
        ServerAddresses l = c.l();
        return l != null && !TextUtils.isEmpty(l.module);
    }

    public static AsymmetricType f() {
        AsymmetricType asymmetricType;
        ServerAddresses l = c.l();
        if (l == null || (asymmetricType = l.negoKeyNeca) == null) {
            return AsymmetricType.RSA;
        }
        return asymmetricType;
    }

    public static SymmetryType g() {
        SymmetryType symmetryType;
        ServerAddresses l = c.l();
        if (l == null || (symmetryType = l.commEnca) == null) {
            return SymmetryType.RC4;
        }
        return symmetryType;
    }

    public static int h() {
        a aVar = f.a;
        if (aVar.f1709d.equals("t")) {
            return 1;
        }
        if (aVar.f1709d.equals("p")) {
            return 2;
        }
        if (aVar.f1709d.equals("r")) {
        }
        return 3;
    }

    public static boolean i() {
        return c() && c.l().test;
    }
}