2021-08-03 07:33:18 +00:00
|
|
|
package i0;
|
|
|
|
|
2021-08-09 22:51:56 +00:00
|
|
|
import androidx.core.app.NotificationCompat;
|
2021-08-03 07:33:18 +00:00
|
|
|
import d0.k;
|
|
|
|
import d0.l;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import kotlinx.coroutines.CancellableContinuation;
|
|
|
|
import retrofit2.Response;
|
|
|
|
/* compiled from: KotlinExtensions.kt */
|
|
|
|
public final class o implements f<T> {
|
|
|
|
public final /* synthetic */ CancellableContinuation a;
|
|
|
|
|
|
|
|
public o(CancellableContinuation cancellableContinuation) {
|
|
|
|
this.a = cancellableContinuation;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // i0.f
|
|
|
|
public void a(d<T> dVar, Throwable th) {
|
2021-08-09 22:51:56 +00:00
|
|
|
m.checkParameterIsNotNull(dVar, NotificationCompat.CATEGORY_CALL);
|
2021-08-03 07:33:18 +00:00
|
|
|
m.checkParameterIsNotNull(th, "t");
|
|
|
|
CancellableContinuation cancellableContinuation = this.a;
|
|
|
|
k.a aVar = k.i;
|
|
|
|
cancellableContinuation.resumeWith(k.m75constructorimpl(l.createFailure(th)));
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // i0.f
|
|
|
|
public void b(d<T> dVar, Response<T> response) {
|
2021-08-09 22:51:56 +00:00
|
|
|
m.checkParameterIsNotNull(dVar, NotificationCompat.CATEGORY_CALL);
|
2021-08-03 07:33:18 +00:00
|
|
|
m.checkParameterIsNotNull(response, "response");
|
|
|
|
CancellableContinuation cancellableContinuation = this.a;
|
|
|
|
k.a aVar = k.i;
|
|
|
|
cancellableContinuation.resumeWith(k.m75constructorimpl(response));
|
|
|
|
}
|
|
|
|
}
|