GooglePlayServicesNative$1.smali

.class Lcom/tradplus/ads/google/GooglePlayServicesNative$1;
.super Lcom/google/android/gms/ads/AdListener;
.source "GooglePlayServicesNative.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/tradplus/ads/google/GooglePlayServicesNative;->loadAd(Landroid/content/Context;Ljava/lang/String;Ljava/util/Map;)V
.end annotation

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


# instance fields
.field final synthetic this$0:Lcom/tradplus/ads/google/GooglePlayServicesNative;


# direct methods
.method constructor <init>(Lcom/tradplus/ads/google/GooglePlayServicesNative;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/tradplus/ads/google/GooglePlayServicesNative$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNative;

    invoke-direct {p0}, Lcom/google/android/gms/ads/AdListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onAdClicked()V
    .registers 2

    .line 1
    invoke-super {p0}, Lcom/google/android/gms/ads/AdListener;->onAdClicked()V

    .line 2
    iget-object v0, p0, Lcom/tradplus/ads/google/GooglePlayServicesNative$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNative;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNative;->mGoogleNativeAd:Lcom/tradplus/ads/google/GoogleNativeAd;
    invoke-static {v0}, Lcom/tradplus/ads/google/GooglePlayServicesNative;->access$000(Lcom/tradplus/ads/google/GooglePlayServicesNative;)Lcom/tradplus/ads/google/GoogleNativeAd;

    move-result-object v0

    if-eqz v0, :cond_14

    .line 3
    iget-object v0, p0, Lcom/tradplus/ads/google/GooglePlayServicesNative$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNative;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNative;->mGoogleNativeAd:Lcom/tradplus/ads/google/GoogleNativeAd;
    invoke-static {v0}, Lcom/tradplus/ads/google/GooglePlayServicesNative;->access$000(Lcom/tradplus/ads/google/GooglePlayServicesNative;)Lcom/tradplus/ads/google/GoogleNativeAd;

    move-result-object v0

    invoke-virtual {v0}, Lcom/tradplus/ads/google/GoogleNativeAd;->onAdViewClicked()V

    :cond_14
    return-void
.end method

.method public onAdFailedToLoad(I)V
    .registers 4

    .line 1
    invoke-super {p0, p1}, Lcom/google/android/gms/ads/AdListener;->onAdFailedToLoad(I)V

    .line 2
    iget-object v0, p0, Lcom/tradplus/ads/google/GooglePlayServicesNative$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNative;

    iget-object v0, v0, Lcom/tradplus/ads/base/adapter/TPBaseAdapter;->mLoadAdapterListener:Lcom/tradplus/ads/base/adapter/TPLoadAdapterListener;

    if-eqz v0, :cond_45

    if-eqz p1, :cond_3c

    const/4 v1, 0x1

    if-eq p1, v1, :cond_32

    const/4 v1, 0x2

    if-eq p1, v1, :cond_28

    const/4 v1, 0x3

    if-eq p1, v1, :cond_1e

    .line 3
    sget-object v1, Lcom/tradplus/ads/mobileads/TradPlusErrorCode;->UNSPECIFIED:Lcom/tradplus/ads/mobileads/TradPlusErrorCode;

    .line 4
    invoke-static {v1, p1}, Lcom/tradplus/ads/google/GoogleErrorUtil;->getTradPlusErrorCode(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;I)Lcom/tradplus/ads/mobileads/TradPlusErrorCode;

    move-result-object p1

    .line 5
    invoke-interface {v0, p1}, Lcom/tradplus/ads/base/adapter/TPLoadAdapterListener;->loadAdapterLoadFailed(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;)V

    goto :goto_45

    .line 6
    :cond_1e
    sget-object v1, Lcom/tradplus/ads/mobileads/TradPlusErrorCode;->NETWORK_NO_FILL:Lcom/tradplus/ads/mobileads/TradPlusErrorCode;

    .line 7
    invoke-static {v1, p1}, Lcom/tradplus/ads/google/GoogleErrorUtil;->getTradPlusErrorCode(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;I)Lcom/tradplus/ads/mobileads/TradPlusErrorCode;

    move-result-object p1

    .line 8
    invoke-interface {v0, p1}, Lcom/tradplus/ads/base/adapter/TPLoadAdapterListener;->loadAdapterLoadFailed(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;)V

    goto :goto_45

    .line 9
    :cond_28
    sget-object v1, Lcom/tradplus/ads/mobileads/TradPlusErrorCode;->CONNECTION_ERROR:Lcom/tradplus/ads/mobileads/TradPlusErrorCode;

    .line 10
    invoke-static {v1, p1}, Lcom/tradplus/ads/google/GoogleErrorUtil;->getTradPlusErrorCode(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;I)Lcom/tradplus/ads/mobileads/TradPlusErrorCode;

    move-result-object p1

    .line 11
    invoke-interface {v0, p1}, Lcom/tradplus/ads/base/adapter/TPLoadAdapterListener;->loadAdapterLoadFailed(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;)V

    goto :goto_45

    .line 12
    :cond_32
    sget-object v1, Lcom/tradplus/ads/mobileads/TradPlusErrorCode;->NETWORK_INVALID_REQUEST:Lcom/tradplus/ads/mobileads/TradPlusErrorCode;

    .line 13
    invoke-static {v1, p1}, Lcom/tradplus/ads/google/GoogleErrorUtil;->getTradPlusErrorCode(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;I)Lcom/tradplus/ads/mobileads/TradPlusErrorCode;

    move-result-object p1

    .line 14
    invoke-interface {v0, p1}, Lcom/tradplus/ads/base/adapter/TPLoadAdapterListener;->loadAdapterLoadFailed(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;)V

    goto :goto_45

    .line 15
    :cond_3c
    sget-object v1, Lcom/tradplus/ads/mobileads/TradPlusErrorCode;->NATIVE_ADAPTER_CONFIGURATION_ERROR:Lcom/tradplus/ads/mobileads/TradPlusErrorCode;

    .line 16
    invoke-static {v1, p1}, Lcom/tradplus/ads/google/GoogleErrorUtil;->getTradPlusErrorCode(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;I)Lcom/tradplus/ads/mobileads/TradPlusErrorCode;

    move-result-object p1

    .line 17
    invoke-interface {v0, p1}, Lcom/tradplus/ads/base/adapter/TPLoadAdapterListener;->loadAdapterLoadFailed(Lcom/tradplus/ads/mobileads/TradPlusErrorCode;)V

    :cond_45
    :goto_45
    return-void
.end method

.method public onAdImpression()V
    .registers 2

    .line 1
    invoke-super {p0}, Lcom/google/android/gms/ads/AdListener;->onAdImpression()V

    .line 2
    iget-object v0, p0, Lcom/tradplus/ads/google/GooglePlayServicesNative$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNative;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNative;->mGoogleNativeAd:Lcom/tradplus/ads/google/GoogleNativeAd;
    invoke-static {v0}, Lcom/tradplus/ads/google/GooglePlayServicesNative;->access$000(Lcom/tradplus/ads/google/GooglePlayServicesNative;)Lcom/tradplus/ads/google/GoogleNativeAd;

    move-result-object v0

    if-eqz v0, :cond_14

    .line 3
    iget-object v0, p0, Lcom/tradplus/ads/google/GooglePlayServicesNative$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesNative;

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesNative;->mGoogleNativeAd:Lcom/tradplus/ads/google/GoogleNativeAd;
    invoke-static {v0}, Lcom/tradplus/ads/google/GooglePlayServicesNative;->access$000(Lcom/tradplus/ads/google/GooglePlayServicesNative;)Lcom/tradplus/ads/google/GoogleNativeAd;

    move-result-object v0

    invoke-virtual {v0}, Lcom/tradplus/ads/google/GoogleNativeAd;->onAdViewExpanded()V

    :cond_14
    return-void
.end method