34 lines
804 B
Java
34 lines
804 B
Java
|
package i0;
|
||
|
|
||
|
import okhttp3.Response;
|
||
|
import okhttp3.ResponseBody;
|
||
|
/* compiled from: Response */
|
||
|
public final class x<T> {
|
||
|
public final Response a;
|
||
|
public final T b;
|
||
|
|
||
|
/* renamed from: c reason: collision with root package name */
|
||
|
public final ResponseBody f2824c;
|
||
|
|
||
|
public x(Response response, T t, ResponseBody responseBody) {
|
||
|
this.a = response;
|
||
|
this.b = t;
|
||
|
this.f2824c = responseBody;
|
||
|
}
|
||
|
|
||
|
public static <T> x<T> b(T t, Response response) {
|
||
|
if (response.b()) {
|
||
|
return new x<>(response, t, null);
|
||
|
}
|
||
|
throw new IllegalArgumentException("rawResponse must be successful response");
|
||
|
}
|
||
|
|
||
|
public boolean a() {
|
||
|
return this.a.b();
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
return this.a.toString();
|
||
|
}
|
||
|
}
|