package pc;

import com.bytedance.sdk.component.pglcrypt.PglCryptUtils;
import ed.t;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import tv.danmaku.ijk.media.player.IjkMediaPlayer;
import v6.j;

/* JADX INFO: loaded from: classes.dex */
public final class c extends a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Map f31925a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final j f31926b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final boolean f31927c;

    public c(boolean z10, Map map) {
        j jVar = new j();
        jVar.f33702c = this;
        this.f31926b = jVar;
        this.f31925a = map;
        this.f31927c = z10;
    }

    @Override // pc.e
    public final Object a(String str) {
        return this.f31925a.get(str);
    }

    @Override // pc.b, pc.e
    public final boolean b() {
        return this.f31927c;
    }

    @Override // pc.e
    public final String c() {
        return (String) this.f31925a.get("method");
    }

    @Override // pc.a
    public final f d() {
        return this.f31926b;
    }

    @Override // pc.e
    public final boolean e() {
        return this.f31925a.containsKey("transactionId");
    }

    public final void g(t tVar) {
        j jVar = this.f31926b;
        tVar.error((String) jVar.f33701b, (String) jVar.f33704e, jVar.f33703d);
    }

    public final void h(ArrayList arrayList) {
        if (this.f31927c) {
            return;
        }
        HashMap map = new HashMap();
        HashMap map2 = new HashMap();
        j jVar = this.f31926b;
        map2.put("code", (String) jVar.f33701b);
        map2.put(PglCryptUtils.KEY_MESSAGE, (String) jVar.f33704e);
        map2.put("data", jVar.f33703d);
        map.put(IjkMediaPlayer.OnNativeInvokeListener.ARG_ERROR, map2);
        arrayList.add(map);
    }

    public final void i(ArrayList arrayList) {
        if (this.f31927c) {
            return;
        }
        HashMap map = new HashMap();
        map.put("result", this.f31926b.f33700a);
        arrayList.add(map);
    }
}
