2021-11-02 06:38:17 +00:00
|
|
|
package i0;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
2022-01-13 08:07:50 +00:00
|
|
|
import b.i.a.f.e.o.f;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.w.i.a.g;
|
|
|
|
import f0.e;
|
2021-08-03 07:33:18 +00:00
|
|
|
import kotlin.coroutines.Continuation;
|
|
|
|
import okhttp3.ResponseBody;
|
2021-12-02 18:53:44 +00:00
|
|
|
import s.a.l;
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: HttpServiceMethod.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public abstract class j<ResponseT, ReturnT> extends z<ReturnT> {
|
|
|
|
public final w a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-28 08:10:50 +00:00
|
|
|
public final e.a f3735b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final h<ResponseBody, ResponseT> c;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: HttpServiceMethod.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.j
|
2021-08-03 07:33:18 +00:00
|
|
|
public ReturnT c(d<ResponseT> dVar, Object[] objArr) {
|
|
|
|
return this.d.b(dVar);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: HttpServiceMethod.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.j
|
2021-08-03 07:33:18 +00:00
|
|
|
public Object c(d<ResponseT> dVar, Object[] objArr) {
|
2021-12-17 21:59:34 +00:00
|
|
|
d<ResponseT> b2 = this.d.b(dVar);
|
2021-08-03 07:33:18 +00:00
|
|
|
Continuation continuation = (Continuation) objArr[objArr.length - 1];
|
|
|
|
try {
|
2021-12-02 18:53:44 +00:00
|
|
|
l lVar = new l(d0.w.h.b.intercepted(continuation), 1);
|
2021-12-17 21:59:34 +00:00
|
|
|
lVar.f(new l(b2));
|
|
|
|
b2.C(new m(lVar));
|
2021-12-02 18:53:44 +00:00
|
|
|
Object u = lVar.u();
|
2021-11-02 06:38:17 +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) {
|
2022-01-13 08:07:50 +00:00
|
|
|
return f.i1(e, continuation);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-07 09:34:54 +00:00
|
|
|
/* compiled from: HttpServiceMethod.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.j
|
2021-08-03 07:33:18 +00:00
|
|
|
public Object c(d<ResponseT> dVar, Object[] objArr) {
|
2021-12-17 21:59:34 +00:00
|
|
|
d<ResponseT> b2 = this.d.b(dVar);
|
2021-08-03 07:33:18 +00:00
|
|
|
Continuation continuation = (Continuation) objArr[objArr.length - 1];
|
|
|
|
try {
|
2021-12-02 18:53:44 +00:00
|
|
|
l lVar = new l(d0.w.h.b.intercepted(continuation), 1);
|
2021-12-17 21:59:34 +00:00
|
|
|
lVar.f(new n(b2));
|
|
|
|
b2.C(new o(lVar));
|
2021-12-02 18:53:44 +00:00
|
|
|
Object u = lVar.u();
|
2021-11-02 06:38:17 +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) {
|
2022-01-13 08:07:50 +00:00
|
|
|
return f.i1(e, continuation);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public j(w wVar, e.a aVar, h<ResponseBody, ResponseT> hVar) {
|
|
|
|
this.a = wVar;
|
2022-03-28 08:10:50 +00:00
|
|
|
this.f3735b = aVar;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = hVar;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // i0.z
|
2021-08-03 07:33:18 +00:00
|
|
|
public final ReturnT a(Object[] objArr) {
|
2022-03-28 08:10:50 +00:00
|
|
|
return c(new p(this.a, objArr, this.f3735b, this.c), objArr);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public abstract ReturnT c(d<ResponseT> dVar, Object[] objArr);
|
|
|
|
}
|