m$d.smali
.class public final Lxq/m$d;
.super Ljava/lang/Object;
.source "KotlinExtensions.kt"
# interfaces
.implements Lxq/f;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lxq/m;->b(Lxq/d;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lxq/f<",
"TT;>;"
}
.end annotation
# instance fields
.field public final synthetic a:Lkotlinx/coroutines/CancellableContinuation;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lkotlinx/coroutines/CancellableContinuation;)V
.registers 2
iput-object p1, p0, Lxq/m$d;->a:Lkotlinx/coroutines/CancellableContinuation;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onFailure(Lxq/d;Ljava/lang/Throwable;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lxq/d<",
"TT;>;",
"Ljava/lang/Throwable;",
")V"
}
.end annotation
iget-object p1, p0, Lxq/m$d;->a:Lkotlinx/coroutines/CancellableContinuation;
sget-object v0, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
invoke-static {p2}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object p2
invoke-static {p2}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
return-void
.end method
.method public onResponse(Lxq/d;Lxq/t;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lxq/d<",
"TT;>;",
"Lxq/t<",
"TT;>;)V"
}
.end annotation
invoke-virtual {p2}, Lxq/t;->c()Z
move-result p1
if-eqz p1, :cond_16
iget-object p1, p0, Lxq/m$d;->a:Lkotlinx/coroutines/CancellableContinuation;
invoke-virtual {p2}, Lxq/t;->a()Ljava/lang/Object;
move-result-object p2
sget-object v0, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
invoke-static {p2}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
goto :goto_2a
:cond_16
iget-object p1, p0, Lxq/m$d;->a:Lkotlinx/coroutines/CancellableContinuation;
new-instance v0, Lxq/j;
invoke-direct {v0, p2}, Lxq/j;-><init>(Lxq/t;)V
sget-object p2, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;
invoke-static {v0}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object p2
invoke-static {p2}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
:goto_2a
return-void
.end method