package or;

import java.util.Objects;
import uq.a0;
import uq.b0;
import uq.d0;
import uq.e0;

/* loaded from: classes5.dex */
public final class t<T> {

    /* renamed from: a, reason: collision with root package name */
    private final d0 f31812a;

    /* renamed from: b, reason: collision with root package name */
    private final Object f31813b;

    /* renamed from: c, reason: collision with root package name */
    private final e0 f31814c;

    private t(d0 d0Var, Object obj, e0 e0Var) {
        this.f31812a = d0Var;
        this.f31813b = obj;
        this.f31814c = e0Var;
    }

    public static t c(e0 e0Var, d0 d0Var) {
        Objects.requireNonNull(e0Var, "body == null");
        Objects.requireNonNull(d0Var, "rawResponse == null");
        if (d0Var.s()) {
            throw new IllegalArgumentException("rawResponse should not be successful response");
        }
        return new t(d0Var, null, e0Var);
    }

    public static t g(Object obj) {
        return h(obj, new d0.a().e(200).l("OK").o(a0.HTTP_1_1).q(new b0.a().y("http://localhost/").b()).c());
    }

    public static t h(Object obj, d0 d0Var) {
        Objects.requireNonNull(d0Var, "rawResponse == null");
        if (d0Var.s()) {
            return new t(d0Var, obj, null);
        }
        throw new IllegalArgumentException("rawResponse must be successful response");
    }

    public Object a() {
        return this.f31813b;
    }

    public int b() {
        return this.f31812a.f();
    }

    public e0 d() {
        return this.f31814c;
    }

    public boolean e() {
        return this.f31812a.s();
    }

    public String f() {
        return this.f31812a.t();
    }

    public String toString() {
        return this.f31812a.toString();
    }
}
