HurriyetSDK$17.smali
.class final Ltr/com/hurriyet/androidsdk/HurriyetSDK$17;
.super Ljava/lang/Object;
.source "HurriyetSDK.java"
# interfaces
.implements Lretrofit2/Callback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Ltr/com/hurriyet/androidsdk/HurriyetSDK;->resetPassword(Ljava/lang/String;Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;)Lretrofit2/Call;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lretrofit2/Callback<",
"Ltr/com/hurriyet/androidsdk/response/hurpass/ResetPasswordResponse;",
">;"
}
.end annotation
# instance fields
.field final synthetic val$callback:Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;
# direct methods
.method constructor <init>(Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;)V
.registers 2
.line 699
iput-object p1, p0, Ltr/com/hurriyet/androidsdk/HurriyetSDK$17;->val$callback:Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;
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<",
"Ltr/com/hurriyet/androidsdk/response/hurpass/ResetPasswordResponse;",
">;",
"Ljava/lang/Throwable;",
")V"
}
.end annotation
.line 710
iget-object p1, p0, Ltr/com/hurriyet/androidsdk/HurriyetSDK$17;->val$callback:Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;
new-instance v0, Ltr/com/hurriyet/androidsdk/model/ErrorResponse;
invoke-direct {v0}, Ltr/com/hurriyet/androidsdk/model/ErrorResponse;-><init>()V
invoke-interface {p1, v0}, Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;->onError(Ltr/com/hurriyet/androidsdk/model/ErrorResponse;)V
.line 711
invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V
return-void
.end method
.method public onResponse(Lretrofit2/Call;Lretrofit2/Response;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lretrofit2/Call<",
"Ltr/com/hurriyet/androidsdk/response/hurpass/ResetPasswordResponse;",
">;",
"Lretrofit2/Response<",
"Ltr/com/hurriyet/androidsdk/response/hurpass/ResetPasswordResponse;",
">;)V"
}
.end annotation
if-eqz p2, :cond_14
.line 702
invoke-virtual {p2}, Lretrofit2/Response;->body()Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_14
.line 703
iget-object p1, p0, Ltr/com/hurriyet/androidsdk/HurriyetSDK$17;->val$callback:Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;
invoke-virtual {p2}, Lretrofit2/Response;->body()Ljava/lang/Object;
move-result-object p2
check-cast p2, Ltr/com/hurriyet/androidsdk/response/hurpass/ResetPasswordResponse;
invoke-interface {p1, p2}, Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;->onSuccess(Ltr/com/hurriyet/androidsdk/response/hurpass/ResetPasswordResponse;)V
goto :goto_22
.line 705
:cond_14
iget-object p1, p0, Ltr/com/hurriyet/androidsdk/HurriyetSDK$17;->val$callback:Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;
new-instance v0, Ltr/com/hurriyet/androidsdk/model/ErrorResponse;
invoke-virtual {p2}, Lretrofit2/Response;->message()Ljava/lang/String;
move-result-object p2
invoke-direct {v0, p2}, Ltr/com/hurriyet/androidsdk/model/ErrorResponse;-><init>(Ljava/lang/String;)V
invoke-interface {p1, v0}, Ltr/com/hurriyet/androidsdk/callback/ResetPasswordCallback;->onError(Ltr/com/hurriyet/androidsdk/model/ErrorResponse;)V
:goto_22
return-void
.end method