GooglePlayServicesInterstitialVideo$1.smali

.class Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo$1;
.super Lcom/google/android/gms/ads/rewarded/RewardedAdLoadCallback;
.source "GooglePlayServicesInterstitialVideo.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo;->loadCustomAd(Landroid/content/Context;Ljava/util/Map;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/GooglePlayServicesInterstitialVideo;


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

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

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

    return-void
.end method


# virtual methods
.method public onRewardedAdFailedToLoad(I)V
    .registers 4

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

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo;->contextWeakReference:Ljava/lang/ref/WeakReference;
    invoke-static {v0}, Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo;->access$000(Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo;)Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1b

    iget-object v0, p0, Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo;

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

    if-eqz v0, :cond_1b

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

    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

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

    :cond_1b
    return-void
.end method

.method public onRewardedAdLoaded()V
    .registers 3

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

    # getter for: Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo;->contextWeakReference:Ljava/lang/ref/WeakReference;
    invoke-static {v0}, Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo;->access$000(Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo;)Ljava/lang/ref/WeakReference;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_16

    iget-object v0, p0, Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo$1;->this$0:Lcom/tradplus/ads/google/GooglePlayServicesInterstitialVideo;

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

    if-eqz v0, :cond_16

    const/4 v1, 0x0

    .line 2
    invoke-interface {v0, v1}, Lcom/tradplus/ads/base/adapter/TPLoadAdapterListener;->loadAdapterLoaded(Lcom/tradplus/ads/base/bean/TPBaseAd;)V

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

    invoke-virtual {v0}, Lcom/tradplus/ads/base/adapter/reward/TPRewardAdapter;->setFirstLoadedTime()V

    return-void
.end method