.class Lcom/moji/mjad/MojiAdRequest$2;
.super Lcom/moji/mjad/common/network/AdCommonRequestCallBack;
.source "MojiAdRequest.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjad/MojiAdRequest;->a(Lcom/moji/common/area/AreaInfo;ZLcom/moji/launchserver/AdCommonInterface$AdPosition;Lcom/moji/mjad/common/CommonAdCallback;)V
.end annotation

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


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

.field final synthetic b:Z

.field final synthetic c:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

.field final synthetic d:Lcom/moji/mjad/MojiAdRequest;


# direct methods
.method constructor <init>(Lcom/moji/mjad/MojiAdRequest;Lcom/moji/mjad/common/CommonAdCallback;ZLcom/moji/launchserver/AdCommonInterface$AdPosition;)V
    .locals 0

    .line 148
    iput-object p1, p0, Lcom/moji/mjad/MojiAdRequest$2;->d:Lcom/moji/mjad/MojiAdRequest;

    iput-object p2, p0, Lcom/moji/mjad/MojiAdRequest$2;->a:Lcom/moji/mjad/common/CommonAdCallback;

    iput-boolean p3, p0, Lcom/moji/mjad/MojiAdRequest$2;->b:Z

    iput-object p4, p0, Lcom/moji/mjad/MojiAdRequest$2;->c:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    invoke-direct {p0}, Lcom/moji/mjad/common/network/AdCommonRequestCallBack;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V
    .locals 1

    .line 167
    iget-object v0, p0, Lcom/moji/mjad/MojiAdRequest$2;->a:Lcom/moji/mjad/common/CommonAdCallback;

    invoke-virtual {v0, p1, p2}, Lcom/moji/mjad/common/CommonAdCallback;->a(Lcom/moji/mjad/enumdata/ERROR_CODE;Ljava/lang/String;)V

    .line 168
    iget-boolean p1, p0, Lcom/moji/mjad/MojiAdRequest$2;->b:Z

    if-eqz p1, :cond_0

    .line 169
    iget-object p1, p0, Lcom/moji/mjad/MojiAdRequest$2;->d:Lcom/moji/mjad/MojiAdRequest;

    invoke-static {p1}, Lcom/moji/mjad/MojiAdRequest;->a(Lcom/moji/mjad/MojiAdRequest;)Ljava/util/Map;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjad/MojiAdRequest$2;->c:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    const/4 v0, 0x0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-interface {p1, p2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_0
    return-void
.end method

.method public bridge synthetic a(Ljava/lang/Object;Ljava/lang/String;)V
    .locals 0

    .line 148
    check-cast p1, Ljava/util/List;

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjad/MojiAdRequest$2;->a(Ljava/util/List;Ljava/lang/String;)V

    return-void
.end method

.method public a(Ljava/util/List;Ljava/lang/String;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/mjad/common/data/AdCommon;",
            ">;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    .line 151
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    if-eqz p1, :cond_0

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

    move-result v1

    if-lez v1, :cond_0

    .line 153
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/mjad/common/data/AdCommon;

    .line 154
    new-instance v2, Lcom/moji/mjad/common/control/CommonAdControl;

    iget-object v3, p0, Lcom/moji/mjad/MojiAdRequest$2;->d:Lcom/moji/mjad/MojiAdRequest;

    invoke-static {v3}, Lcom/moji/mjad/MojiAdRequest;->b(Lcom/moji/mjad/MojiAdRequest;)Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/moji/mjad/common/control/CommonAdControl;-><init>(Landroid/content/Context;)V

    .line 155
    invoke-virtual {v2, v1}, Lcom/moji/mjad/common/control/CommonAdControl;->setAdInfo(Lcom/moji/mjad/base/data/MojiRecordData;)V

    .line 156
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 159
    :cond_0
    iget-object p1, p0, Lcom/moji/mjad/MojiAdRequest$2;->a:Lcom/moji/mjad/common/CommonAdCallback;

    invoke-virtual {p1, v0, p2}, Lcom/moji/mjad/common/CommonAdCallback;->a(Ljava/lang/Object;Ljava/lang/String;)V

    .line 160
    iget-boolean p1, p0, Lcom/moji/mjad/MojiAdRequest$2;->b:Z

    if-eqz p1, :cond_1

    .line 161
    iget-object p1, p0, Lcom/moji/mjad/MojiAdRequest$2;->d:Lcom/moji/mjad/MojiAdRequest;

    invoke-static {p1}, Lcom/moji/mjad/MojiAdRequest;->a(Lcom/moji/mjad/MojiAdRequest;)Ljava/util/Map;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjad/MojiAdRequest$2;->c:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    const/4 v0, 0x0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-interface {p1, p2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_1
    return-void
.end method
