.class public final Lcom/fyber/inneractive/sdk/network/s$a; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/fyber/inneractive/sdk/network/s; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "a" .end annotation # static fields .field public static final h:Ljava/text/SimpleDateFormat; # instance fields .field public final a:Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest; .field public final b:Lcom/fyber/inneractive/sdk/network/q; .field public final c:Lcom/fyber/inneractive/sdk/network/r; .field public final d:Lorg/json/JSONArray; .field public final e:Lcom/fyber/inneractive/sdk/response/e; .field public final f:Lorg/json/JSONArray; .field public g:Z # direct methods .method public static constructor ()V .locals 3 .line 1 new-instance v0, Ljava/text/SimpleDateFormat; sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale; const-string v2, "yyyy-MM-dd" invoke-direct {v0, v2, v1}, Ljava/text/SimpleDateFormat;->(Ljava/lang/String;Ljava/util/Locale;)V sput-object v0, Lcom/fyber/inneractive/sdk/network/s$a;->h:Ljava/text/SimpleDateFormat; return-void .end method .method public constructor (Lcom/fyber/inneractive/sdk/network/q;)V .locals 1 const/4 v0, 0x0 .line 1 invoke-direct {p0, p1, v0, v0, v0}, Lcom/fyber/inneractive/sdk/network/s$a;->(Lcom/fyber/inneractive/sdk/network/q;Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;Lcom/fyber/inneractive/sdk/response/e;Lorg/json/JSONArray;)V return-void .end method .method public constructor (Lcom/fyber/inneractive/sdk/network/q;Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;Lcom/fyber/inneractive/sdk/response/e;Lorg/json/JSONArray;)V .locals 0 .line 3 invoke-direct {p0, p3}, Lcom/fyber/inneractive/sdk/network/s$a;->(Lcom/fyber/inneractive/sdk/response/e;)V iput-object p1, p0, Lcom/fyber/inneractive/sdk/network/s$a;->b:Lcom/fyber/inneractive/sdk/network/q; iput-object p2, p0, Lcom/fyber/inneractive/sdk/network/s$a;->a:Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest; iput-object p4, p0, Lcom/fyber/inneractive/sdk/network/s$a;->d:Lorg/json/JSONArray; return-void .end method .method public constructor (Lcom/fyber/inneractive/sdk/network/r;)V .locals 1 const/4 v0, 0x0 .line 2 invoke-direct {p0, p1, v0, v0, v0}, Lcom/fyber/inneractive/sdk/network/s$a;->(Lcom/fyber/inneractive/sdk/network/r;Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;Lcom/fyber/inneractive/sdk/response/e;Lorg/json/JSONArray;)V return-void .end method .method public constructor (Lcom/fyber/inneractive/sdk/network/r;Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;Lcom/fyber/inneractive/sdk/response/e;Lorg/json/JSONArray;)V .locals 0 .line 7 invoke-direct {p0, p3}, Lcom/fyber/inneractive/sdk/network/s$a;->(Lcom/fyber/inneractive/sdk/response/e;)V iput-object p1, p0, Lcom/fyber/inneractive/sdk/network/s$a;->c:Lcom/fyber/inneractive/sdk/network/r; iput-object p2, p0, Lcom/fyber/inneractive/sdk/network/s$a;->a:Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest; iput-object p4, p0, Lcom/fyber/inneractive/sdk/network/s$a;->d:Lorg/json/JSONArray; return-void .end method .method public constructor (Lcom/fyber/inneractive/sdk/response/e;)V .locals 1 .line 11 invoke-direct {p0}, Ljava/lang/Object;->()V const/4 v0, 0x0 iput-boolean v0, p0, Lcom/fyber/inneractive/sdk/network/s$a;->g:Z iput-object p1, p0, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; .line 78 new-instance p1, Lorg/json/JSONArray; invoke-direct {p1}, Lorg/json/JSONArray;->()V iput-object p1, p0, Lcom/fyber/inneractive/sdk/network/s$a;->f:Lorg/json/JSONArray; return-void .end method # virtual methods .method public final varargs a([Ljava/lang/Object;)Lcom/fyber/inneractive/sdk/network/s$a; .locals 4 .line 1 array-length v0, p1 if-lez v0, :cond_1 .line 2 new-instance v0, Lorg/json/JSONObject; invoke-direct {v0}, Lorg/json/JSONObject;->()V const/4 v1, 0x0 .line 3 :goto_0 array-length v2, p1 add-int/lit8 v2, v2, -0x1 if-ge v1, v2, :cond_0 .line 4 aget-object v2, p1, v1 invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v2 add-int/lit8 v3, v1, 0x1 aget-object v3, p1, v3 .line 5 :try_start_0 invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject; :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_1 :catch_0 filled-new-array {v2, v3}, [Ljava/lang/Object; move-result-object v2 const-string v3, "Got exception adding param to json object: %s, %s" .line 7 invoke-static {v3, v2}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V :goto_1 add-int/lit8 v1, v1, 0x2 goto :goto_0 :cond_0 iget-object p1, p0, Lcom/fyber/inneractive/sdk/network/s$a;->f:Lorg/json/JSONArray; .line 8 invoke-virtual {p1, v0}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray; :cond_1 return-object p0 .end method .method public final a(Ljava/lang/String;)V .locals 19 move-object/from16 v9, p0 .line 9 invoke-static {}, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->g()Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_1 sget-object v0, Lcom/fyber/inneractive/sdk/network/r;->IA_IAB_GDPR_TCF_PURPOSE_1_DISABLED:Lcom/fyber/inneractive/sdk/network/r; iget-object v2, v9, Lcom/fyber/inneractive/sdk/network/s$a;->c:Lcom/fyber/inneractive/sdk/network/r; .line 10 invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v0 if-nez v0, :cond_1 const/4 v0, 0x2 new-array v0, v0, [Ljava/lang/Object; .line 12 invoke-static/range {p0 .. p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/Object;)Ljava/lang/String; move-result-object v2 aput-object v2, v0, v1 iget-object v1, v9, Lcom/fyber/inneractive/sdk/network/s$a;->c:Lcom/fyber/inneractive/sdk/network/r; if-eqz v1, :cond_0 goto :goto_0 :cond_0 iget-object v1, v9, Lcom/fyber/inneractive/sdk/network/s$a;->b:Lcom/fyber/inneractive/sdk/network/q; :goto_0 const/4 v2, 0x1 aput-object v1, v0, v2 const-string v1, "%sSdk event dispatcher - aborting dispatch: %s" .line 14 invoke-static {v1, v0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V return-void :cond_1 iget-object v0, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; const/4 v2, 0x0 if-eqz v0, :cond_8 .line 16 iget-object v0, v0, Lcom/fyber/inneractive/sdk/response/e;->r:Lcom/fyber/inneractive/sdk/external/ImpressionData; if-eqz v0, :cond_2 .line 17 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/external/ImpressionData;->getImpressionId()Ljava/lang/String; move-result-object v0 goto :goto_1 :cond_2 move-object v0, v2 :goto_1 iget-object v3, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; .line 19 iget-object v3, v3, Lcom/fyber/inneractive/sdk/response/e;->r:Lcom/fyber/inneractive/sdk/external/ImpressionData; if-eqz v3, :cond_3 .line 20 invoke-virtual {v3}, Lcom/fyber/inneractive/sdk/external/ImpressionData;->getDemandSource()Ljava/lang/String; move-result-object v3 goto :goto_2 :cond_3 move-object v3, v2 :goto_2 iget-object v4, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; .line 22 iget-object v4, v4, Lcom/fyber/inneractive/sdk/response/e;->r:Lcom/fyber/inneractive/sdk/external/ImpressionData; if-eqz v4, :cond_4 .line 23 invoke-virtual {v4}, Lcom/fyber/inneractive/sdk/external/ImpressionData;->getDemandId()Ljava/lang/Long; move-result-object v4 goto :goto_3 :cond_4 move-object v4, v2 :goto_3 iget-object v5, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; .line 25 iget-object v5, v5, Lcom/fyber/inneractive/sdk/response/e;->r:Lcom/fyber/inneractive/sdk/external/ImpressionData; if-eqz v5, :cond_5 .line 26 invoke-virtual {v5}, Lcom/fyber/inneractive/sdk/external/ImpressionData;->getCreativeId()Ljava/lang/String; move-result-object v5 goto :goto_4 :cond_5 move-object v5, v2 :goto_4 iget-object v6, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; .line 28 iget-object v6, v6, Lcom/fyber/inneractive/sdk/response/e;->r:Lcom/fyber/inneractive/sdk/external/ImpressionData; if-eqz v6, :cond_6 .line 29 invoke-virtual {v6}, Lcom/fyber/inneractive/sdk/external/ImpressionData;->getAdvertiserDomain()Ljava/lang/String; move-result-object v6 goto :goto_5 :cond_6 move-object v6, v2 :goto_5 iget-object v7, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; .line 31 iget-object v7, v7, Lcom/fyber/inneractive/sdk/response/e;->r:Lcom/fyber/inneractive/sdk/external/ImpressionData; if-eqz v7, :cond_7 .line 32 invoke-virtual {v7}, Lcom/fyber/inneractive/sdk/external/ImpressionData;->getCampaignId()Ljava/lang/String; move-result-object v7 move-object v12, v0 move-object v13, v3 move-object v14, v4 move-object v15, v5 move-object/from16 v16, v6 move-object/from16 v17, v7 goto :goto_6 :cond_7 move-object v12, v0 move-object/from16 v17, v2 move-object v13, v3 move-object v14, v4 move-object v15, v5 move-object/from16 v16, v6 goto :goto_6 :cond_8 move-object v12, v2 move-object v13, v12 move-object v14, v13 move-object v15, v14 move-object/from16 v16, v15 move-object/from16 v17, v16 .line 33 :goto_6 new-instance v3, Lcom/fyber/inneractive/sdk/network/s; .line 34 sget-object v0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->L:Lcom/fyber/inneractive/sdk/config/IAConfigManager; iget-object v11, v0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->c:Ljava/lang/String; move-object v10, v3 move-object/from16 v18, p1 .line 35 invoke-direct/range {v10 .. v18}, Lcom/fyber/inneractive/sdk/network/s;->(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V iget-object v4, v9, Lcom/fyber/inneractive/sdk/network/s$a;->a:Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest; if-nez v4, :cond_9 move-object v4, v2 goto :goto_7 .line 36 :cond_9 invoke-virtual {v4}, Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;->getSelectedUnitConfig()Lcom/fyber/inneractive/sdk/config/f0; move-result-object v4 :goto_7 if-eqz v4, :cond_d .line 37 move-object v5, v4 check-cast v5, Lcom/fyber/inneractive/sdk/config/e0; .line 38 iget-object v6, v5, Lcom/fyber/inneractive/sdk/config/e0;->d:Lcom/fyber/inneractive/sdk/config/b0; .line 39 sget-object v7, Lcom/fyber/inneractive/sdk/config/enums/Track;->ERRORS:Lcom/fyber/inneractive/sdk/config/enums/Track; .line 40 iget-object v6, v6, Lcom/fyber/inneractive/sdk/config/b0;->a:Ljava/util/Set; if-nez v6, :cond_a goto :goto_9 .line 43 :cond_a invoke-interface {v6, v7}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z move-result v6 if-eqz v6, :cond_c .line 44 iget-object v6, v5, Lcom/fyber/inneractive/sdk/config/e0;->c:Lcom/fyber/inneractive/sdk/config/x; if-eqz v6, :cond_b .line 45 iget-object v6, v6, Lcom/fyber/inneractive/sdk/config/x;->b:Lcom/fyber/inneractive/sdk/config/enums/UnitDisplayType; if-eqz v6, :cond_b .line 46 invoke-virtual {v6}, Lcom/fyber/inneractive/sdk/config/enums/UnitDisplayType;->isDeprecated()Z move-result v5 goto :goto_8 .line 47 :cond_b iget-object v5, v5, Lcom/fyber/inneractive/sdk/config/e0;->f:Lcom/fyber/inneractive/sdk/config/g0; if-eqz v5, :cond_d .line 48 iget-object v5, v5, Lcom/fyber/inneractive/sdk/config/g0;->j:Lcom/fyber/inneractive/sdk/config/enums/UnitDisplayType; if-eqz v5, :cond_d .line 49 invoke-virtual {v5}, Lcom/fyber/inneractive/sdk/config/enums/UnitDisplayType;->isDeprecated()Z move-result v5 :goto_8 if-eqz v5, :cond_d :cond_c :goto_9 return-void :cond_d if-nez v4, :cond_e iget-object v4, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; if-eqz v4, :cond_e .line 51 iget-object v4, v4, Lcom/fyber/inneractive/sdk/response/e;->m:Ljava/lang/String; .line 52 invoke-static {v4}, Lcom/fyber/inneractive/sdk/config/a;->a(Ljava/lang/String;)Lcom/fyber/inneractive/sdk/config/e0; :cond_e iget-object v4, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; if-nez v4, :cond_f move-object v4, v2 goto :goto_a .line 56 :cond_f iget-object v4, v4, Lcom/fyber/inneractive/sdk/response/e;->d:Ljava/lang/String; .line 57 :goto_a iget-object v5, v0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->s:Ljava/lang/String; .line 58 invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v5 if-eqz v5, :cond_10 move-object v5, v2 goto :goto_b .line 59 :cond_10 iget-object v5, v0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->s:Ljava/lang/String; :goto_b iget-object v6, v9, Lcom/fyber/inneractive/sdk/network/s$a;->b:Lcom/fyber/inneractive/sdk/network/q; if-nez v6, :cond_11 iget-object v6, v9, Lcom/fyber/inneractive/sdk/network/s$a;->c:Lcom/fyber/inneractive/sdk/network/r; if-nez v6, :cond_11 new-array v0, v1, [Ljava/lang/Object; const-string v1, "Sdk event dispatcher - error id or event id must be provided" .line 61 invoke-static {v1, v0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V return-void :cond_11 iget-object v1, v9, Lcom/fyber/inneractive/sdk/network/s$a;->a:Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest; if-eqz v1, :cond_12 .line 65 invoke-virtual {v1}, Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;->getSpotId()Ljava/lang/String; move-result-object v1 :goto_c move-object v6, v1 goto :goto_d :cond_12 iget-object v1, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; if-eqz v1, :cond_13 .line 66 iget-object v1, v1, Lcom/fyber/inneractive/sdk/response/e;->A:Ljava/lang/String; goto :goto_c :cond_13 move-object v6, v2 .line 67 :goto_d new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V .line 68 iget-object v7, v0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->l:Ljava/lang/String; .line 69 invoke-static {v7}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v7 if-nez v7, :cond_14 .line 70 iget-object v0, v0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->l:Ljava/lang/String; .line 71 invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v0, "_" invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_14 iget-object v0, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; if-nez v0, :cond_15 move-object v0, v2 goto :goto_e .line 76 :cond_15 iget-object v0, v0, Lcom/fyber/inneractive/sdk/response/e;->n:Lcom/fyber/inneractive/sdk/config/enums/UnitDisplayType; :goto_e if-nez v0, :cond_16 iget-object v7, v9, Lcom/fyber/inneractive/sdk/network/s$a;->a:Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest; if-eqz v7, :cond_16 .line 77 invoke-virtual {v7}, Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;->getSpotId()Ljava/lang/String; move-result-object v7 if-eqz v7, :cond_16 iget-object v0, v9, Lcom/fyber/inneractive/sdk/network/s$a;->a:Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest; .line 78 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;->getSpotId()Ljava/lang/String; move-result-object v0 invoke-static {v0}, Lcom/fyber/inneractive/sdk/serverapi/a;->a(Ljava/lang/String;)Lcom/fyber/inneractive/sdk/config/enums/UnitDisplayType; move-result-object v0 :cond_16 if-eqz v0, :cond_17 .line 80 invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/config/enums/UnitDisplayType;->toString()Ljava/lang/String; move-result-object v0 goto :goto_f :cond_17 const-string v0, "unknown" :goto_f invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 82 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v7 iget-object v0, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; if-nez v0, :cond_18 move-object v8, v2 goto :goto_10 .line 84 :cond_18 iget v0, v0, Lcom/fyber/inneractive/sdk/response/e;->g:I .line 85 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v0 move-object v8, v0 :goto_10 iget-object v0, v9, Lcom/fyber/inneractive/sdk/network/s$a;->e:Lcom/fyber/inneractive/sdk/response/e; if-nez v0, :cond_19 const-string v0, "" :goto_11 move-object v10, v0 goto :goto_12 .line 87 :cond_19 iget-object v0, v0, Lcom/fyber/inneractive/sdk/response/e;->h:Ljava/lang/String; goto :goto_11 .line 88 :goto_12 new-instance v11, Lcom/fyber/inneractive/sdk/network/s$a$a; move-object v0, v11 move-object/from16 v1, p0 move-object v2, v3 move-object v3, v4 move-object v4, v5 move-object v5, v7 move-object v7, v8 move-object v8, v10 invoke-direct/range {v0 .. v8}, Lcom/fyber/inneractive/sdk/network/s$a$a;->(Lcom/fyber/inneractive/sdk/network/s$a;Lcom/fyber/inneractive/sdk/network/s;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)V .line 89 sget-object v0, Lcom/fyber/inneractive/sdk/util/p;->a:Ljava/util/concurrent/ThreadPoolExecutor; invoke-virtual {v0, v11}, Ljava/util/concurrent/ThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V return-void .end method