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

# interfaces
.implements Lcom/baidu/mobad/feeds/BaiduNative$BaiduNativeNetworkListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjad/third/LoadBaiduAd;->a(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/LoadBaiduAd;


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

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

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

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

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

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

    return-void
.end method


# virtual methods
.method public onNativeFail(Lcom/baidu/mobad/feeds/NativeErrorCode;)V
    .locals 2

    const-string p1, "LoadBaiduAd"

    const-string v0, "onNativeFail reason:"

    .line 70
    invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->d(Ljava/lang/String;Ljava/lang/String;)V

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

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/moji/mjad/third/LoadBaiduAd$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_0

    .line 72
    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/LoadBaiduAd$1;->b:Ljava/lang/String;

    iget-object v1, p0, Lcom/moji/mjad/third/LoadBaiduAd$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-virtual {p1, v0, v1}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;I)V

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

    if-eqz p1, :cond_1

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

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

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

    invoke-interface {p1, v0, v1}, 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 onNativeLoad(Ljava/util/List;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/baidu/mobad/feeds/NativeResponse;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_4

    .line 80
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_4

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

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 82
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/baidu/mobad/feeds/NativeResponse;

    if-eqz p1, :cond_0

    .line 84
    iget-object v1, p0, Lcom/moji/mjad/third/LoadBaiduAd$1;->d:Lcom/moji/mjad/third/LoadBaiduAd;

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

    invoke-static {v1, p1, v2, v0}, Lcom/moji/mjad/third/LoadBaiduAd;->a(Lcom/moji/mjad/third/LoadBaiduAd;Lcom/baidu/mobad/feeds/NativeResponse;Lcom/moji/mjad/common/data/AdCommon;Z)Z

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

    if-eqz p1, :cond_2

    .line 89
    iget-object p1, p0, Lcom/moji/mjad/third/LoadBaiduAd$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 90
    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/LoadBaiduAd$1;->b:Ljava/lang/String;

    iget-object v1, p0, Lcom/moji/mjad/third/LoadBaiduAd$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 92
    :cond_1
    iget-object p1, p0, Lcom/moji/mjad/third/LoadBaiduAd$1;->c:Lcom/moji/mjad/common/network/ISDKRequestCallBack;

    if-eqz p1, :cond_6

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

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

    iget-object v1, p0, Lcom/moji/mjad/third/LoadBaiduAd$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

    goto :goto_0

    .line 96
    :cond_2
    iget-object p1, p0, Lcom/moji/mjad/third/LoadBaiduAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    if-eqz p1, :cond_3

    iget-object p1, p0, Lcom/moji/mjad/third/LoadBaiduAd$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_3

    .line 97
    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/LoadBaiduAd$1;->b:Ljava/lang/String;

    iget-object v1, p0, Lcom/moji/mjad/third/LoadBaiduAd$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-virtual {p1, v0, v1}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;I)V

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

    if-eqz p1, :cond_6

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

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

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

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

    goto :goto_0

    .line 104
    :cond_4
    iget-object p1, p0, Lcom/moji/mjad/third/LoadBaiduAd$1;->a:Lcom/moji/mjad/common/data/AdCommon;

    if-eqz p1, :cond_5

    iget-object p1, p0, Lcom/moji/mjad/third/LoadBaiduAd$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_5

    .line 105
    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/LoadBaiduAd$1;->b:Ljava/lang/String;

    iget-object v1, p0, Lcom/moji/mjad/third/LoadBaiduAd$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-virtual {p1, v0, v1}, Lcom/moji/mjad/statistics/AdStatistics;->g(Ljava/lang/String;I)V

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

    if-eqz p1, :cond_6

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

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

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

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

    :cond_6
    :goto_0
    return-void
.end method
