package dd;

/* JADX INFO: loaded from: classes.dex */
public final class a0 implements ed.t {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f25094a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f25095b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Object f25096c;

    public /* synthetic */ a0(Object obj, Object obj2, int i10) {
        this.f25094a = i10;
        this.f25096c = obj;
        this.f25095b = obj2;
    }

    @Override // ed.t
    public final void error(String str, String str2, Object obj) {
        switch (this.f25094a) {
            case 0:
                break;
            default:
                ((ed.g) this.f25095b).reply(((ed.u) ((xyz.stream.utils.f) this.f25096c).f36133c).f25848c.encodeErrorEnvelope(str, str2, obj));
                break;
        }
    }

    @Override // ed.t
    public final void notImplemented() {
        switch (this.f25094a) {
            case 0:
                break;
            default:
                ((ed.g) this.f25095b).reply(null);
                break;
        }
    }

    @Override // ed.t
    public final void success(Object obj) {
        int i10 = this.f25094a;
        Object obj2 = this.f25096c;
        Object obj3 = this.f25095b;
        switch (i10) {
            case 0:
                ((b0) obj2).f25098b = (byte[]) obj3;
                break;
            default:
                ((ed.g) obj3).reply(((ed.u) ((xyz.stream.utils.f) obj2).f36133c).f25848c.encodeSuccessEnvelope(obj));
                break;
        }
    }
}
