discord-jadx/app/src/main/java/h0/o.java

35 lines
1.2 KiB
Java
Raw Normal View History

2021-10-15 06:18:26 +00:00
package h0;
2021-08-03 07:33:18 +00:00
import androidx.core.app.NotificationCompat;
2021-10-15 06:18:26 +00:00
import c0.k;
import c0.l;
import c0.z.d.m;
2021-08-03 07:33:18 +00:00
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;
}
2021-10-15 06:18:26 +00:00
@Override // h0.f
2021-08-03 07:33:18 +00:00
public void a(d<T> dVar, Throwable th) {
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;
2021-10-15 06:18:26 +00:00
cancellableContinuation.resumeWith(k.m2constructorimpl(l.createFailure(th)));
2021-08-03 07:33:18 +00:00
}
2021-10-15 06:18:26 +00:00
@Override // h0.f
2021-08-03 07:33:18 +00:00
public void b(d<T> dVar, Response<T> response) {
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;
2021-10-15 06:18:26 +00:00
cancellableContinuation.resumeWith(k.m2constructorimpl(response));
2021-08-03 07:33:18 +00:00
}
}