t.smali
.class public Lcom/sandboxol/googlepay/view/fragment/newrecharge/t;
.super Ljava/lang/Object;
.source "NewRechargeModel.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/sandboxol/googlepay/view/fragment/newrecharge/t$a;
}
.end annotation
# direct methods
.method private static a(Ljava/util/List;D)Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;",
">;D)",
"Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;"
}
.end annotation
if-eqz p0, :cond_23
.line 24
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_23
.line 25
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_c
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_23
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;
if-eqz v0, :cond_c
.line 26
invoke-virtual {v0}, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;->getPrice()D
move-result-wide v1
cmpl-double v3, v1, p1
if-nez v3, :cond_c
return-object v0
:cond_23
const/4 p0, 0x0
return-object p0
.end method
.method private static a(Ljava/lang/String;)Ljava/lang/String;
.registers 6
.line 10
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
move-result v0
const/4 v1, 0x4
const/4 v2, 0x3
const/4 v3, 0x2
const/4 v4, 0x1
sparse-switch v0, :sswitch_data_66
goto :goto_48
:sswitch_c
const-string v0, "and.gcubes.50"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_48
const/4 p0, 0x3
goto :goto_49
:sswitch_16
const-string v0, "and.gcubes.25"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_48
const/4 p0, 0x2
goto :goto_49
:sswitch_20
const-string v0, "and.gcubes.10"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_48
const/4 p0, 0x1
goto :goto_49
:sswitch_2a
const-string v0, "and.gcubes.5"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_48
const/4 p0, 0x0
goto :goto_49
:sswitch_34
const-string v0, "and.gcubes.1"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_48
const/4 p0, 0x6
goto :goto_49
:sswitch_3e
const-string v0, "and.gcubes.100"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_48
const/4 p0, 0x4
goto :goto_49
:cond_48
:goto_48
const/4 p0, -0x1
:goto_49
if-eqz p0, :cond_62
if-eq p0, v4, :cond_5f
if-eq p0, v3, :cond_5c
if-eq p0, v2, :cond_59
if-eq p0, v1, :cond_56
const-string p0, "ic_diamond_111"
return-object p0
:cond_56
const-string p0, "ic_diamond_116"
return-object p0
:cond_59
const-string p0, "ic_diamond_115"
return-object p0
:cond_5c
const-string p0, "ic_diamond_114"
return-object p0
:cond_5f
const-string p0, "ic_diamond_113"
return-object p0
:cond_62
const-string p0, "ic_diamond_112"
return-object p0
nop
:sswitch_data_66
.sparse-switch
-0x1f59c92f -> :sswitch_3e
0x36e3111 -> :sswitch_34
0x36e3115 -> :sswitch_2a
0x6a57f13f -> :sswitch_20
0x6a57f163 -> :sswitch_16
0x6a57f1bb -> :sswitch_c
.end sparse-switch
.end method
.method private static a()Ljava/util/List;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;",
">;"
}
.end annotation
.line 11
invoke-static {}, Lcom/sandboxol/center/entity/AppInfoCenter;->newInstance()Lcom/sandboxol/center/entity/AppInfoCenter;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/center/entity/AppInfoCenter;->getAppConfig()Lcom/sandboxol/center/entity/AppConfig;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/center/entity/AppConfig;->getVipList()Ljava/util/List;
move-result-object v0
if-eqz v0, :cond_5e
.line 12
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v1
if-lez v1, :cond_5e
.line 13
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.line 14
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1d
:goto_1d
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_41
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
.line 15
invoke-static {v2}, Lcom/sandboxol/center/router/manager/VipManager;->getSubscribeStatus(I)Z
move-result v3
invoke-static {v3, v2}, Lcom/sandboxol/center/router/manager/VipManager;->getProductEntityByVipType(ZI)Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;
move-result-object v2
if-eqz v2, :cond_1d
.line 16
invoke-virtual {v2}, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;->getLevel()I
move-result v3
if-eqz v3, :cond_1d
.line 17
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1d
.line 18
:cond_41
:try_start_41
new-instance v0, Lcom/google/gson/j;
invoke-direct {v0}, Lcom/google/gson/j;-><init>()V
.line 19
invoke-virtual {v0, v1}, Lcom/google/gson/j;->a(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
.line 20
new-instance v2, Lcom/sandboxol/googlepay/view/fragment/newrecharge/r;
invoke-direct {v2}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/r;-><init>()V
.line 21
invoke-virtual {v2}, Lcom/google/gson/reflect/TypeToken;->getType()Ljava/lang/reflect/Type;
move-result-object v2
.line 22
invoke-virtual {v0, v1, v2}, Lcom/google/gson/j;->a(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
:try_end_59
.catch Ljava/lang/Exception; {:try_start_41 .. :try_end_59} :catch_5a
goto :goto_5f
:catch_5a
move-exception v0
.line 23
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
:cond_5e
const/4 v0, 0x0
:goto_5f
return-object v0
.end method
.method private static a(Landroid/content/Context;)Ljava/util/List;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Ljava/util/List<",
"Lcom/sandboxol/googlepay/entity/RechargeInfo;",
">;"
}
.end annotation
const-string v0, "backup.diamond.vip.sub.info"
const/4 v1, 0x0
.line 27
invoke-static {p0, v0, v1}, Lcom/sandboxol/common/utils/SharedUtils;->getString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
if-eqz p0, :cond_24
.line 28
:try_start_9
new-instance v0, Lcom/google/gson/j;
invoke-direct {v0}, Lcom/google/gson/j;-><init>()V
.line 29
new-instance v1, Lcom/sandboxol/googlepay/view/fragment/newrecharge/s;
invoke-direct {v1}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/s;-><init>()V
.line 30
invoke-virtual {v1}, Lcom/google/gson/reflect/TypeToken;->getType()Ljava/lang/reflect/Type;
move-result-object v1
.line 31
invoke-virtual {v0, p0, v1}, Lcom/google/gson/j;->a(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/util/List;
:try_end_1d
.catch Ljava/lang/Exception; {:try_start_9 .. :try_end_1d} :catch_1e
return-object p0
.line 32
:catch_1e
new-instance p0, Ljava/util/ArrayList;
invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V
return-object p0
.line 33
:cond_24
new-instance p0, Ljava/util/ArrayList;
invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V
return-object p0
.end method
.method static synthetic a(Landroid/content/Context;Ljava/util/List;)V
.registers 2
.line 2
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/t;->b(Landroid/content/Context;Ljava/util/List;)V
return-void
.end method
.method public static a(Landroid/content/Context;Ljava/util/List;Lcom/sandboxol/googlepay/view/fragment/newrecharge/t$a;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/util/List<",
"Lcom/sandboxol/googlepay/entity/RechargeInfo;",
">;",
"Lcom/sandboxol/googlepay/view/fragment/newrecharge/t$a;",
")V"
}
.end annotation
.line 3
invoke-static {p0}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/t;->a(Landroid/content/Context;)Ljava/util/List;
move-result-object v0
.line 4
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_32
const/4 v1, 0x0
.line 5
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/sandboxol/googlepay/entity/RechargeInfo;
invoke-virtual {v2}, Lcom/sandboxol/googlepay/entity/RechargeInfo;->isFree()Z
move-result v2
if-eqz v2, :cond_22
const/4 v2, 0x2
const/4 v3, 0x5
invoke-static {p0, v2, v3}, Lcom/sandboxol/center/router/manager/AdsManager;->isShowIronAds(Landroid/content/Context;II)Z
move-result v2
if-eqz v2, :cond_22
.line 6
invoke-interface {v0, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
.line 7
:cond_22
invoke-interface {p2, v0}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/t$a;->a(Ljava/util/List;)V
.line 8
invoke-static {}, Lcom/sandboxol/center/router/manager/BillingManager;->getInstance()Lcom/sandboxol/center/router/manager/BillingManager;
move-result-object p2
new-instance v0, Lcom/sandboxol/googlepay/view/fragment/newrecharge/p;
invoke-direct {v0, p1, p0}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/p;-><init>(Ljava/util/List;Landroid/content/Context;)V
invoke-virtual {p2, p0, v0}, Lcom/sandboxol/center/router/manager/BillingManager;->productsListAndAdsAndVipList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
goto :goto_3e
.line 9
:cond_32
invoke-static {}, Lcom/sandboxol/center/router/manager/BillingManager;->getInstance()Lcom/sandboxol/center/router/manager/BillingManager;
move-result-object v0
new-instance v1, Lcom/sandboxol/googlepay/view/fragment/newrecharge/q;
invoke-direct {v1, p1, p0, p2}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/q;-><init>(Ljava/util/List;Landroid/content/Context;Lcom/sandboxol/googlepay/view/fragment/newrecharge/t$a;)V
invoke-virtual {v0, p0, v1}, Lcom/sandboxol/center/router/manager/BillingManager;->productsListAndAdsAndVipList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
:goto_3e
return-void
.end method
.method static synthetic a(Ljava/util/List;Ljava/util/List;)V
.registers 2
.line 1
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/t;->b(Ljava/util/List;Ljava/util/List;)V
return-void
.end method
.method private static b(Landroid/content/Context;Ljava/util/List;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/util/List<",
"Lcom/sandboxol/googlepay/entity/RechargeInfo;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/google/gson/j;
invoke-direct {v0}, Lcom/google/gson/j;-><init>()V
invoke-virtual {v0, p1}, Lcom/google/gson/j;->a(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string v0, "backup.diamond.vip.sub.info"
invoke-static {p0, v0, p1}, Lcom/sandboxol/common/utils/SharedUtils;->putString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method private static b(Ljava/util/List;Ljava/util/List;)V
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/sandboxol/center/entity/ProductEntity;",
">;",
"Ljava/util/List<",
"Lcom/sandboxol/googlepay/entity/RechargeInfo;",
">;)V"
}
.end annotation
.line 2
invoke-interface {p1}, Ljava/util/List;->clear()V
const/4 v0, 0x0
const/4 v1, 0x0
.line 3
:goto_5
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v2
if-ge v1, v2, :cond_4f
.line 4
new-instance v2, Lcom/sandboxol/googlepay/entity/RechargeInfo;
invoke-direct {v2}, Lcom/sandboxol/googlepay/entity/RechargeInfo;-><init>()V
.line 5
invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/sandboxol/center/entity/ProductEntity;
invoke-virtual {v3}, Lcom/sandboxol/center/entity/ProductEntity;->isFree()Z
move-result v3
if-nez v3, :cond_33
.line 6
invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/sandboxol/center/entity/ProductEntity;
invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/sandboxol/center/entity/ProductEntity;
invoke-virtual {v4}, Lcom/sandboxol/center/entity/ProductEntity;->getProductId()Ljava/lang/String;
move-result-object v4
invoke-static {v4}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/t;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Lcom/sandboxol/center/entity/ProductEntity;->setResourcePic(Ljava/lang/String;)V
.line 7
:cond_33
invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/sandboxol/center/entity/ProductEntity;
invoke-virtual {v3}, Lcom/sandboxol/center/entity/ProductEntity;->isFree()Z
move-result v3
invoke-virtual {v2, v3}, Lcom/sandboxol/googlepay/entity/RechargeInfo;->setFree(Z)V
.line 8
invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/sandboxol/center/entity/ProductEntity;
invoke-virtual {v2, v3}, Lcom/sandboxol/googlepay/entity/RechargeInfo;->setProductEntity(Lcom/sandboxol/center/entity/ProductEntity;)V
.line 9
invoke-interface {p1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
add-int/lit8 v1, v1, 0x1
goto :goto_5
.line 10
:cond_4f
invoke-static {}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/t;->a()Ljava/util/List;
move-result-object v1
.line 11
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v2
:goto_57
if-ge v0, v2, :cond_ce
.line 12
new-instance v3, Lcom/sandboxol/googlepay/entity/RechargeInfo;
invoke-direct {v3}, Lcom/sandboxol/googlepay/entity/RechargeInfo;-><init>()V
.line 13
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/sandboxol/center/entity/ProductEntity;
invoke-virtual {v4}, Lcom/sandboxol/center/entity/ProductEntity;->getPrice()D
move-result-wide v4
invoke-static {v1, v4, v5}, Lcom/sandboxol/googlepay/view/fragment/newrecharge/t;->a(Ljava/util/List;D)Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;
move-result-object v4
if-eqz v4, :cond_cb
.line 14
invoke-virtual {v4}, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;->getType()Ljava/lang/String;
move-result-object v5
invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v5
if-nez v5, :cond_cb
invoke-virtual {v4}, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;->getType()Ljava/lang/String;
move-result-object v5
const-string v6, "sub"
invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_cb
.line 15
invoke-virtual {v4}, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;->getLevel()I
move-result v5
const/4 v6, 0x1
if-eq v5, v6, :cond_a7
const/4 v7, 0x2
if-eq v5, v7, :cond_a1
const/4 v7, 0x3
if-eq v5, v7, :cond_9b
const/4 v7, 0x4
if-eq v5, v7, :cond_95
goto :goto_ac
:cond_95
const-string v5, "googlepay_ic_mvp_plus"
.line 16
invoke-virtual {v4, v5}, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;->setResPic(Ljava/lang/String;)V
goto :goto_ac
:cond_9b
const-string v5, "googlepay_ic_mvp"
.line 17
invoke-virtual {v4, v5}, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;->setResPic(Ljava/lang/String;)V
goto :goto_ac
:cond_a1
const-string v5, "googlepay_ic_vip_plus"
.line 18
invoke-virtual {v4, v5}, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;->setResPic(Ljava/lang/String;)V
goto :goto_ac
:cond_a7
const-string v5, "googlepay_ic_vip"
.line 19
invoke-virtual {v4, v5}, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;->setResPic(Ljava/lang/String;)V
.line 20
:goto_ac
invoke-virtual {v3, v4}, Lcom/sandboxol/googlepay/entity/RechargeInfo;->setVipProductEntity(Lcom/sandboxol/center/router/moduleInfo/pay/VipProductEntity;)V
.line 21
invoke-virtual {v3, v6}, Lcom/sandboxol/googlepay/entity/RechargeInfo;->setVip(Z)V
.line 22
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/sandboxol/center/entity/ProductEntity;
invoke-virtual {v4}, Lcom/sandboxol/center/entity/ProductEntity;->isFree()Z
move-result v4
invoke-virtual {v3, v4}, Lcom/sandboxol/googlepay/entity/RechargeInfo;->setFree(Z)V
.line 23
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/sandboxol/center/entity/ProductEntity;
invoke-virtual {v3, v4}, Lcom/sandboxol/googlepay/entity/RechargeInfo;->setProductEntity(Lcom/sandboxol/center/entity/ProductEntity;)V
.line 24
invoke-interface {p1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_cb
add-int/lit8 v0, v0, 0x1
goto :goto_57
:cond_ce
return-void
.end method