b.smali

.class public Lcom/kwad/sdk/draw/b;
.super Lcom/kwad/sdk/api/core/AbstractKsDrawAd;


# instance fields
.field private a:Lcom/kwad/sdk/core/response/model/AdTemplate;
    .annotation build Landroid/support/annotation/NonNull;
    .end annotation
.end field

.field private b:Lcom/kwad/sdk/api/KsDrawAd$AdInteractionListener;
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation
.end field

.field private c:Lcom/kwad/sdk/draw/a;


# direct methods
.method public constructor <init>(Lcom/kwad/sdk/core/response/model/AdTemplate;)V
    .registers 4
    .param p1    # Lcom/kwad/sdk/core/response/model/AdTemplate;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param

    invoke-direct {p0}, Lcom/kwad/sdk/api/core/AbstractKsDrawAd;-><init>()V

    iput-object p1, p0, Lcom/kwad/sdk/draw/b;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iget-object v0, p0, Lcom/kwad/sdk/draw/b;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/c;->j(Lcom/kwad/sdk/core/response/model/AdTemplate;)Lcom/kwad/sdk/core/response/model/AdInfo;

    move-result-object v0

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->N(Lcom/kwad/sdk/core/response/model/AdInfo;)Lcom/kwad/sdk/core/response/model/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/kwad/sdk/core/response/model/c;->a()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/kwad/sdk/draw/b;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/imageloader/KSImageLoader;->preloadImage(Ljava/lang/String;Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    return-void
.end method

.method static synthetic a(Lcom/kwad/sdk/draw/b;)Lcom/kwad/sdk/api/KsDrawAd$AdInteractionListener;
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/draw/b;->b:Lcom/kwad/sdk/api/KsDrawAd$AdInteractionListener;

    return-object v0
.end method


# virtual methods
.method public getDrawView2(Landroid/content/Context;)Landroid/view/View;
    .registers 4
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/draw/b;->c:Lcom/kwad/sdk/draw/a;

    if-nez v0, :cond_1f

    new-instance v0, Lcom/kwad/sdk/draw/a;

    invoke-direct {v0, p1}, Lcom/kwad/sdk/draw/a;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/kwad/sdk/draw/b;->c:Lcom/kwad/sdk/draw/a;

    iget-object v0, p0, Lcom/kwad/sdk/draw/b;->c:Lcom/kwad/sdk/draw/a;

    new-instance v1, Lcom/kwad/sdk/draw/b$1;

    invoke-direct {v1, p0}, Lcom/kwad/sdk/draw/b$1;-><init>(Lcom/kwad/sdk/draw/b;)V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/draw/a;->setAdInteractionListener(Lcom/kwad/sdk/api/KsDrawAd$AdInteractionListener;)V

    iget-object v0, p0, Lcom/kwad/sdk/draw/b;->c:Lcom/kwad/sdk/draw/a;

    iget-object v1, p0, Lcom/kwad/sdk/draw/b;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/draw/a;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    :goto_1c
    iget-object v0, p0, Lcom/kwad/sdk/draw/b;->c:Lcom/kwad/sdk/draw/a;

    return-object v0

    :cond_1f
    const-string v0, "KSDrawAdControl"

    const-string v1, "mDrawVideoView is not null"

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1c
.end method

.method public getECPM()I
    .registers 2

    iget-object v0, p0, Lcom/kwad/sdk/draw/b;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/c;->j(Lcom/kwad/sdk/core/response/model/AdTemplate;)Lcom/kwad/sdk/core/response/model/AdInfo;

    move-result-object v0

    invoke-static {v0}, Lcom/kwad/sdk/core/response/b/a;->v(Lcom/kwad/sdk/core/response/model/AdInfo;)I

    move-result v0

    return v0
.end method

.method public setAdInteractionListener(Lcom/kwad/sdk/api/KsDrawAd$AdInteractionListener;)V
    .registers 2

    iput-object p1, p0, Lcom/kwad/sdk/draw/b;->b:Lcom/kwad/sdk/api/KsDrawAd$AdInteractionListener;

    return-void
.end method

.method public setBidEcpm(I)V
    .registers 3

    iget-object v0, p0, Lcom/kwad/sdk/draw/b;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iput p1, v0, Lcom/kwad/sdk/core/response/model/AdTemplate;->mBidEcpm:I

    iget-object v0, p0, Lcom/kwad/sdk/draw/b;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-static {v0}, Lcom/kwad/sdk/core/report/b;->l(Lcom/kwad/sdk/core/response/model/AdTemplate;)V

    return-void
.end method