OrionHistoryLinkAccountVHolder$5.smali

.class Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder$5;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder;->linkLogin(Lcom/sdk/orion/bean/SpeakerHistory$History;Lcom/sdk/orion/bean/SpeakerHistory$LinkAccount;)V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener",
        "<",
        "Lcom/sdk/orion/bean/PlatformLoginResponseBean;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder;

.field final synthetic val$history:Lcom/sdk/orion/bean/SpeakerHistory$History;


# direct methods
.method constructor <init>(Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder;Lcom/sdk/orion/bean/SpeakerHistory$History;)V
    .registers 3

    iput-object p1, p0, Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder$5;->this$0:Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder;

    iput-object p2, p0, Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder$5;->val$history:Lcom/sdk/orion/bean/SpeakerHistory$History;

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

    return-void
.end method


# virtual methods
.method public onError(Ljava/lang/String;Ljava/lang/String;)V
    .registers 5

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_a

    invoke-static {p2}, Lcom/sdk/orion/ui/baselibrary/utils/ToastUtils;->showToast(Ljava/lang/String;)V

    :goto_9
    return-void

    :cond_a
    iget-object v0, p0, Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder$5;->this$0:Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder;

    iget-object v0, v0, Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder;->mContext:Landroid/content/Context;

    sget v1, Lcom/sdk/orion/lib/history/R$string;->orion_sdk_login_failure:I

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/utils/ToastUtils;->showToast(Ljava/lang/String;)V

    goto :goto_9
.end method

.method public onSuccess(Lcom/sdk/orion/bean/PlatformLoginResponseBean;)V
    .registers 4

    iget-object v0, p0, Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder$5;->this$0:Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder;

    iget-object v0, v0, Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder;->mContext:Landroid/content/Context;

    sget v1, Lcom/sdk/orion/lib/history/R$string;->orion_sdk_login_success:I

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/utils/ToastUtils;->showToast(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder$5;->this$0:Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder;

    invoke-virtual {v0}, Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder;->getPresenter()Lcom/sdk/orion/ui/baselibrary/base/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/sdk/orion/lib/history/mvp/OrionHistoryContract$Presenter;

    iget-object v1, p0, Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder$5;->val$history:Lcom/sdk/orion/bean/SpeakerHistory$History;

    iget-object v1, v1, Lcom/sdk/orion/bean/SpeakerHistory$History;->historyId:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/sdk/orion/lib/history/mvp/OrionHistoryContract$Presenter;->onPlatformLoginSuccess(Ljava/lang/String;)V

    return-void
.end method

.method public bridge synthetic onSuccess(Ljava/lang/Object;)V
    .registers 2

    check-cast p1, Lcom/sdk/orion/bean/PlatformLoginResponseBean;

    invoke-virtual {p0, p1}, Lcom/sdk/orion/lib/history/vh/OrionHistoryLinkAccountVHolder$5;->onSuccess(Lcom/sdk/orion/bean/PlatformLoginResponseBean;)V

    return-void
.end method