e.smali

.class public final Lcom/sandboxol/editor/api/a/e;
.super Ljava/lang/Object;
.source "NetworkResponseCall.kt"

# interfaces
.implements Lretrofit2/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/editor/api/a/f;->enqueue(Lretrofit2/Callback;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit2/Callback<",
        "TS;>;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/sandboxol/editor/api/a/f;

.field final synthetic b:Lretrofit2/Callback;


# direct methods
.method constructor <init>(Lcom/sandboxol/editor/api/a/f;Lretrofit2/Callback;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lretrofit2/Callback;",
            ")V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/sandboxol/editor/api/a/e;->a:Lcom/sandboxol/editor/api/a/f;

    iput-object p2, p0, Lcom/sandboxol/editor/api/a/e;->b:Lretrofit2/Callback;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onFailure(Lretrofit2/Call;Ljava/lang/Throwable;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lretrofit2/Call<",
            "TS;>;",
            "Ljava/lang/Throwable;",
            ")V"
        }
    .end annotation

    const-string v0, "call"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    const-string p1, "throwable"

    invoke-static {p2, p1}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1
    instance-of p1, p2, Ljava/io/IOException;

    if-eqz p1, :cond_16

    new-instance p1, Lcom/sandboxol/editor/api/a/b$b;

    check-cast p2, Ljava/io/IOException;

    invoke-direct {p1, p2}, Lcom/sandboxol/editor/api/a/b$b;-><init>(Ljava/io/IOException;)V

    goto :goto_1b

    .line 2
    :cond_16
    new-instance p1, Lcom/sandboxol/editor/api/a/b$d;

    invoke-direct {p1, p2}, Lcom/sandboxol/editor/api/a/b$d;-><init>(Ljava/lang/Throwable;)V

    .line 3
    :goto_1b
    iget-object p2, p0, Lcom/sandboxol/editor/api/a/e;->b:Lretrofit2/Callback;

    iget-object v0, p0, Lcom/sandboxol/editor/api/a/e;->a:Lcom/sandboxol/editor/api/a/f;

    invoke-static {p1}, Lretrofit2/Response;->success(Ljava/lang/Object;)Lretrofit2/Response;

    move-result-object p1

    invoke-interface {p2, v0, p1}, Lretrofit2/Callback;->onResponse(Lretrofit2/Call;Lretrofit2/Response;)V

    return-void
.end method

.method public onResponse(Lretrofit2/Call;Lretrofit2/Response;)V
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lretrofit2/Call<",
            "TS;>;",
            "Lretrofit2/Response<",
            "TS;>;)V"
        }
    .end annotation

    const-string v0, "call"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    const-string p1, "response"

    invoke-static {p2, p1}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1
    invoke-virtual {p2}, Lretrofit2/Response;->body()Ljava/lang/Object;

    move-result-object p1

    .line 2
    invoke-virtual {p2}, Lretrofit2/Response;->code()I

    move-result v0

    .line 3
    invoke-virtual {p2}, Lretrofit2/Response;->errorBody()Lokhttp3/J;

    move-result-object v1

    .line 4
    invoke-virtual {p2}, Lretrofit2/Response;->isSuccessful()Z

    move-result p2

    const/4 v2, 0x0

    if-eqz p2, :cond_41

    if-eqz p1, :cond_30

    .line 5
    iget-object p2, p0, Lcom/sandboxol/editor/api/a/e;->b:Lretrofit2/Callback;

    .line 6
    iget-object v0, p0, Lcom/sandboxol/editor/api/a/e;->a:Lcom/sandboxol/editor/api/a/f;

    .line 7
    new-instance v1, Lcom/sandboxol/editor/api/a/b$c;

    invoke-direct {v1, p1}, Lcom/sandboxol/editor/api/a/b$c;-><init>(Ljava/lang/Object;)V

    invoke-static {v1}, Lretrofit2/Response;->success(Ljava/lang/Object;)Lretrofit2/Response;

    move-result-object p1

    .line 8
    invoke-interface {p2, v0, p1}, Lretrofit2/Callback;->onResponse(Lretrofit2/Call;Lretrofit2/Response;)V

    goto :goto_7d

    .line 9
    :cond_30
    iget-object p1, p0, Lcom/sandboxol/editor/api/a/e;->b:Lretrofit2/Callback;

    .line 10
    iget-object p2, p0, Lcom/sandboxol/editor/api/a/e;->a:Lcom/sandboxol/editor/api/a/f;

    .line 11
    new-instance v0, Lcom/sandboxol/editor/api/a/b$d;

    invoke-direct {v0, v2}, Lcom/sandboxol/editor/api/a/b$d;-><init>(Ljava/lang/Throwable;)V

    invoke-static {v0}, Lretrofit2/Response;->success(Ljava/lang/Object;)Lretrofit2/Response;

    move-result-object v0

    .line 12
    invoke-interface {p1, p2, v0}, Lretrofit2/Callback;->onResponse(Lretrofit2/Call;Lretrofit2/Response;)V

    goto :goto_7d

    :cond_41
    if-nez v1, :cond_45

    :catch_43
    :goto_43
    move-object p1, v2

    goto :goto_5a

    .line 13
    :cond_45
    invoke-virtual {v1}, Lokhttp3/J;->contentLength()J

    move-result-wide p1

    const-wide/16 v3, 0x0

    cmp-long v5, p1, v3

    if-nez v5, :cond_50

    goto :goto_43

    .line 14
    :cond_50
    :try_start_50
    iget-object p1, p0, Lcom/sandboxol/editor/api/a/e;->a:Lcom/sandboxol/editor/api/a/f;

    invoke-static {p1}, Lcom/sandboxol/editor/api/a/f;->a(Lcom/sandboxol/editor/api/a/f;)Lretrofit2/Converter;

    move-result-object p1

    invoke-interface {p1, v1}, Lretrofit2/Converter;->convert(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1
    :try_end_5a
    .catch Ljava/lang/Exception; {:try_start_50 .. :try_end_5a} :catch_43

    :goto_5a
    if-eqz p1, :cond_6d

    .line 15
    iget-object p2, p0, Lcom/sandboxol/editor/api/a/e;->b:Lretrofit2/Callback;

    .line 16
    iget-object v1, p0, Lcom/sandboxol/editor/api/a/e;->a:Lcom/sandboxol/editor/api/a/f;

    .line 17
    new-instance v2, Lcom/sandboxol/editor/api/a/b$a;

    invoke-direct {v2, p1, v0}, Lcom/sandboxol/editor/api/a/b$a;-><init>(Ljava/lang/Object;I)V

    invoke-static {v2}, Lretrofit2/Response;->success(Ljava/lang/Object;)Lretrofit2/Response;

    move-result-object p1

    .line 18
    invoke-interface {p2, v1, p1}, Lretrofit2/Callback;->onResponse(Lretrofit2/Call;Lretrofit2/Response;)V

    goto :goto_7d

    .line 19
    :cond_6d
    iget-object p1, p0, Lcom/sandboxol/editor/api/a/e;->b:Lretrofit2/Callback;

    .line 20
    iget-object p2, p0, Lcom/sandboxol/editor/api/a/e;->a:Lcom/sandboxol/editor/api/a/f;

    .line 21
    new-instance v0, Lcom/sandboxol/editor/api/a/b$d;

    invoke-direct {v0, v2}, Lcom/sandboxol/editor/api/a/b$d;-><init>(Ljava/lang/Throwable;)V

    invoke-static {v0}, Lretrofit2/Response;->success(Ljava/lang/Object;)Lretrofit2/Response;

    move-result-object v0

    .line 22
    invoke-interface {p1, p2, v0}, Lretrofit2/Callback;->onResponse(Lretrofit2/Call;Lretrofit2/Response;)V

    :goto_7d
    return-void
.end method