.class public Lcom/baidu/mobad/feeds/XAdNativeResponse;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/baidu/mobad/feeds/NativeResponse;


# instance fields
.field private a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

.field private b:Lcom/baidu/mobad/feeds/BaiduNative;

.field private c:Z

.field private d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

.field private e:Lcom/baidu/mobads/interfaces/IXAdContainer;


# direct methods
.method public constructor <init>(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobad/feeds/BaiduNative;Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;Lcom/baidu/mobads/interfaces/IXAdContainer;)V
    .locals 1

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

    const/4 v0, 0x0

    .line 31
    iput-boolean v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->c:Z

    .line 37
    iput-object p1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    .line 38
    iput-object p2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    .line 39
    iput-object p4, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->e:Lcom/baidu/mobads/interfaces/IXAdContainer;

    .line 40
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p1

    invoke-virtual {p1}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdConstants()Lcom/baidu/mobads/utils/g;

    move-result-object p1

    .line 41
    iget-object p2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {p2}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getActionType()I

    move-result p2

    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/utils/IXAdConstants;->getActTypeDownload()I

    move-result p1

    if-ne p2, p1, :cond_0

    const/4 p1, 0x1

    .line 42
    iput-boolean p1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->c:Z

    .line 44
    :cond_0
    iput-object p3, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    return-void
.end method

.method static synthetic a(Lcom/baidu/mobad/feeds/XAdNativeResponse;)Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;
    .locals 0

    .line 26
    iget-object p0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    return-object p0
.end method

.method private a(Landroid/content/Context;)V
    .locals 1

    .line 174
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getSystemUtils()Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;

    move-result-object v0

    .line 175
    invoke-interface {v0, p1}, Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;->is3GConnected(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 177
    iget-object p1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    const/4 v0, 0x0

    invoke-interface {p1, v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->setActionOnlyWifi(Z)V

    goto :goto_0

    .line 180
    :cond_0
    iget-object p1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    const/4 v0, 0x1

    invoke-interface {p1, v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->setActionOnlyWifi(Z)V

    :goto_0
    return-void
.end method

.method private a(Landroid/view/View;I)V
    .locals 4

    .line 185
    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 186
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, v0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 187
    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "\u786e\u8ba4\u4e0b\u8f7d\""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->getTitle()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "\"?"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    const-string v2, "\u63d0\u793a"

    .line 188
    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    const-string v2, "\u786e\u8ba4"

    .line 189
    new-instance v3, Lcom/baidu/mobad/feeds/XAdNativeResponse$1;

    invoke-direct {v3, p0, v0, p1, p2}, Lcom/baidu/mobad/feeds/XAdNativeResponse$1;-><init>(Lcom/baidu/mobad/feeds/XAdNativeResponse;Landroid/content/Context;Landroid/view/View;I)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    const-string p1, "\u53d6\u6d88"

    .line 197
    new-instance p2, Lcom/baidu/mobad/feeds/XAdNativeResponse$2;

    invoke-direct {p2, p0}, Lcom/baidu/mobad/feeds/XAdNativeResponse$2;-><init>(Lcom/baidu/mobad/feeds/XAdNativeResponse;)V

    invoke-virtual {v1, p1, p2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 203
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object p1

    invoke-virtual {p1}, Landroid/app/AlertDialog;->show()V

    return-void
.end method

.method static synthetic a(Lcom/baidu/mobad/feeds/XAdNativeResponse;Landroid/content/Context;)V
    .locals 0

    .line 26
    invoke-direct {p0, p1}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic b(Lcom/baidu/mobad/feeds/XAdNativeResponse;)Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;
    .locals 0

    .line 26
    iget-object p0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    return-object p0
.end method

.method static synthetic c(Lcom/baidu/mobad/feeds/XAdNativeResponse;)Lcom/baidu/mobad/feeds/BaiduNative;
    .locals 0

    .line 26
    iget-object p0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    return-object p0
.end method


# virtual methods
.method public getAdLogoUrl()Ljava/lang/String;
    .locals 1

    const-string v0, "https://cpro.baidustatic.com/cpro/ui/noexpire/css/2.1.4/img/mob-adIcon_2x.png"

    return-object v0
.end method

.method public getAppPackage()Ljava/lang/String;
    .locals 1

    .line 103
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getAppPackageName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getAppSize()J
    .locals 2

    .line 98
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getAppSize()J

    move-result-wide v0

    return-wide v0
.end method

.method public getBaiduLogoUrl()Ljava/lang/String;
    .locals 1

    const-string v0, "https://cpro.baidustatic.com/cpro/ui/noexpire/css/2.1.4/img/mob-logo_2x.png"

    return-object v0
.end method

.method public getBrandName()Ljava/lang/String;
    .locals 1

    .line 279
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getAppName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getDesc()Ljava/lang/String;
    .locals 1

    .line 65
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getDescription()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getDuration()I
    .locals 1

    .line 238
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getVideoDuration()I

    move-result v0

    return v0
.end method

.method public getExtras()Ljava/util/Map;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x0

    return-object v0
.end method

.method public getHtmlSnippet()Ljava/lang/String;
    .locals 1

    .line 254
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getHtmlSnippet()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getIconUrl()Ljava/lang/String;
    .locals 2

    .line 70
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getIconUrl()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, ""

    .line 71
    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 72
    :cond_0
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainPictureUrl()Ljava/lang/String;

    move-result-object v0

    :cond_1
    return-object v0
.end method

.method public getImageUrl()Ljava/lang/String;
    .locals 1

    .line 79
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainPictureUrl()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getMainPicHeight()I
    .locals 1

    .line 274
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainMaterialHeight()I

    move-result v0

    return v0
.end method

.method public getMainPicWidth()I
    .locals 1

    .line 269
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainMaterialWidth()I

    move-result v0

    return v0
.end method

.method public getMaterialType()Lcom/baidu/mobad/feeds/NativeResponse$MaterialType;
    .locals 2

    .line 243
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object v0

    sget-object v1, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->VIDEO:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-ne v0, v1, :cond_0

    .line 244
    sget-object v0, Lcom/baidu/mobad/feeds/NativeResponse$MaterialType;->VIDEO:Lcom/baidu/mobad/feeds/NativeResponse$MaterialType;

    return-object v0

    .line 245
    :cond_0
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object v0

    sget-object v1, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->HTML:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-ne v0, v1, :cond_1

    .line 246
    sget-object v0, Lcom/baidu/mobad/feeds/NativeResponse$MaterialType;->HTML:Lcom/baidu/mobad/feeds/NativeResponse$MaterialType;

    return-object v0

    .line 248
    :cond_1
    sget-object v0, Lcom/baidu/mobad/feeds/NativeResponse$MaterialType;->NORMAL:Lcom/baidu/mobad/feeds/NativeResponse$MaterialType;

    return-object v0
.end method

.method public getMultiPicUrls()Ljava/util/List;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x0

    .line 110
    :try_start_0
    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getOriginJsonObject()Lorg/json/JSONObject;

    move-result-object v1

    const-string v2, "morepics"

    .line 111
    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 112
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-lez v2, :cond_1

    .line 113
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    const/4 v0, 0x0

    .line 114
    :goto_0
    :try_start_1
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v0, v3, :cond_0

    .line 115
    invoke-virtual {v1, v0}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :catch_0
    :cond_0
    move-object v0, v2

    :catch_1
    :cond_1
    return-object v0
.end method

.method public getTitle()Ljava/lang/String;
    .locals 1

    .line 60
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getTitle()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getVideoUrl()Ljava/lang/String;
    .locals 1

    .line 233
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getVideoUrl()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getWebView()Landroid/webkit/WebView;
    .locals 1

    .line 259
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->e:Lcom/baidu/mobads/interfaces/IXAdContainer;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdContainer;->getAdView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    return-object v0
.end method

.method public handleClick(Landroid/view/View;)V
    .locals 1

    const/4 v0, -0x1

    .line 137
    invoke-virtual {p0, p1, v0}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->handleClick(Landroid/view/View;I)V

    return-void
.end method

.method public handleClick(Landroid/view/View;I)V
    .locals 3

    .line 143
    invoke-virtual {p0}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->isDownloadApp()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 144
    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 145
    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-interface {v1}, Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;->getAPPConfirmPolicy()I

    move-result v1

    const/4 v2, 0x3

    if-ne v1, v2, :cond_0

    .line 148
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->setActionOnlyWifi(Z)V

    .line 149
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, v1, p2, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->handleClick(Landroid/view/View;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;ILcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V

    goto :goto_0

    .line 150
    :cond_0
    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-interface {v1}, Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;->getAPPConfirmPolicy()I

    move-result v1

    const/4 v2, 0x4

    if-ne v1, v2, :cond_1

    .line 152
    invoke-direct {p0, v0}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a(Landroid/content/Context;)V

    .line 153
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, v1, p2, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->handleClick(Landroid/view/View;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;ILcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V

    goto :goto_0

    .line 154
    :cond_1
    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-interface {v1}, Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;->getAPPConfirmPolicy()I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_2

    .line 156
    invoke-direct {p0, p1, p2}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a(Landroid/view/View;I)V

    goto :goto_0

    .line 157
    :cond_2
    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-interface {v1}, Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;->getAPPConfirmPolicy()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_5

    .line 159
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v1

    invoke-virtual {v1}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getSystemUtils()Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;

    move-result-object v1

    .line 160
    invoke-interface {v1, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;->is3GConnected(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_3

    .line 161
    invoke-direct {p0, p1, p2}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a(Landroid/view/View;I)V

    goto :goto_0

    .line 163
    :cond_3
    invoke-direct {p0, v0}, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a(Landroid/content/Context;)V

    .line 164
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, v1, p2, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->handleClick(Landroid/view/View;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;ILcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V

    goto :goto_0

    .line 169
    :cond_4
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, v1, p2, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->handleClick(Landroid/view/View;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;ILcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V

    :cond_5
    :goto_0
    return-void
.end method

.method public isAdAvailable(Landroid/content/Context;)Z
    .locals 3

    .line 93
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, v1, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->isAdAvailable(Landroid/content/Context;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)Z

    move-result p1

    return p1
.end method

.method public isDownloadApp()Z
    .locals 1

    .line 84
    iget-boolean v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->c:Z

    return v0
.end method

.method public onClickAd(Landroid/content/Context;)V
    .locals 3

    .line 264
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, v1, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->handleOnClickAd(Landroid/content/Context;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V

    return-void
.end method

.method public onClose(Landroid/content/Context;I)V
    .locals 3

    .line 223
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, p2, v1, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->handleOnClose(Landroid/content/Context;ILcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V

    return-void
.end method

.method public onComplete(Landroid/content/Context;)V
    .locals 3

    .line 218
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, v1, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->handleOnComplete(Landroid/content/Context;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V

    return-void
.end method

.method public onError(Landroid/content/Context;II)V
    .locals 2

    .line 213
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    invoke-virtual {v0, p1, p2, p3, v1}, Lcom/baidu/mobad/feeds/BaiduNative;->handleOnError(Landroid/content/Context;IILcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V

    return-void
.end method

.method public onFullScreen(Landroid/content/Context;I)V
    .locals 3

    .line 228
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, p2, v1, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->handleOnFullScreen(Landroid/content/Context;ILcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V

    return-void
.end method

.method public onStart(Landroid/content/Context;)V
    .locals 3

    .line 208
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, v1, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->handleOnStart(Landroid/content/Context;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V

    return-void
.end method

.method public recordImpression(Landroid/view/View;)V
    .locals 3

    .line 132
    iget-object v0, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->b:Lcom/baidu/mobad/feeds/BaiduNative;

    iget-object v1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->a:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    iget-object v2, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->d:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    invoke-virtual {v0, p1, v1, v2}, Lcom/baidu/mobad/feeds/BaiduNative;->recordImpression(Landroid/view/View;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;)V

    return-void
.end method

.method public setIsDownloadApp(Z)V
    .locals 0

    .line 88
    iput-boolean p1, p0, Lcom/baidu/mobad/feeds/XAdNativeResponse;->c:Z

    return-void
.end method
