.class Lcom/moji/mjad/third/LoadCrystalAd$1;
.super Ljava/lang/Object;
.source "LoadCrystalAd.java"

# interfaces
.implements Lcom/moji/mjad/third/CrystalAd$OnCrystalLoadListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjad/third/LoadCrystalAd;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/moji/mjad/common/data/AdCommon;Lcom/moji/mjad/common/network/ISDKRequestCallBack;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjad/common/data/AdCommon;

.field final synthetic b:Ljava/lang/String;

.field final synthetic c:Lcom/moji/mjad/common/network/ISDKRequestCallBack;

.field final synthetic d:Lcom/moji/mjad/third/LoadCrystalAd;


# direct methods
.method constructor <init>(Lcom/moji/mjad/third/LoadCrystalAd;Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;Lcom/moji/mjad/common/network/ISDKRequestCallBack;)V
    .locals 0

    .line 34
    iput-object p1, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->d:Lcom/moji/mjad/third/LoadCrystalAd;

    iput-object p2, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    iput-object p3, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->b:Ljava/lang/String;

    iput-object p4, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->c:Lcom/moji/mjad/common/network/ISDKRequestCallBack;

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

    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    .line 53
    iget-object v0, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v0, v0, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eqz v0, :cond_0

    .line 54
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->b:Ljava/lang/String;

    iget-object v2, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v2, v2, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget v2, v2, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-virtual {v0, v1, v2}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;I)V

    .line 56
    :cond_0
    iget-object v0, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->c:Lcom/moji/mjad/common/network/ISDKRequestCallBack;

    if-eqz v0, :cond_1

    .line 57
    iget-object v0, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->c:Lcom/moji/mjad/common/network/ISDKRequestCallBack;

    sget-object v1, Lcom/moji/mjad/enumdata/ERROR_CODE;->NODATA:Lcom/moji/mjad/enumdata/ERROR_CODE;

    iget-object v2, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->b:Ljava/lang/String;

    invoke-interface {v0, v1, v2}, Lcom/moji/mjad/common/network/ISDKRequestCallBack;->a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V

    :cond_1
    return-void
.end method

.method public a(Lcom/moji/mjad/third/CrystalAd;)V
    .locals 4

    .line 38
    iget-object v0, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    if-eqz v0, :cond_0

    if-eqz p1, :cond_0

    .line 39
    iget-object v0, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    iput-object p1, v0, Lcom/moji/mjad/common/data/AdCommon;->crystalAd:Lcom/moji/mjad/third/CrystalAd;

    .line 40
    iget-object v0, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    invoke-virtual {p1}, Lcom/moji/mjad/third/CrystalAd;->getAdTitle()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/moji/mjad/common/data/AdCommon;->title:Ljava/lang/String;

    .line 41
    iget-object v0, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    invoke-virtual {p1}, Lcom/moji/mjad/third/CrystalAd;->getAdBody()Ljava/lang/String;

    move-result-object p1

    iput-object p1, v0, Lcom/moji/mjad/common/data/AdCommon;->description:Ljava/lang/String;

    .line 43
    :cond_0
    iget-object p1, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    iget-object p1, p1, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    if-eqz p1, :cond_1

    .line 44
    invoke-static {}, Lcom/moji/mjad/statistics/AdStatistics;->a()Lcom/moji/mjad/statistics/AdStatistics;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->b:Ljava/lang/String;

    iget-object v1, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v1, v1, Lcom/moji/mjad/common/data/AdCommon;->position:Lcom/moji/mjad/enumdata/MojiAdPosition;

    iget v1, v1, Lcom/moji/mjad/enumdata/MojiAdPosition;->value:I

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {p1, v0, v1, v2, v3}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;IJ)V

    .line 46
    :cond_1
    iget-object p1, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->c:Lcom/moji/mjad/common/network/ISDKRequestCallBack;

    if-eqz p1, :cond_2

    .line 47
    iget-object p1, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->c:Lcom/moji/mjad/common/network/ISDKRequestCallBack;

    iget-object v0, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    iget-object v1, p0, Lcom/moji/mjad/third/LoadCrystalAd$1;->b:Ljava/lang/String;

    invoke-interface {p1, v0, v1}, Lcom/moji/mjad/common/network/ISDKRequestCallBack;->a(Lcom/moji/mjad/common/data/AdCommon;Ljava/lang/String;)V

    :cond_2
    return-void
.end method
