PlantFormProxy.smali

.class public Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy$PlantFormNested;
    }
.end annotation


# instance fields
.field private basePlantForm:Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;


# direct methods
.method private constructor <init>()V
    .registers 1

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

    return-void
.end method

.method synthetic constructor <init>(Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy$1;)V
    .registers 2

    invoke-direct {p0}, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;-><init>()V

    return-void
.end method

.method public static getInstance()Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;
    .registers 1

    # getter for: Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy$PlantFormNested;->instance:Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;
    invoke-static {}, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy$PlantFormNested;->access$000()Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public bindLogin(Landroid/content/Context;Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener",
            "<*>;)V"
        }
    .end annotation

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->basePlantForm:Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->basePlantForm:Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;

    invoke-virtual {v0, p1, p2}, Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;->bindLogin(Landroid/content/Context;Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener;)V

    :cond_9
    return-void
.end method

.method public bindLogin(Landroid/content/Context;Ljava/lang/Object;Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/Object;",
            "Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener",
            "<*>;)V"
        }
    .end annotation

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->basePlantForm:Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->basePlantForm:Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;

    invoke-virtual {v0, p1, p2, p3}, Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;->bindLogin(Landroid/content/Context;Ljava/lang/Object;Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener;)V

    :cond_9
    return-void
.end method

.method public setPlantForm(Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;)Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;
    .registers 2

    iput-object p1, p0, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->basePlantForm:Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;

    return-object p1
.end method

.method public setPlantForm(Ljava/lang/Class;)Ljava/lang/Object;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<C:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/lang/Class",
            "<TC;>;)TC;"
        }
    .end annotation

    :try_start_0
    invoke-virtual {p1}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;

    move-result-object v2

    move-object v0, v2

    check-cast v0, Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;

    move-object v1, v0

    iput-object v1, p0, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->basePlantForm:Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;
    :try_end_a
    .catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_a} :catch_b
    .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_a} :catch_11

    :goto_a
    return-object v2

    :catch_b
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/InstantiationException;->printStackTrace()V

    :goto_f
    const/4 v2, 0x0

    goto :goto_a

    :catch_11
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/IllegalAccessException;->printStackTrace()V

    goto :goto_f
.end method

.method public startPay(Landroid/content/Context;Ljava/lang/Object;Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/Object;",
            "Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener",
            "<*>;)V"
        }
    .end annotation

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->basePlantForm:Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/plantform/PlantFormProxy;->basePlantForm:Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;

    invoke-virtual {v0, p1, p2, p3}, Lcom/sdk/orion/ui/baselibrary/plantform/BasePlantForm;->startPay(Landroid/content/Context;Ljava/lang/Object;Lcom/sdk/orion/ui/baselibrary/plantform/listener/ResponseCallBackListener;)V

    :cond_9
    return-void
.end method