o.smali
.class public Lcom/fulishe/shadow/mediation/d/o;
.super Ljava/lang/Object;
.source ""
# direct methods
.method public static a(ILjava/lang/String;)I
.registers 6
const/4 v2, 0x2
const/4 v3, 0x3
const/4 v1, 0x1
const/4 v0, 0x0
if-ne v3, p0, :cond_7
:cond_6
:goto_6
return v0
:cond_7
if-ne v2, p0, :cond_13
const-string v2, "o"
invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_6
move v0, v1
goto :goto_6
:cond_13
if-ne v1, p0, :cond_21
const-string v0, "o"
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1f
move v0, v2
goto :goto_6
:cond_1f
move v0, v1
goto :goto_6
:cond_21
const/4 v2, 0x6
if-ne v2, p0, :cond_30
const-string v0, "K"
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2e
move v0, v3
goto :goto_6
:cond_2e
move v0, v3
goto :goto_6
:cond_30
const/4 v2, 0x5
if-ne v2, p0, :cond_6
const-string v2, "K"
invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_6
move v0, v1
goto :goto_6
.end method
.method public static a(Ljava/lang/String;I)Lcom/fulishe/shadow/mediation/d/e;
.registers 15
:try_start_0
invoke-static {}, Lcom/fulishe/shadow/mediation/c/b;->a()Lcom/fulishe/shadow/mediation/c/b;
move-result-object v0
invoke-virtual {v0}, Lcom/fulishe/shadow/mediation/c/b;->b()Lcom/fulishe/shadow/mediation/a/o;
move-result-object v2
if-nez v2, :cond_c
const/4 v0, 0x0
:cond_b
:goto_b
return-object v0
:cond_c
invoke-interface {v2, p0}, Lcom/fulishe/shadow/mediation/a/o;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_18
const/4 v0, 0x0
goto :goto_b
:cond_18
invoke-static {}, Lcom/fulishe/shadow/mediation/d/c;->c()Lcom/fulishe/shadow/mediation/d/c;
move-result-object v1
invoke-interface {v1}, Lcom/fulishe/shadow/mediation/a/h;->b()Lorg/json/JSONObject;
move-result-object v3
if-nez v3, :cond_24
const/4 v0, 0x0
goto :goto_b
:cond_24
const-string v4, "did"
invoke-virtual {v3, v4}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v3
if-nez v3, :cond_32
const/4 v0, 0x0
goto :goto_b
:cond_32
new-instance v0, Lcom/fulishe/shadow/mediation/d/n;
invoke-direct {v0}, Lcom/fulishe/shadow/mediation/d/n;-><init>()V
invoke-interface {v1}, Lcom/fulishe/shadow/mediation/a/h;->a()J
move-result-wide v6
invoke-virtual {v0, v6, v7}, Lcom/fulishe/shadow/mediation/d/b;->a(J)V
invoke-virtual {v0, p0}, Lcom/fulishe/shadow/mediation/d/b;->a(Ljava/lang/String;)V
const-string v1, "onoff"
invoke-virtual {v3, v1}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;)Z
move-result v1
invoke-virtual {v0, v1}, Lcom/fulishe/shadow/mediation/d/b;->a(Z)V
const-string v1, "pid"
invoke-virtual {v3, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
invoke-static {}, Lcom/fulishe/shadow/base/o;->G()Lcom/fulishe/shadow/base/m;
move-result-object v1
const-string v6, "interval"
invoke-virtual {v3, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
invoke-interface {v1, v6}, Lcom/fulishe/shadow/base/m;->c(Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1}, Lcom/fulishe/shadow/mediation/d/b;->a(I)V
invoke-static {}, Lcom/fulishe/shadow/base/o;->G()Lcom/fulishe/shadow/base/m;
move-result-object v1
const-string v6, "ot"
invoke-virtual {v3, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
const-wide/16 v8, 0x0
invoke-interface {v1, v6, v8, v9}, Lcom/fulishe/shadow/base/m;->a(Ljava/lang/String;J)J
move-result-wide v6
invoke-virtual {v0, v6, v7}, Lcom/fulishe/shadow/mediation/d/b;->b(J)V
const-string v1, "plan"
invoke-virtual {v3, v1}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v3
invoke-virtual {v3}, Lorg/json/JSONArray;->length()I
move-result v6
const/4 v1, 0x0
:goto_7f
if-ge v1, v6, :cond_b
invoke-virtual {v3, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
move-result-object v7
const-string v8, "adtype"
invoke-virtual {v7, v8}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v8
invoke-interface {v2, p0, v8}, Lcom/fulishe/shadow/mediation/a/o;->a(Ljava/lang/String;Ljava/lang/String;)I
move-result v9
const/4 v10, -0x1
if-ne v9, v10, :cond_95
:goto_92
add-int/lit8 v1, v1, 0x1
goto :goto_7f
:cond_95
invoke-static {p1, v8}, Lcom/fulishe/shadow/mediation/d/o;->a(ILjava/lang/String;)I
move-result v8
new-instance v10, Lcom/fulishe/shadow/mediation/d/h;
invoke-direct {v10, v9, p1, v8}, Lcom/fulishe/shadow/mediation/d/h;-><init>(III)V
const-string v11, "appid"
invoke-virtual {v7, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v11
iput-object v11, v10, Lcom/fulishe/shadow/mediation/d/h;->f:Ljava/lang/String;
const-string v11, "tagid"
invoke-virtual {v7, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v11
iput-object v11, v10, Lcom/fulishe/shadow/mediation/d/h;->g:Ljava/lang/String;
const-string v11, "level"
invoke-virtual {v7, v11}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v11
const/4 v12, 0x1
if-ne v11, v12, :cond_fc
const/4 v11, 0x1
iput v11, v10, Lcom/fulishe/shadow/mediation/d/h;->k:I
:cond_ba
:goto_ba
const-string v11, "group"
invoke-virtual {v7, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v11
iput-object v11, v10, Lcom/fulishe/shadow/mediation/d/h;->l:Ljava/lang/String;
const-string v11, "numbers"
invoke-virtual {v7, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v11
invoke-static {v11}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;
move-result-object v11
invoke-virtual {v11}, Ljava/lang/Integer;->intValue()I
move-result v11
iput v11, v10, Lcom/fulishe/shadow/mediation/d/h;->d:I
const-string v11, "weights"
invoke-virtual {v7, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v7
invoke-static {v7}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;
move-result-object v7
invoke-virtual {v7}, Ljava/lang/Integer;->intValue()I
move-result v7
iput v7, v10, Lcom/fulishe/shadow/mediation/d/h;->e:I
invoke-static {}, Lcom/fulishe/shadow/mediation/c/b;->a()Lcom/fulishe/shadow/mediation/c/b;
move-result-object v7
invoke-virtual {v7}, Lcom/fulishe/shadow/mediation/c/b;->c()Lcom/fulishe/shadow/mediation/b/c;
move-result-object v7
invoke-interface {v7, p0, v9, p1, v8}, Lcom/fulishe/shadow/mediation/b/c;->a(Ljava/lang/String;III)Ljava/lang/String;
move-result-object v7
iput-object v7, v10, Lcom/fulishe/shadow/mediation/d/h;->h:Ljava/lang/String;
iput-object v4, v10, Lcom/fulishe/shadow/mediation/d/h;->i:Ljava/lang/String;
iput-object v5, v10, Lcom/fulishe/shadow/mediation/d/h;->j:Ljava/lang/String;
invoke-virtual {v0, v10}, Lcom/fulishe/shadow/mediation/d/b;->a(Lcom/fulishe/shadow/mediation/d/h;)V
goto :goto_92
:catch_f8
move-exception v0
const/4 v0, 0x0
goto/16 :goto_b
:cond_fc
const/4 v12, 0x2
if-ne v11, v12, :cond_103
const/4 v11, 0x2
iput v11, v10, Lcom/fulishe/shadow/mediation/d/h;->k:I
goto :goto_ba
:cond_103
const/4 v12, 0x3
if-ne v11, v12, :cond_ba
const/4 v11, 0x4
iput v11, v10, Lcom/fulishe/shadow/mediation/d/h;->k:I
:try_end_109
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_109} :catch_f8
goto :goto_ba
.end method