2021-11-08 18:25:28 +00:00
|
|
|
package i0;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2022-01-27 00:50:41 +00:00
|
|
|
import b.i.a.f.e.o.f;
|
2021-11-08 18:25:28 +00:00
|
|
|
import d0.w.i.a.g;
|
|
|
|
import f0.e;
|
2021-06-27 20:44:35 +00:00
|
|
|
import kotlin.coroutines.Continuation;
|
|
|
|
import okhttp3.ResponseBody;
|
2021-12-17 22:03:14 +00:00
|
|
|
import s.a.l;
|
2022-03-02 20:59:20 +00:00
|
|
|
/* compiled from: HttpServiceMethod.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-08-04 22:02:59 +00:00
|
|
|
public abstract class j<ResponseT, ReturnT> extends z<ReturnT> {
|
2021-06-27 20:44:35 +00:00
|
|
|
public final w a;
|
|
|
|
|
2021-12-21 23:37:30 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-03-30 16:43:10 +00:00
|
|
|
public final e.a f3724b;
|
2021-12-21 23:37:30 +00:00
|
|
|
public final h<ResponseBody, ResponseT> c;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2022-03-02 20:59:20 +00:00
|
|
|
/* compiled from: HttpServiceMethod.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-06-27 20:44:35 +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-08 18:25:28 +00:00
|
|
|
@Override // i0.j
|
2021-06-27 20:44:35 +00:00
|
|
|
public ReturnT c(d<ResponseT> dVar, Object[] objArr) {
|
|
|
|
return this.d.b(dVar);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-02 20:59:20 +00:00
|
|
|
/* compiled from: HttpServiceMethod.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-06-27 20:44:35 +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-08 18:25:28 +00:00
|
|
|
@Override // i0.j
|
2021-06-27 20:44:35 +00:00
|
|
|
public Object c(d<ResponseT> dVar, Object[] objArr) {
|
2021-12-21 23:37:30 +00:00
|
|
|
d<ResponseT> b2 = this.d.b(dVar);
|
2021-06-27 20:44:35 +00:00
|
|
|
Continuation continuation = (Continuation) objArr[objArr.length - 1];
|
|
|
|
try {
|
2021-12-17 22:03:14 +00:00
|
|
|
l lVar = new l(d0.w.h.b.intercepted(continuation), 1);
|
2021-12-21 23:37:30 +00:00
|
|
|
lVar.f(new l(b2));
|
|
|
|
b2.C(new m(lVar));
|
2021-12-17 22:03:14 +00:00
|
|
|
Object u = lVar.u();
|
2021-11-08 18:25:28 +00:00
|
|
|
if (u == d0.w.h.c.getCOROUTINE_SUSPENDED()) {
|
2021-06-27 20:44:35 +00:00
|
|
|
g.probeCoroutineSuspended(continuation);
|
|
|
|
}
|
|
|
|
return u;
|
|
|
|
} catch (Exception e) {
|
2022-01-27 00:50:41 +00:00
|
|
|
return f.i1(e, continuation);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-02 20:59:20 +00:00
|
|
|
/* compiled from: HttpServiceMethod.java */
|
|
|
|
/* loaded from: classes3.dex */
|
2021-06-27 20:44:35 +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-08 18:25:28 +00:00
|
|
|
@Override // i0.j
|
2021-06-27 20:44:35 +00:00
|
|
|
public Object c(d<ResponseT> dVar, Object[] objArr) {
|
2021-12-21 23:37:30 +00:00
|
|
|
d<ResponseT> b2 = this.d.b(dVar);
|
2021-06-27 20:44:35 +00:00
|
|
|
Continuation continuation = (Continuation) objArr[objArr.length - 1];
|
|
|
|
try {
|
2021-12-17 22:03:14 +00:00
|
|
|
l lVar = new l(d0.w.h.b.intercepted(continuation), 1);
|
2021-12-21 23:37:30 +00:00
|
|
|
lVar.f(new n(b2));
|
|
|
|
b2.C(new o(lVar));
|
2021-12-17 22:03:14 +00:00
|
|
|
Object u = lVar.u();
|
2021-11-08 18:25:28 +00:00
|
|
|
if (u == d0.w.h.c.getCOROUTINE_SUSPENDED()) {
|
2021-06-27 20:44:35 +00:00
|
|
|
g.probeCoroutineSuspended(continuation);
|
|
|
|
}
|
|
|
|
return u;
|
|
|
|
} catch (Exception e) {
|
2022-01-27 00:50:41 +00:00
|
|
|
return f.i1(e, continuation);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public j(w wVar, e.a aVar, h<ResponseBody, ResponseT> hVar) {
|
|
|
|
this.a = wVar;
|
2022-03-30 16:43:10 +00:00
|
|
|
this.f3724b = aVar;
|
2021-12-21 23:37:30 +00:00
|
|
|
this.c = hVar;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // i0.z
|
2021-06-27 20:44:35 +00:00
|
|
|
public final ReturnT a(Object[] objArr) {
|
2022-03-30 16:43:10 +00:00
|
|
|
return c(new p(this.a, objArr, this.f3724b, this.c), objArr);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public abstract ReturnT c(d<ResponseT> dVar, Object[] objArr);
|
|
|
|
}
|