CallEnqueueObservable$CallCallback.smali
.class final Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;
.super Ljava/lang/Object;
.source "CallEnqueueObservable.java"
# interfaces
.implements Lio/reactivex/disposables/b;
.implements Lretrofit2/Callback;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lretrofit2/adapter/rxjava2/CallEnqueueObservable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "CallCallback"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/disposables/b;",
"Lretrofit2/Callback<",
"TT;>;"
}
.end annotation
# instance fields
.field private final call:Lretrofit2/Call;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lretrofit2/Call<",
"*>;"
}
.end annotation
.end field
.field private volatile disposed:Z
.field private final observer:Lio/reactivex/w;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/w<",
"-",
"Lretrofit2/Response<",
"TT;>;>;"
}
.end annotation
.end field
.field terminated:Z
# direct methods
.method constructor <init>(Lretrofit2/Call;Lio/reactivex/w;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lretrofit2/Call<",
"*>;",
"Lio/reactivex/w<",
"-",
"Lretrofit2/Response<",
"TT;>;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->terminated:Z
.line 3
iput-object p1, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->call:Lretrofit2/Call;
.line 4
iput-object p2, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->observer:Lio/reactivex/w;
return-void
.end method
# virtual methods
.method public dispose()V
.registers 2
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->disposed:Z
.line 2
iget-object v0, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->call:Lretrofit2/Call;
invoke-interface {v0}, Lretrofit2/Call;->cancel()V
return-void
.end method
.method public isDisposed()Z
.registers 2
.line 1
iget-boolean v0, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->disposed:Z
return v0
.end method
.method public onFailure(Lretrofit2/Call;Ljava/lang/Throwable;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lretrofit2/Call<",
"TT;>;",
"Ljava/lang/Throwable;",
")V"
}
.end annotation
.line 1
invoke-interface {p1}, Lretrofit2/Call;->isCanceled()Z
move-result p1
if-eqz p1, :cond_7
return-void
.line 2
:cond_7
:try_start_7
iget-object p1, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->observer:Lio/reactivex/w;
invoke-interface {p1, p2}, Lio/reactivex/w;->onError(Ljava/lang/Throwable;)V
:try_end_c
.catch Ljava/lang/Throwable; {:try_start_7 .. :try_end_c} :catch_d
goto :goto_22
:catch_d
move-exception p1
.line 3
invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 4
new-instance v0, Lio/reactivex/exceptions/CompositeException;
const/4 v1, 0x2
new-array v1, v1, [Ljava/lang/Throwable;
const/4 v2, 0x0
aput-object p2, v1, v2
const/4 p2, 0x1
aput-object p1, v1, p2
invoke-direct {v0, v1}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v0}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:goto_22
return-void
.end method
.method public onResponse(Lretrofit2/Call;Lretrofit2/Response;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lretrofit2/Call<",
"TT;>;",
"Lretrofit2/Response<",
"TT;>;)V"
}
.end annotation
.line 1
iget-boolean p1, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->disposed:Z
if-eqz p1, :cond_5
return-void
:cond_5
const/4 p1, 0x1
.line 2
:try_start_6
iget-object v0, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->observer:Lio/reactivex/w;
invoke-interface {v0, p2}, Lio/reactivex/w;->onNext(Ljava/lang/Object;)V
.line 3
iget-boolean p2, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->disposed:Z
if-nez p2, :cond_41
.line 4
iput-boolean p1, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->terminated:Z
.line 5
iget-object p2, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->observer:Lio/reactivex/w;
invoke-interface {p2}, Lio/reactivex/w;->onComplete()V
:try_end_16
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_16} :catch_17
goto :goto_41
:catch_17
move-exception p2
.line 6
invoke-static {p2}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 7
iget-boolean v0, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->terminated:Z
if-eqz v0, :cond_23
.line 8
invoke-static {p2}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
goto :goto_41
.line 9
:cond_23
iget-boolean v0, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->disposed:Z
if-nez v0, :cond_41
.line 10
:try_start_27
iget-object v0, p0, Lretrofit2/adapter/rxjava2/CallEnqueueObservable$CallCallback;->observer:Lio/reactivex/w;
invoke-interface {v0, p2}, Lio/reactivex/w;->onError(Ljava/lang/Throwable;)V
:try_end_2c
.catch Ljava/lang/Throwable; {:try_start_27 .. :try_end_2c} :catch_2d
goto :goto_41
:catch_2d
move-exception v0
.line 11
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 12
new-instance v1, Lio/reactivex/exceptions/CompositeException;
const/4 v2, 0x2
new-array v2, v2, [Ljava/lang/Throwable;
const/4 v3, 0x0
aput-object p2, v2, v3
aput-object v0, v2, p1
invoke-direct {v1, v2}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v1}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:cond_41
:goto_41
return-void
.end method