NativeMgr$1$1.smali

.class final Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;->onAdLoaded(Lcom/tradplus/ads/core/cache/AdCache;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/tradplus/ads/core/cache/AdCache;

.field final synthetic b:Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;


# direct methods
.method constructor <init>(Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;Lcom/tradplus/ads/core/cache/AdCache;)V
    .registers 3

    iput-object p1, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->b:Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;

    iput-object p2, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->a:Lcom/tradplus/ads/core/cache/AdCache;

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

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 5

    iget-object v0, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->b:Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;

    iget-object v0, v0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;->a:Lcom/tradplus/ads/mgr/nativead/NativeMgr;

    invoke-static {v0}, Lcom/tradplus/ads/mgr/nativead/NativeMgr;->a(Lcom/tradplus/ads/mgr/nativead/NativeMgr;)Z

    move-result v0

    if-nez v0, :cond_62

    iget-object v0, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->b:Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;

    iget-object v0, v0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;->a:Lcom/tradplus/ads/mgr/nativead/NativeMgr;

    invoke-static {v0}, Lcom/tradplus/ads/mgr/nativead/NativeMgr;->b(Lcom/tradplus/ads/mgr/nativead/NativeMgr;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/tradplus/ads/core/AdMediationManager;->getInstance(Ljava/lang/String;)Lcom/tradplus/ads/core/AdMediationManager;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/tradplus/ads/core/AdMediationManager;->setLoading(Z)V

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/tradplus/ads/core/AdMediationManager;->setLoadSuccess(Z)V

    invoke-static {}, Lcom/tradplus/ads/mgr/a/b;->a()Lcom/tradplus/ads/mgr/a/b;

    move-result-object v0

    iget-object v1, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->b:Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;

    iget-object v1, v1, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;->a:Lcom/tradplus/ads/mgr/nativead/NativeMgr;

    invoke-static {v1}, Lcom/tradplus/ads/mgr/nativead/NativeMgr;->b(Lcom/tradplus/ads/mgr/nativead/NativeMgr;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/tradplus/ads/mgr/a/b;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->b:Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;

    iget-object v0, v0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;->a:Lcom/tradplus/ads/mgr/nativead/NativeMgr;

    invoke-static {v0}, Lcom/tradplus/ads/mgr/nativead/NativeMgr;->c(Lcom/tradplus/ads/mgr/nativead/NativeMgr;)Z

    iget-object v0, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->b:Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;

    iget-object v0, v0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;->a:Lcom/tradplus/ads/mgr/nativead/NativeMgr;

    invoke-static {v0}, Lcom/tradplus/ads/mgr/nativead/NativeMgr;->d(Lcom/tradplus/ads/mgr/nativead/NativeMgr;)Lcom/tradplus/ads/open/nativead/NativeAdListener;

    move-result-object v0

    if-eqz v0, :cond_62

    iget-object v0, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->b:Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;

    iget-object v0, v0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;->a:Lcom/tradplus/ads/mgr/nativead/NativeMgr;

    invoke-static {v0}, Lcom/tradplus/ads/mgr/nativead/NativeMgr;->d(Lcom/tradplus/ads/mgr/nativead/NativeMgr;)Lcom/tradplus/ads/open/nativead/NativeAdListener;

    move-result-object v0

    new-instance v1, Lcom/tradplus/ads/base/bean/TPAdInfo;

    iget-object v2, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->b:Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;

    iget-object v2, v2, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1;->a:Lcom/tradplus/ads/mgr/nativead/NativeMgr;

    invoke-static {v2}, Lcom/tradplus/ads/mgr/nativead/NativeMgr;->b(Lcom/tradplus/ads/mgr/nativead/NativeMgr;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->a:Lcom/tradplus/ads/core/cache/AdCache;

    invoke-virtual {v3}, Lcom/tradplus/ads/core/cache/AdCache;->getAdapter()Lcom/tradplus/ads/base/adapter/TPBaseAdapter;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Lcom/tradplus/ads/base/bean/TPAdInfo;-><init>(Ljava/lang/String;Lcom/tradplus/ads/base/adapter/TPBaseAdapter;)V

    iget-object v2, p0, Lcom/tradplus/ads/mgr/nativead/NativeMgr$1$1;->a:Lcom/tradplus/ads/core/cache/AdCache;

    invoke-virtual {v2}, Lcom/tradplus/ads/core/cache/AdCache;->getAdObj()Lcom/tradplus/ads/base/bean/TPBaseAd;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/tradplus/ads/open/nativead/NativeAdListener;->onAdLoaded(Lcom/tradplus/ads/base/bean/TPAdInfo;Lcom/tradplus/ads/base/bean/TPBaseAd;)V

    :cond_62
    return-void
.end method