SporSDK$1.smali
.class final Ltr/com/spor/androidsdk/SporSDK$1;
.super Ljava/lang/Object;
.source "SporSDK.java"
# interfaces
.implements Lretrofit2/Callback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Ltr/com/spor/androidsdk/SporSDK;->setSelectedTeam(Ltr/com/hurriyet/androidsdk/request/NotificationsApiServiceRequest;Ltr/com/hurriyet/androidsdk/callback/SetSelectedTeamCallback;)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/notification/SetSelectedTeamResponseResponse;",
">;"
}
.end annotation
# instance fields
.field final synthetic val$callback:Ltr/com/hurriyet/androidsdk/callback/SetSelectedTeamCallback;
# direct methods
.method constructor <init>(Ltr/com/hurriyet/androidsdk/callback/SetSelectedTeamCallback;)V
.registers 2
.line 97
iput-object p1, p0, Ltr/com/spor/androidsdk/SporSDK$1;->val$callback:Ltr/com/hurriyet/androidsdk/callback/SetSelectedTeamCallback;
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/notification/SetSelectedTeamResponseResponse;",
">;",
"Ljava/lang/Throwable;",
")V"
}
.end annotation
.line 107
invoke-virtual {p2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p1
const/4 p2, 0x7
const-string v0, "Set Selected Team"
invoke-static {p2, v0, p1}, Landroid/util/Log;->println(ILjava/lang/String;Ljava/lang/String;)I
.line 108
iget-object p1, p0, Ltr/com/spor/androidsdk/SporSDK$1;->val$callback:Ltr/com/hurriyet/androidsdk/callback/SetSelectedTeamCallback;
invoke-interface {p1}, Ltr/com/hurriyet/androidsdk/callback/SetSelectedTeamCallback;->onFailure()V
return-void
.end method
.method public onResponse(Lretrofit2/Call;Lretrofit2/Response;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lretrofit2/Call<",
"Ltr/com/hurriyet/androidsdk/response/notification/SetSelectedTeamResponseResponse;",
">;",
"Lretrofit2/Response<",
"Ltr/com/hurriyet/androidsdk/response/notification/SetSelectedTeamResponseResponse;",
">;)V"
}
.end annotation
if-eqz p2, :cond_d
.line 100
invoke-virtual {p2}, Lretrofit2/Response;->body()Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_d
.line 101
iget-object p1, p0, Ltr/com/spor/androidsdk/SporSDK$1;->val$callback:Ltr/com/hurriyet/androidsdk/callback/SetSelectedTeamCallback;
invoke-interface {p1}, Ltr/com/hurriyet/androidsdk/callback/SetSelectedTeamCallback;->onSuccess()V
:cond_d
return-void
.end method