OkHttpCall$1.smali
.class Lretrofit2/OkHttpCall$1;
.super Ljava/lang/Object;
.source "OkHttpCall.java"
# interfaces
.implements Lokhttp3/Callback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lretrofit2/OkHttpCall;->enqueue(Lretrofit2/Callback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lretrofit2/OkHttpCall;
.field final synthetic val$callback:Lretrofit2/Callback;
# direct methods
.method constructor <init>(Lretrofit2/OkHttpCall;Lretrofit2/Callback;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 148
iput-object p1, p0, Lretrofit2/OkHttpCall$1;->this$0:Lretrofit2/OkHttpCall;
iput-object p2, p0, Lretrofit2/OkHttpCall$1;->val$callback:Lretrofit2/Callback;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private callFailure(Ljava/lang/Throwable;)V
.registers 4
.line 175
:try_start_0
iget-object v0, p0, Lretrofit2/OkHttpCall$1;->val$callback:Lretrofit2/Callback;
iget-object v1, p0, Lretrofit2/OkHttpCall$1;->this$0:Lretrofit2/OkHttpCall;
invoke-interface {v0, v1, p1}, Lretrofit2/Callback;->onFailure(Lretrofit2/Call;Ljava/lang/Throwable;)V
:try_end_7
.catchall {:try_start_0 .. :try_end_7} :catchall_8
goto :goto_f
:catchall_8
move-exception p1
.line 177
invoke-static {p1}, Lretrofit2/Utils;->throwIfFatal(Ljava/lang/Throwable;)V
.line 178
invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V
:goto_f
return-void
.end method
# virtual methods
.method public onFailure(Lokhttp3/Call;Ljava/io/IOException;)V
.registers 3
.line 170
invoke-direct {p0, p2}, Lretrofit2/OkHttpCall$1;->callFailure(Ljava/lang/Throwable;)V
return-void
.end method
.method public onResponse(Lokhttp3/Call;Lokhttp3/Response;)V
.registers 4
.line 153
:try_start_0
iget-object p1, p0, Lretrofit2/OkHttpCall$1;->this$0:Lretrofit2/OkHttpCall;
invoke-virtual {p1, p2}, Lretrofit2/OkHttpCall;->parseResponse(Lokhttp3/Response;)Lretrofit2/Response;
move-result-object p1
:try_end_6
.catchall {:try_start_0 .. :try_end_6} :catchall_16
.line 161
:try_start_6
iget-object p2, p0, Lretrofit2/OkHttpCall$1;->val$callback:Lretrofit2/Callback;
iget-object v0, p0, Lretrofit2/OkHttpCall$1;->this$0:Lretrofit2/OkHttpCall;
invoke-interface {p2, v0, p1}, Lretrofit2/Callback;->onResponse(Lretrofit2/Call;Lretrofit2/Response;)V
:try_end_d
.catchall {:try_start_6 .. :try_end_d} :catchall_e
goto :goto_15
:catchall_e
move-exception p1
.line 163
invoke-static {p1}, Lretrofit2/Utils;->throwIfFatal(Ljava/lang/Throwable;)V
.line 164
invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V
:goto_15
return-void
:catchall_16
move-exception p1
.line 155
invoke-static {p1}, Lretrofit2/Utils;->throwIfFatal(Ljava/lang/Throwable;)V
.line 156
invoke-direct {p0, p1}, Lretrofit2/OkHttpCall$1;->callFailure(Ljava/lang/Throwable;)V
return-void
.end method