101 lines
3.5 KiB
Java
101 lines
3.5 KiB
Java
|
package retrofit2.adapter.rxjava3;
|
||
|
|
||
|
import java.lang.reflect.Type;
|
||
|
import o.AbstractC13173fSu;
|
||
|
import retrofit2.CallAdapter;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
final class RxJava3CallAdapter<R> implements CallAdapter<R, Object> {
|
||
|
private final boolean isAsync;
|
||
|
private final boolean isBody;
|
||
|
private final boolean isCompletable;
|
||
|
private final boolean isFlowable;
|
||
|
private final boolean isMaybe;
|
||
|
private final boolean isResult;
|
||
|
private final boolean isSingle;
|
||
|
private final Type responseType;
|
||
|
private final AbstractC13173fSu scheduler;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public RxJava3CallAdapter(Type type, AbstractC13173fSu abstractC13173fSu, boolean z, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7) {
|
||
|
this.responseType = type;
|
||
|
this.scheduler = abstractC13173fSu;
|
||
|
this.isAsync = z;
|
||
|
this.isResult = z2;
|
||
|
this.isBody = z3;
|
||
|
this.isFlowable = z4;
|
||
|
this.isSingle = z5;
|
||
|
this.isMaybe = z6;
|
||
|
this.isCompletable = z7;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:13:0x0030 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:16:0x0037 */
|
||
|
@Override // retrofit2.CallAdapter
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final java.lang.Object adapt(retrofit2.Call<R> r2) {
|
||
|
/*
|
||
|
r1 = this;
|
||
|
boolean r0 = r1.isAsync
|
||
|
if (r0 == 0) goto La
|
||
|
retrofit2.adapter.rxjava3.CallEnqueueObservable r0 = new retrofit2.adapter.rxjava3.CallEnqueueObservable
|
||
|
r0.<init>(r2)
|
||
|
goto Lf
|
||
|
La:
|
||
|
retrofit2.adapter.rxjava3.CallExecuteObservable r0 = new retrofit2.adapter.rxjava3.CallExecuteObservable
|
||
|
r0.<init>(r2)
|
||
|
Lf:
|
||
|
boolean r2 = r1.isResult
|
||
|
if (r2 == 0) goto L1a
|
||
|
retrofit2.adapter.rxjava3.ResultObservable r2 = new retrofit2.adapter.rxjava3.ResultObservable
|
||
|
r2.<init>(r0)
|
||
|
L18:
|
||
|
r0 = r2
|
||
|
goto L24
|
||
|
L1a:
|
||
|
boolean r2 = r1.isBody
|
||
|
if (r2 == 0) goto L24
|
||
|
retrofit2.adapter.rxjava3.BodyObservable r2 = new retrofit2.adapter.rxjava3.BodyObservable
|
||
|
r2.<init>(r0)
|
||
|
goto L18
|
||
|
L24:
|
||
|
o.fSu r2 = r1.scheduler
|
||
|
if (r2 == 0) goto L2c
|
||
|
o.fSk r0 = r0.subscribeOn(r2)
|
||
|
L2c:
|
||
|
boolean r2 = r1.isFlowable
|
||
|
if (r2 == 0) goto L37
|
||
|
o.fRT r2 = o.fRT.LATEST
|
||
|
o.fSc r2 = r0.toFlowable(r2)
|
||
|
return r2
|
||
|
L37:
|
||
|
boolean r2 = r1.isSingle
|
||
|
if (r2 == 0) goto L40
|
||
|
o.fSw r2 = r0.singleOrError()
|
||
|
return r2
|
||
|
L40:
|
||
|
boolean r2 = r1.isMaybe
|
||
|
if (r2 == 0) goto L49
|
||
|
o.fSg r2 = r0.singleElement()
|
||
|
return r2
|
||
|
L49:
|
||
|
boolean r2 = r1.isCompletable
|
||
|
if (r2 == 0) goto L52
|
||
|
o.fRY r2 = r0.ignoreElements()
|
||
|
return r2
|
||
|
L52:
|
||
|
return r0
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: retrofit2.adapter.rxjava3.RxJava3CallAdapter.adapt(retrofit2.Call):java.lang.Object");
|
||
|
}
|
||
|
|
||
|
@Override // retrofit2.CallAdapter
|
||
|
public final Type responseType() {
|
||
|
return this.responseType;
|
||
|
}
|
||
|
}
|