LINE.apk(点击下载) / a.java


package zu;

import cn3.g;
import cn3.i;
import dm3.p;
import do3.c;
import dy2.b;
import em3.q;
import hy2.b;
import java.net.URL;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Objects;
import jp.naver.line.android.thrift.client.impl.SecondaryPwlessLoginServiceClientImpl;
import jp.naver.line.android.thrift.client.impl.a;
import ju.b;
import kotlin.NoWhenBranchMatchedException;
import org.json.JSONObject;
import um3.a0;
import um3.h0;
import uq.j;
import uq.t;
import zu.c;
import zx0.a1;
import zx0.e0;
import zx0.n1;
import zx0.o1;
import zx0.q1;
import zx2.d;
import zx2.f;
import zx2.x;
import zx2.z;

public final /* synthetic */ class a implements z, a.c, f {

    /* renamed from: b  reason: collision with root package name */
    public final /* synthetic */ Object f200916b;

    /* renamed from: c  reason: collision with root package name */
    public final /* synthetic */ Object f200917c;

    /* renamed from: d  reason: collision with root package name */
    public final /* synthetic */ Object f200918d;

    public /* synthetic */ a(Object obj, Object obj2, Object obj3) {
        this.f200916b = obj;
        this.f200917c = obj2;
        this.f200918d = obj3;
    }

    @Override // zx2.f
    public void d(d dVar) {
        i iVar = new i(a0.c((h0) this.f200916b, (ul3.f) this.f200917c), dVar);
        b.f((b.a) dVar, new dy2.a(new g(iVar)));
        iVar.E0(1, iVar, (p) this.f200918d);
    }

    @Override // jp.naver.line.android.thrift.client.impl.a.c
    public Object g(Object obj) {
        a1 a1Var = (a1) obj;
        q1 q1Var = new q1((String) this.f200916b, (String) this.f200917c);
        a1 a1Var2 = (a1) ((SecondaryPwlessLoginServiceClientImpl) this.f200918d).lambda$singleOf$3();
        Objects.requireNonNull(a1Var2);
        n1 n1Var = new n1();
        n1Var.f201408b = q1Var;
        a1Var2.b("verifyLoginCertificate", n1Var);
        o1 o1Var = new o1();
        a1Var2.a(o1Var, "verifyLoginCertificate");
        if (o1Var.f()) {
            return o1Var.f201426b;
        }
        e0 e0Var = o1Var.f201427c;
        if (e0Var != null) {
            throw e0Var;
        }
        throw new c(5, "verifyLoginCertificate failed: unknown result");
    }

    @Override // zx2.z
    public void i(x xVar) {
        String str;
        b.EnumC1537b bVar = (b.EnumC1537b) this.f200916b;
        Map<String, String> map = (Map) this.f200917c;
        ju.a aVar = (ju.a) this.f200918d;
        q.f(bVar, "$type");
        q.f(map, "$headers");
        q.f(aVar, "$body");
        mr.a aVar2 = (mr.a) c.f200923b.getValue();
        j jVar = j.LGFP;
        uq.a aVar3 = uq.a.HTTP_PROXY;
        int i14 = c.a.$EnumSwitchMapping$0[bVar.ordinal()];
        if (i14 == 1) {
            str = "https:///lad/api/reaction/v1/l";
        } else if (i14 == 2) {
            str = "https:///lad/api/reaction/v1/ul";
        } else if (i14 == 3) {
            str = "https:///lad/api/reaction/v1/gl";
        } else if (i14 == 4) {
            str = "https:///lad/api/reaction/v1/gll";
        } else {
            throw new NoWhenBranchMatchedException();
        }
        URL url = new URL(str);
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        String str2 = aVar.f98980a;
        if (str2 != null) {
            linkedHashMap.put("uaid", str2);
        }
        String str3 = aVar.f98981b;
        if (str3 != null) {
            linkedHashMap.put("postid", str3);
        }
        String str4 = aVar.f98982c;
        if (str4 != null) {
            linkedHashMap.put("likeType", str4);
        }
        String str5 = aVar.f98983d;
        if (str5 != null) {
            linkedHashMap.put("pivot", str5);
        }
        String jSONObject = new JSONObject(linkedHashMap).toString();
        q.e(jSONObject, "JSONObject(jsonMaps as Map<*, *>).toString()");
        byte[] bytes = jSONObject.getBytes(sm3.b.f143620b);
        q.e(bytes, "this as java.lang.String).getBytes(charset)");
        aVar2.b(jVar, aVar3, url, "POST", map, bytes, new t(true, false), new i(new f(xVar), new g(xVar)));
    }
}