.class Lcom/ali/auth/third/login/LoginServiceImpl$1;
.super Ljava/lang/Object;
.source "LoginServiceImpl.java"

# interfaces
.implements Lcom/ali/auth/third/core/callback/LoginCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/ali/auth/third/login/LoginServiceImpl;->auth(Lcom/ali/auth/third/core/callback/LoginCallback;)V
.end annotation

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


# instance fields
.field final synthetic this$0:Lcom/ali/auth/third/login/LoginServiceImpl;

.field final synthetic val$loginCallback:Lcom/ali/auth/third/core/callback/LoginCallback;


# direct methods
.method constructor <init>(Lcom/ali/auth/third/login/LoginServiceImpl;Lcom/ali/auth/third/core/callback/LoginCallback;)V
    .locals 0

    .line 150
    iput-object p1, p0, Lcom/ali/auth/third/login/LoginServiceImpl$1;->this$0:Lcom/ali/auth/third/login/LoginServiceImpl;

    iput-object p2, p0, Lcom/ali/auth/third/login/LoginServiceImpl$1;->val$loginCallback:Lcom/ali/auth/third/core/callback/LoginCallback;

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

    return-void
.end method


# virtual methods
.method public onFailure(ILjava/lang/String;)V
    .locals 0

    .line 160
    iget-object p1, p0, Lcom/ali/auth/third/login/LoginServiceImpl$1;->this$0:Lcom/ali/auth/third/login/LoginServiceImpl;

    iget-object p2, p0, Lcom/ali/auth/third/login/LoginServiceImpl$1;->val$loginCallback:Lcom/ali/auth/third/core/callback/LoginCallback;

    invoke-virtual {p1, p2}, Lcom/ali/auth/third/login/LoginServiceImpl;->goLogin(Lcom/ali/auth/third/core/callback/LoginCallback;)V

    return-void
.end method

.method public onSuccess(Lcom/ali/auth/third/core/model/Session;)V
    .locals 1

    .line 153
    iget-object p1, p0, Lcom/ali/auth/third/login/LoginServiceImpl$1;->val$loginCallback:Lcom/ali/auth/third/core/callback/LoginCallback;

    if-eqz p1, :cond_0

    .line 154
    iget-object p1, p0, Lcom/ali/auth/third/login/LoginServiceImpl$1;->val$loginCallback:Lcom/ali/auth/third/core/callback/LoginCallback;

    iget-object v0, p0, Lcom/ali/auth/third/login/LoginServiceImpl$1;->this$0:Lcom/ali/auth/third/login/LoginServiceImpl;

    invoke-virtual {v0}, Lcom/ali/auth/third/login/LoginServiceImpl;->getSession()Lcom/ali/auth/third/core/model/Session;

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/ali/auth/third/core/callback/LoginCallback;->onSuccess(Lcom/ali/auth/third/core/model/Session;)V

    :cond_0
    return-void
.end method
