2021-06-27 20:44:35 +00:00
|
|
|
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 */
|
2021-07-27 04:36:47 +00:00
|
|
|
public final ResponseBody f2846c;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
|
|
|
public x(Response response, T t, ResponseBody responseBody) {
|
|
|
|
this.a = response;
|
|
|
|
this.b = t;
|
2021-07-27 04:36:47 +00:00
|
|
|
this.f2846c = responseBody;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|