2021-08-03 07:33:18 +00:00
|
|
|
package i0;
|
|
|
|
|
2021-08-25 07:02:36 +00:00
|
|
|
import d0.w.i.a.g;
|
2021-08-03 07:33:18 +00:00
|
|
|
import f0.e;
|
|
|
|
import kotlin.coroutines.Continuation;
|
|
|
|
import okhttp3.ResponseBody;
|
|
|
|
import s.a.k;
|
|
|
|
/* compiled from: HttpServiceMethod */
|
|
|
|
public abstract class j<ResponseT, ReturnT> extends z<ReturnT> {
|
|
|
|
public final w a;
|
|
|
|
public final e.a b;
|
|
|
|
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
2021-09-07 06:52:02 +00:00
|
|
|
public final h<ResponseBody, ResponseT> f2901c;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
/* compiled from: HttpServiceMethod */
|
|
|
|
public static final class a<ResponseT, ReturnT> extends j<ResponseT, ReturnT> {
|
|
|
|
public final e<ResponseT, ReturnT> d;
|
|
|
|
|
|
|
|
public a(w wVar, e.a aVar, h<ResponseBody, ResponseT> hVar, e<ResponseT, ReturnT> eVar) {
|
|
|
|
super(wVar, aVar, hVar);
|
|
|
|
this.d = eVar;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // i0.j
|
|
|
|
public ReturnT c(d<ResponseT> dVar, Object[] objArr) {
|
|
|
|
return this.d.b(dVar);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: HttpServiceMethod */
|
|
|
|
public static final class b<ResponseT> extends j<ResponseT, Object> {
|
|
|
|
public final e<ResponseT, d<ResponseT>> d;
|
|
|
|
|
|
|
|
public b(w wVar, e.a aVar, h<ResponseBody, ResponseT> hVar, e<ResponseT, d<ResponseT>> eVar, boolean z2) {
|
|
|
|
super(wVar, aVar, hVar);
|
|
|
|
this.d = eVar;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // i0.j
|
|
|
|
public Object c(d<ResponseT> dVar, Object[] objArr) {
|
|
|
|
d<ResponseT> b = this.d.b(dVar);
|
|
|
|
Continuation continuation = (Continuation) objArr[objArr.length - 1];
|
|
|
|
try {
|
2021-08-25 07:02:36 +00:00
|
|
|
k kVar = new k(d0.w.h.b.intercepted(continuation), 1);
|
2021-08-03 07:33:18 +00:00
|
|
|
kVar.e(new l(b));
|
|
|
|
b.B(new m(kVar));
|
|
|
|
Object u = kVar.u();
|
2021-08-25 07:02:36 +00:00
|
|
|
if (u == d0.w.h.c.getCOROUTINE_SUSPENDED()) {
|
2021-08-03 07:33:18 +00:00
|
|
|
g.probeCoroutineSuspended(continuation);
|
|
|
|
}
|
|
|
|
return u;
|
|
|
|
} catch (Exception e) {
|
|
|
|
return c.q.a.k.a.U(e, continuation);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: HttpServiceMethod */
|
|
|
|
public static final class c<ResponseT> extends j<ResponseT, Object> {
|
|
|
|
public final e<ResponseT, d<ResponseT>> d;
|
|
|
|
|
|
|
|
public c(w wVar, e.a aVar, h<ResponseBody, ResponseT> hVar, e<ResponseT, d<ResponseT>> eVar) {
|
|
|
|
super(wVar, aVar, hVar);
|
|
|
|
this.d = eVar;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // i0.j
|
|
|
|
public Object c(d<ResponseT> dVar, Object[] objArr) {
|
|
|
|
d<ResponseT> b = this.d.b(dVar);
|
|
|
|
Continuation continuation = (Continuation) objArr[objArr.length - 1];
|
|
|
|
try {
|
2021-08-25 07:02:36 +00:00
|
|
|
k kVar = new k(d0.w.h.b.intercepted(continuation), 1);
|
2021-08-03 07:33:18 +00:00
|
|
|
kVar.e(new n(b));
|
|
|
|
b.B(new o(kVar));
|
|
|
|
Object u = kVar.u();
|
2021-08-25 07:02:36 +00:00
|
|
|
if (u == d0.w.h.c.getCOROUTINE_SUSPENDED()) {
|
2021-08-03 07:33:18 +00:00
|
|
|
g.probeCoroutineSuspended(continuation);
|
|
|
|
}
|
|
|
|
return u;
|
|
|
|
} catch (Exception e) {
|
|
|
|
return c.q.a.k.a.U(e, continuation);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public j(w wVar, e.a aVar, h<ResponseBody, ResponseT> hVar) {
|
|
|
|
this.a = wVar;
|
|
|
|
this.b = aVar;
|
2021-09-07 06:52:02 +00:00
|
|
|
this.f2901c = hVar;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // i0.z
|
|
|
|
public final ReturnT a(Object[] objArr) {
|
2021-09-07 06:52:02 +00:00
|
|
|
return c(new p(this.a, objArr, this.b, this.f2901c), objArr);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public abstract ReturnT c(d<ResponseT> dVar, Object[] objArr);
|
|
|
|
}
|