HurriyetSDK$14.smali

.class final Ltr/com/hurriyet/androidsdk/HurriyetSDK$14;
.super Ljava/lang/Object;
.source "HurriyetSDK.java"

# interfaces
.implements Lretrofit2/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Ltr/com/hurriyet/androidsdk/HurriyetSDK;->facebookLogin(Ljava/lang/String;Ljava/lang/String;Ltr/com/hurriyet/androidsdk/callback/LoginCallback;)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/LoginResponse;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic val$callback:Ltr/com/hurriyet/androidsdk/callback/LoginCallback;


# direct methods
.method constructor <init>(Ltr/com/hurriyet/androidsdk/callback/LoginCallback;)V
    .registers 2

    .line 609
    iput-object p1, p0, Ltr/com/hurriyet/androidsdk/HurriyetSDK$14;->val$callback:Ltr/com/hurriyet/androidsdk/callback/LoginCallback;

    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/LoginResponse;",
            ">;",
            "Ljava/lang/Throwable;",
            ")V"
        }
    .end annotation

    .line 618
    iget-object p1, p0, Ltr/com/hurriyet/androidsdk/HurriyetSDK$14;->val$callback:Ltr/com/hurriyet/androidsdk/callback/LoginCallback;

    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/LoginCallback;->onError(Ltr/com/hurriyet/androidsdk/model/ErrorResponse;)V

    .line 619
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()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/hurpass/LoginResponse;",
            ">;",
            "Lretrofit2/Response<",
            "Ltr/com/hurriyet/androidsdk/response/hurpass/LoginResponse;",
            ">;)V"
        }
    .end annotation

    .line 613
    iget-object p1, p0, Ltr/com/hurriyet/androidsdk/HurriyetSDK$14;->val$callback:Ltr/com/hurriyet/androidsdk/callback/LoginCallback;

    # invokes: Ltr/com/hurriyet/androidsdk/HurriyetSDK;->getCommentToken(Lretrofit2/Response;Ltr/com/hurriyet/androidsdk/callback/LoginCallback;)Lretrofit2/Call;
    invoke-static {p2, p1}, Ltr/com/hurriyet/androidsdk/HurriyetSDK;->access$000(Lretrofit2/Response;Ltr/com/hurriyet/androidsdk/callback/LoginCallback;)Lretrofit2/Call;

    return-void
.end method