I.smali

.class Lcom/beetalk/sdk/I;
.super Ljava/lang/Object;
.source "LineAuthRequestHandler.java"

# interfaces
.implements Lbolts/k;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/beetalk/sdk/LineAuthRequestHandler;->onLoggedIn(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lbolts/k<",
        "Lcom/beetalk/sdk/AuthClient$Result;",
        "Ljava/lang/Void;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Landroid/app/Dialog;

.field final synthetic b:Lcom/beetalk/sdk/LineAuthRequestHandler;


# direct methods
.method constructor <init>(Lcom/beetalk/sdk/LineAuthRequestHandler;Landroid/app/Dialog;)V
    .registers 3

    .line 1
    iput-object p1, p0, Lcom/beetalk/sdk/I;->b:Lcom/beetalk/sdk/LineAuthRequestHandler;

    iput-object p2, p0, Lcom/beetalk/sdk/I;->a:Landroid/app/Dialog;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public bridge synthetic then(Lbolts/y;)Ljava/lang/Object;
    .registers 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 1
    invoke-virtual {p0, p1}, Lcom/beetalk/sdk/I;->then(Lbolts/y;)Ljava/lang/Void;

    move-result-object p1

    return-object p1
.end method

.method public then(Lbolts/y;)Ljava/lang/Void;
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lbolts/y<",
            "Lcom/beetalk/sdk/AuthClient$Result;",
            ">;)",
            "Ljava/lang/Void;"
        }
    .end annotation

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/beetalk/sdk/I;->a:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_5} :catch_5

    .line 3
    :catch_5
    invoke-virtual {p1}, Lbolts/y;->h()Z

    move-result v0

    if-eqz v0, :cond_36

    .line 4
    invoke-virtual {p1}, Lbolts/y;->c()Ljava/lang/Exception;

    move-result-object v0

    invoke-static {v0}, Lcom/beetalk/sdk/b/a;->a(Ljava/lang/Exception;)V

    .line 5
    iget-object v0, p0, Lcom/beetalk/sdk/I;->b:Lcom/beetalk/sdk/LineAuthRequestHandler;

    iget-object v0, v0, Lcom/beetalk/sdk/AuthRequestHandler;->client:Lcom/beetalk/sdk/AuthClient;

    .line 6
    invoke-virtual {v0}, Lcom/beetalk/sdk/AuthClient;->getPendingRequest()Lcom/beetalk/sdk/AuthClient$AuthClientRequest;

    move-result-object v1

    .line 7
    invoke-virtual {p1}, Lbolts/y;->c()Ljava/lang/Exception;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

    sget-object v2, Lcom/garena/pay/android/GGErrorCode;->LOGIN_FAILED:Lcom/garena/pay/android/GGErrorCode;

    .line 8
    invoke-virtual {v2}, Lcom/garena/pay/android/GGErrorCode;->getCode()Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    const-string v3, "error"

    .line 9
    invoke-static {v1, v3, p1, v2}, Lcom/beetalk/sdk/AuthClient$Result;->createErrorResult(Lcom/beetalk/sdk/AuthClient$AuthClientRequest;Ljava/lang/String;Ljava/lang/String;I)Lcom/beetalk/sdk/AuthClient$Result;

    move-result-object p1

    .line 10
    invoke-virtual {v0, p1}, Lcom/beetalk/sdk/AuthClient;->notifyListener(Lcom/beetalk/sdk/AuthClient$Result;)V

    goto :goto_43

    .line 11
    :cond_36
    iget-object v0, p0, Lcom/beetalk/sdk/I;->b:Lcom/beetalk/sdk/LineAuthRequestHandler;

    iget-object v0, v0, Lcom/beetalk/sdk/AuthRequestHandler;->client:Lcom/beetalk/sdk/AuthClient;

    invoke-virtual {p1}, Lbolts/y;->d()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/beetalk/sdk/AuthClient$Result;

    invoke-virtual {v0, p1}, Lcom/beetalk/sdk/AuthClient;->notifyListener(Lcom/beetalk/sdk/AuthClient$Result;)V

    :goto_43
    const/4 p1, 0x0

    return-object p1
.end method