2021-11-08 18:25:28 +00:00
|
|
|
package i0;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2021-08-09 22:50:01 +00:00
|
|
|
import androidx.core.app.NotificationCompat;
|
2021-11-08 18:25:28 +00:00
|
|
|
import d0.k;
|
|
|
|
import d0.l;
|
|
|
|
import d0.z.d.m;
|
2021-06-27 20:44:35 +00:00
|
|
|
import kotlinx.coroutines.CancellableContinuation;
|
2021-08-04 22:02:59 +00:00
|
|
|
import retrofit2.Response;
|
2021-06-27 20:44:35 +00:00
|
|
|
/* compiled from: KotlinExtensions.kt */
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes3.dex */
|
2021-06-27 20:44:35 +00:00
|
|
|
public final class o implements f<T> {
|
|
|
|
public final /* synthetic */ CancellableContinuation a;
|
|
|
|
|
|
|
|
public o(CancellableContinuation cancellableContinuation) {
|
|
|
|
this.a = cancellableContinuation;
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // i0.f
|
2021-06-27 20:44:35 +00:00
|
|
|
public void a(d<T> dVar, Throwable th) {
|
2021-08-09 22:50:01 +00:00
|
|
|
m.checkParameterIsNotNull(dVar, NotificationCompat.CATEGORY_CALL);
|
2021-06-27 20:44:35 +00:00
|
|
|
m.checkParameterIsNotNull(th, "t");
|
|
|
|
CancellableContinuation cancellableContinuation = this.a;
|
2021-12-17 22:03:14 +00:00
|
|
|
k.a aVar = k.j;
|
2021-11-08 18:25:28 +00:00
|
|
|
cancellableContinuation.resumeWith(k.m72constructorimpl(l.createFailure(th)));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // i0.f
|
2021-08-04 22:02:59 +00:00
|
|
|
public void b(d<T> dVar, Response<T> response) {
|
2021-08-09 22:50:01 +00:00
|
|
|
m.checkParameterIsNotNull(dVar, NotificationCompat.CATEGORY_CALL);
|
2021-08-04 22:02:59 +00:00
|
|
|
m.checkParameterIsNotNull(response, "response");
|
2021-06-27 20:44:35 +00:00
|
|
|
CancellableContinuation cancellableContinuation = this.a;
|
2021-12-17 22:03:14 +00:00
|
|
|
k.a aVar = k.j;
|
2021-11-08 18:25:28 +00:00
|
|
|
cancellableContinuation.resumeWith(k.m72constructorimpl(response));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|