PayApi.smali
.class public Lcom/sandboxol/googlepay/billing/PayApi;
.super Ljava/lang/Object;
.source "PayApi.java"
# static fields
.field private static final api:Lcom/sandboxol/googlepay/billing/IPayApi;
# direct methods
.method static constructor <clinit>()V
.registers 2
.line 1
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getApp()Lcom/sandboxol/common/base/app/BaseApplication;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/common/base/app/BaseApplication;->getMetaDataBaseUrl()Ljava/lang/String;
move-result-object v0
const-class v1, Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {v0, v1}, Lcom/sandboxol/common/retrofit/RetrofitFactory;->httpsCreate(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/sandboxol/googlepay/billing/IPayApi;
sput-object v0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
return-void
.end method
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic a(Landroid/content/Context;Lcom/sandboxol/common/base/web/HttpResponse;Lcom/sandboxol/common/base/web/HttpResponse;)Lcom/sandboxol/common/base/web/HttpResponse;
.registers 7
.line 2
invoke-virtual {p1}, Lcom/sandboxol/common/base/web/HttpResponse;->getData()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
.line 3
invoke-virtual {p2}, Lcom/sandboxol/common/base/web/HttpResponse;->getData()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/sandboxol/center/entity/DailyAdsTaskInfo;
if-eqz p2, :cond_38
if-eqz v0, :cond_38
.line 4
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;->newInstance()Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;
move-result-object v1
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;->newInstance()Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;
move-result-object v2
invoke-virtual {v2}, Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;->getAdsCount()I
move-result v2
const/4 v3, 0x5
invoke-virtual {v1, p0, v2, v3}, Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;->isShowIronAds(Landroid/content/Context;II)Z
move-result p0
if-eqz p0, :cond_38
const/4 p0, 0x0
.line 5
new-instance v1, Lcom/sandboxol/center/entity/ProductEntity;
invoke-virtual {p2}, Lcom/sandboxol/center/entity/DailyAdsTaskInfo;->getQuantity()I
move-result v2
const/4 v3, 0x1
invoke-virtual {p2}, Lcom/sandboxol/center/entity/DailyAdsTaskInfo;->getCurrency()I
move-result p2
invoke-direct {v1, v2, v3, p2}, Lcom/sandboxol/center/entity/ProductEntity;-><init>(IZI)V
invoke-interface {v0, p0, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V
.line 6
invoke-virtual {p1, v0}, Lcom/sandboxol/common/base/web/HttpResponse;->setData(Ljava/lang/Object;)V
:cond_38
return-object p1
.end method
.method static synthetic a(Landroid/content/Context;Lcom/sandboxol/common/base/web/HttpResponse;Lcom/sandboxol/common/base/web/HttpResponse;Lcom/sandboxol/common/base/web/HttpResponse;Lcom/sandboxol/common/base/web/HttpResponse;)Lcom/sandboxol/common/base/web/HttpResponse;
.registers 7
.line 7
invoke-static {}, Lcom/sandboxol/center/utils/VipDataManager;->getInstance()Lcom/sandboxol/center/utils/VipDataManager;
move-result-object v0
invoke-virtual {p3}, Lcom/sandboxol/common/base/web/HttpResponse;->getData()Ljava/lang/Object;
move-result-object p3
check-cast p3, Lcom/sandboxol/center/router/moduleInfo/pay/VipProductResponse;
invoke-virtual {v0, p3}, Lcom/sandboxol/center/utils/VipDataManager;->setVipProductResponse(Lcom/sandboxol/center/router/moduleInfo/pay/VipProductResponse;)V
.line 8
invoke-static {}, Lcom/sandboxol/center/utils/VipDataManager;->getInstance()Lcom/sandboxol/center/utils/VipDataManager;
move-result-object p3
invoke-virtual {p4}, Lcom/sandboxol/common/base/web/HttpResponse;->getData()Ljava/lang/Object;
move-result-object p4
check-cast p4, Lcom/sandboxol/center/entity/VipSubInfo;
invoke-virtual {p3, p4}, Lcom/sandboxol/center/utils/VipDataManager;->setVipSubInfo(Lcom/sandboxol/center/entity/VipSubInfo;)V
.line 9
invoke-virtual {p1}, Lcom/sandboxol/common/base/web/HttpResponse;->getData()Ljava/lang/Object;
move-result-object p3
check-cast p3, Ljava/util/List;
.line 10
invoke-virtual {p2}, Lcom/sandboxol/common/base/web/HttpResponse;->getData()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/sandboxol/center/entity/DailyAdsTaskInfo;
if-eqz p2, :cond_52
if-eqz p3, :cond_52
.line 11
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;->newInstance()Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;
move-result-object p4
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;->newInstance()Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;->getAdsCount()I
move-result v0
const/4 v1, 0x5
invoke-virtual {p4, p0, v0, v1}, Lcom/sandboxol/center/router/moduleInfo/ads/AdsChannelControllerWrap;->isShowIronAds(Landroid/content/Context;II)Z
move-result p0
if-eqz p0, :cond_52
const/4 p0, 0x0
.line 12
new-instance p4, Lcom/sandboxol/center/entity/ProductEntity;
invoke-virtual {p2}, Lcom/sandboxol/center/entity/DailyAdsTaskInfo;->getQuantity()I
move-result v0
const/4 v1, 0x1
invoke-virtual {p2}, Lcom/sandboxol/center/entity/DailyAdsTaskInfo;->getCurrency()I
move-result p2
invoke-direct {p4, v0, v1, p2}, Lcom/sandboxol/center/entity/ProductEntity;-><init>(IZI)V
invoke-interface {p3, p0, p4}, Ljava/util/List;->add(ILjava/lang/Object;)V
.line 13
invoke-virtual {p1, p3}, Lcom/sandboxol/common/base/web/HttpResponse;->setData(Ljava/lang/Object;)V
:cond_52
return-object p1
.end method
.method static synthetic a(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 14
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/PayApi;->rechargeHistory(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 20
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/PayApi;->getPayUserInfo(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/PayApi;->buySubs(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 3
.line 16
invoke-static {p0, p1, p2}, Lcom/sandboxol/googlepay/billing/PayApi;->rechargeGift(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 15
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/billing/PayApi;->firstTopUp(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 3
.line 18
invoke-static {p0, p1, p2}, Lcom/sandboxol/googlepay/billing/PayApi;->getProductInfo(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 17
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/PayApi;->putDisposableOrder(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 11
.line 19
invoke-static/range {p0 .. p10}, Lcom/sandboxol/googlepay/billing/PayApi;->getPUrl(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic b(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/PayApi;->buyVip(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic b(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 2
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/billing/PayApi;->getPaySignature(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic b(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 3
.line 4
invoke-static {p0, p1, p2}, Lcom/sandboxol/googlepay/billing/PayApi;->getThirdPayInfo(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 3
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/PayApi;->putSubOrder(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method public static buySubs(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;",
"Lcom/sandboxol/center/entity/StarCodeUser;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/BuyVipEntity;",
">;)V"
}
.end annotation
.line 1
new-instance v2, Lcom/sandboxol/googlepay/billing/w;
invoke-direct {v2, p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/w;-><init>(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v2}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v2
.line 2
instance-of v3, p0, Lcom/trello/rxlifecycle/a;
const-wide/16 v9, 0x1
const-string v5, ""
const-wide/16 v6, 0x0
if-eqz v3, :cond_55
.line 3
sget-object v3, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
if-eqz p2, :cond_1b
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getUserId()J
move-result-wide v6
:cond_1b
if-eqz p2, :cond_23
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getStarCode()Ljava/lang/String;
move-result-object v1
move-object v8, v1
goto :goto_24
:cond_23
move-object v8, v5
:goto_24
const-string v5, "free"
move-object v4, p1
invoke-interface/range {v3 .. v8}, Lcom/sandboxol/googlepay/billing/IPayApi;->buySubs(Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Ljava/lang/String;JLjava/lang/String;)Lrx/Observable;
move-result-object v1
move-object v0, p0
check-cast v0, Lcom/trello/rxlifecycle/a;
sget-object v3, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {v0, v3}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object v0
invoke-virtual {v1, v0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object v0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
.line 6
invoke-virtual {v0, v9, v10}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object v0
.line 7
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p3, v2}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 8
invoke-virtual {v0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_89
.line 9
:cond_55
sget-object v3, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
if-eqz p2, :cond_5d
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getUserId()J
move-result-wide v6
:cond_5d
if-eqz p2, :cond_65
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getStarCode()Ljava/lang/String;
move-result-object v0
move-object v8, v0
goto :goto_66
:cond_65
move-object v8, v5
:goto_66
const-string v5, "free"
move-object v4, p1
invoke-interface/range {v3 .. v8}, Lcom/sandboxol/googlepay/billing/IPayApi;->buySubs(Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Ljava/lang/String;JLjava/lang/String;)Lrx/Observable;
move-result-object v0
.line 10
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
.line 11
invoke-virtual {v0, v9, v10}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object v0
.line 12
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p3, v2}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 13
invoke-virtual {v0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_89
return-void
.end method
.method public static buyVip(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;",
"Lcom/sandboxol/center/entity/StarCodeUser;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/BuyVipEntity;",
">;)V"
}
.end annotation
.line 1
new-instance v2, Lcom/sandboxol/googlepay/billing/C;
invoke-direct {v2, p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/C;-><init>(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v2}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v2
.line 2
instance-of v3, p0, Lcom/trello/rxlifecycle/a;
const-wide/16 v9, 0x1
const-string v5, ""
const-wide/16 v6, 0x0
if-eqz v3, :cond_55
.line 3
sget-object v3, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
if-eqz p2, :cond_1b
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getUserId()J
move-result-wide v6
:cond_1b
if-eqz p2, :cond_23
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getStarCode()Ljava/lang/String;
move-result-object v1
move-object v8, v1
goto :goto_24
:cond_23
move-object v8, v5
:goto_24
const-string v5, "free"
move-object v4, p1
invoke-interface/range {v3 .. v8}, Lcom/sandboxol/googlepay/billing/IPayApi;->buyVip(Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Ljava/lang/String;JLjava/lang/String;)Lrx/Observable;
move-result-object v1
move-object v0, p0
check-cast v0, Lcom/trello/rxlifecycle/a;
sget-object v3, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {v0, v3}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object v0
invoke-virtual {v1, v0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object v0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
.line 6
invoke-virtual {v0, v9, v10}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object v0
.line 7
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p3, v2}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 8
invoke-virtual {v0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_89
.line 9
:cond_55
sget-object v3, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
if-eqz p2, :cond_5d
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getUserId()J
move-result-wide v6
:cond_5d
if-eqz p2, :cond_65
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getStarCode()Ljava/lang/String;
move-result-object v0
move-object v8, v0
goto :goto_66
:cond_65
move-object v8, v5
:goto_66
const-string v5, "free"
move-object v4, p1
invoke-interface/range {v3 .. v8}, Lcom/sandboxol/googlepay/billing/IPayApi;->buyVip(Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Ljava/lang/String;JLjava/lang/String;)Lrx/Observable;
move-result-object v0
.line 10
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
.line 11
invoke-virtual {v0, v9, v10}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object v0
.line 12
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p3, v2}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 13
invoke-virtual {v0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_89
return-void
.end method
.method public static buyVipExtend(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;",
"Lcom/sandboxol/center/entity/StarCodeUser;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/BuyVipEntity;",
">;)V"
}
.end annotation
.line 1
new-instance v2, Lcom/sandboxol/googlepay/billing/E;
invoke-direct {v2, p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/E;-><init>(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v2}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v2
.line 2
instance-of v3, p0, Lcom/trello/rxlifecycle/a;
const-wide/16 v9, 0x1
const-string v5, ""
const-wide/16 v6, 0x0
if-eqz v3, :cond_55
.line 3
sget-object v3, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
if-eqz p2, :cond_1b
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getUserId()J
move-result-wide v6
:cond_1b
if-eqz p2, :cond_23
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getStarCode()Ljava/lang/String;
move-result-object v1
move-object v8, v1
goto :goto_24
:cond_23
move-object v8, v5
:goto_24
const-string v5, "free"
move-object v4, p1
invoke-interface/range {v3 .. v8}, Lcom/sandboxol/googlepay/billing/IPayApi;->buyVipExtend(Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Ljava/lang/String;JLjava/lang/String;)Lrx/Observable;
move-result-object v1
move-object v0, p0
check-cast v0, Lcom/trello/rxlifecycle/a;
sget-object v3, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {v0, v3}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object v0
invoke-virtual {v1, v0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object v0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
.line 6
invoke-virtual {v0, v9, v10}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object v0
.line 7
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p3, v2}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 8
invoke-virtual {v0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_89
.line 9
:cond_55
sget-object v3, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
if-eqz p2, :cond_5d
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getUserId()J
move-result-wide v6
:cond_5d
if-eqz p2, :cond_65
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getStarCode()Ljava/lang/String;
move-result-object v0
move-object v8, v0
goto :goto_66
:cond_65
move-object v8, v5
:goto_66
const-string v5, "free"
move-object v4, p1
invoke-interface/range {v3 .. v8}, Lcom/sandboxol/googlepay/billing/IPayApi;->buyVipExtend(Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Ljava/lang/String;JLjava/lang/String;)Lrx/Observable;
move-result-object v0
.line 10
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
.line 11
invoke-virtual {v0, v9, v10}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object v0
.line 12
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p3, v2}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 13
invoke-virtual {v0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_89
return-void
.end method
.method static synthetic c(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/PayApi;->buyVipExtend(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic c(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 3
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/billing/PayApi;->isShowThirdPart(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic c(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 3
.line 2
invoke-static {p0, p1, p2}, Lcom/sandboxol/googlepay/billing/PayApi;->showThirdPartPayList(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic d(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/PayApi;->recharge(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic d(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 2
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/billing/PayApi;->productsList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic e(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 1
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/billing/PayApi;->productsListAndAds(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic f(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 1
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/billing/PayApi;->productsListAndAdsAndVipList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method public static firstTopUp(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/FirstTopUp;",
">;)V"
}
.end annotation
.line 1
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v0
iget-object v0, v0, Lcom/sandboxol/center/entity/AccountCenter;->login:Landroidx/databinding/ObservableField;
invoke-virtual {v0}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-eqz v0, :cond_70
.line 2
new-instance v0, Lcom/sandboxol/googlepay/billing/H;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/googlepay/billing/H;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 3
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_4e
.line 4
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v2
invoke-interface {v1, v2}, Lcom/sandboxol/googlepay/billing/IPayApi;->firstTopReward(Ljava/lang/String;)Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 5
invoke-interface {p0, v2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 7
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 8
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_70
.line 9
:cond_4e
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v1
invoke-interface {p0, v1}, Lcom/sandboxol/googlepay/billing/IPayApi;->firstTopReward(Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 11
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 12
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:cond_70
:goto_70
return-void
.end method
.method static synthetic g(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 1
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/billing/PayApi;->updateMoney(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method public static getCountry()Ljava/lang/String;
.registers 2
.line 1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x18
if-lt v0, v1, :cond_1c
.line 2
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
invoke-virtual {v0}, Landroid/content/res/Configuration;->getLocales()Landroid/os/LocaleList;
move-result-object v0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/os/LocaleList;->get(I)Ljava/util/Locale;
move-result-object v0
goto :goto_2a
.line 3
:cond_1c
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v0
iget-object v0, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
:goto_2a
if-eqz v0, :cond_3c
.line 4
invoke-virtual {v0}, Ljava/util/Locale;->getCountry()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_37
goto :goto_3c
.line 5
:cond_37
invoke-virtual {v0}, Ljava/util/Locale;->getCountry()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_3c
:goto_3c
const-string v0, "common"
return-object v0
.end method
.method public static getPUrl(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 27
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"JJ",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/googlepay/entity/PayUrl;",
">;)V"
}
.end annotation
move-object/from16 v12, p0
move-object/from16 v13, p10
.line 1
new-instance v14, Lcom/sandboxol/googlepay/entity/NewBuyParam;
invoke-direct {v14}, Lcom/sandboxol/googlepay/entity/NewBuyParam;-><init>()V
move-object/from16 v2, p1
.line 2
invoke-virtual {v14, v2}, Lcom/sandboxol/googlepay/entity/NewBuyParam;->setProvider(Ljava/lang/String;)V
move-object/from16 v3, p2
.line 3
invoke-virtual {v14, v3}, Lcom/sandboxol/googlepay/entity/NewBuyParam;->setCountry(Ljava/lang/String;)V
.line 4
invoke-virtual/range {p0 .. p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v0
invoke-virtual {v14, v0}, Lcom/sandboxol/googlepay/entity/NewBuyParam;->setPackageName(Ljava/lang/String;)V
move-object/from16 v4, p3
.line 5
invoke-virtual {v14, v4}, Lcom/sandboxol/googlepay/entity/NewBuyParam;->setPayChannel(Ljava/lang/String;)V
move-object/from16 v5, p4
.line 6
invoke-virtual {v14, v5}, Lcom/sandboxol/googlepay/entity/NewBuyParam;->setProductId(Ljava/lang/String;)V
move-object/from16 v6, p5
.line 7
invoke-virtual {v14, v6}, Lcom/sandboxol/googlepay/entity/NewBuyParam;->setStarCode(Ljava/lang/String;)V
move-wide/from16 v7, p6
.line 8
invoke-virtual {v14, v7, v8}, Lcom/sandboxol/googlepay/entity/NewBuyParam;->setStarUserId(J)V
move-wide/from16 v9, p8
.line 9
invoke-virtual {v14, v9, v10}, Lcom/sandboxol/googlepay/entity/NewBuyParam;->setTargetId(J)V
.line 10
new-instance v15, Lcom/sandboxol/googlepay/billing/A;
move-object v0, v15
move-object/from16 v1, p0
move-object/from16 v11, p10
invoke-direct/range {v0 .. v11}, Lcom/sandboxol/googlepay/billing/A;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJLcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {v13, v15}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 11
instance-of v1, v12, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_71
.line 12
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v1, v14}, Lcom/sandboxol/googlepay/billing/IPayApi;->getPUrl(Lcom/sandboxol/googlepay/entity/NewBuyParam;)Lrx/Observable;
move-result-object v1
move-object v2, v12
check-cast v2, Lcom/trello/rxlifecycle/a;
sget-object v3, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 13
invoke-interface {v2, v3}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object v2
invoke-virtual {v1, v2}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object v1
.line 14
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v2
invoke-virtual {v1, v2}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v1
.line 15
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v2
invoke-virtual {v1, v2}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v1
new-instance v2, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v2, v13, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 16
invoke-virtual {v1, v2}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_8f
.line 17
:cond_71
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v1, v14}, Lcom/sandboxol/googlepay/billing/IPayApi;->getPUrl(Lcom/sandboxol/googlepay/entity/NewBuyParam;)Lrx/Observable;
move-result-object v1
.line 18
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v2
invoke-virtual {v1, v2}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v1
.line 19
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v2
invoke-virtual {v1, v2}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v1
new-instance v2, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v2, v13, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 20
invoke-virtual {v1, v2}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_8f
return-void
.end method
.method public static getPaySignature(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/router/moduleInfo/pay/PaySignatureInfo;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/x;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/googlepay/billing/x;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_40
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v2
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getCountry()Ljava/lang/String;
move-result-object v3
invoke-interface {v1, v2, v3}, Lcom/sandboxol/googlepay/billing/IPayApi;->getPaySignature(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_66
.line 8
:cond_40
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v1
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getCountry()Ljava/lang/String;
move-result-object v2
invoke-interface {p0, v1, v2}, Lcom/sandboxol/googlepay/billing/IPayApi;->getPaySignature(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_66
return-void
.end method
.method public static getPayUserInfo(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"J",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/googlepay/entity/PayUserInfo;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/p;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/p;-><init>(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_38
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v1, p1, p2}, Lcom/sandboxol/googlepay/billing/IPayApi;->getPayUserInfo(J)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_56
.line 8
:cond_38
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {p0, p1, p2}, Lcom/sandboxol/googlepay/billing/IPayApi;->getPayUserInfo(J)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_56
return-void
.end method
.method public static getProductInfo(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/ProductInfo;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/y;
invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/googlepay/billing/y;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p2, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
const-wide/16 v2, 0x1
if-eqz v1, :cond_3e
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v1, p1}, Lcom/sandboxol/googlepay/billing/IPayApi;->getProductInfo(Ljava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v1, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v1}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-virtual {p0, v2, v3}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
.line 7
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p2, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 8
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_60
.line 9
:cond_3e
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {p0, p1}, Lcom/sandboxol/googlepay/billing/IPayApi;->getProductInfo(Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 11
invoke-virtual {p0, v2, v3}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
.line 12
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p2, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 13
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_60
return-void
.end method
.method public static getThirdPayInfo(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/googlepay/entity/BasePayInfo;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/F;
invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/googlepay/billing/F;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p2, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_38
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v1, p1}, Lcom/sandboxol/googlepay/billing/IPayApi;->getThirdPayInfo(Ljava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v1, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v1}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p2, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_56
.line 8
:cond_38
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {p0, p1}, Lcom/sandboxol/googlepay/billing/IPayApi;->getThirdPayInfo(Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p2, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_56
return-void
.end method
.method static synthetic h(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 1
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/billing/PayApi;->vipProductsList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic i(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 1
invoke-static {p0, p1}, Lcom/sandboxol/googlepay/billing/PayApi;->vipSubsProductsList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method public static isShowThirdPart(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/z;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/googlepay/billing/z;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_40
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v2
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getCountry()Ljava/lang/String;
move-result-object v3
invoke-interface {v1, v2, v3}, Lcom/sandboxol/googlepay/billing/IPayApi;->isShowThirdPart(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_66
.line 8
:cond_40
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v1
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getCountry()Ljava/lang/String;
move-result-object v2
invoke-interface {p0, v1, v2}, Lcom/sandboxol/googlepay/billing/IPayApi;->isShowThirdPart(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_66
return-void
.end method
.method public static productsList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Ljava/util/List<",
"Lcom/sandboxol/center/entity/ProductEntity;",
">;>;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/v;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/googlepay/billing/v;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
const-wide/16 v2, 0x1
const-string v4, "android"
const-string v5, "gcubes"
if-eqz v1, :cond_42
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v1, v5, v4}, Lcom/sandboxol/googlepay/billing/IPayApi;->productsList(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v4, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v4}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-virtual {p0, v2, v3}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
.line 7
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 8
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_64
.line 9
:cond_42
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {p0, v5, v4}, Lcom/sandboxol/googlepay/billing/IPayApi;->productsList(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 11
invoke-virtual {p0, v2, v3}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
.line 12
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 13
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_64
return-void
.end method
.method public static productsListAndAds(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Ljava/util/List<",
"Lcom/sandboxol/center/entity/ProductEntity;",
">;>;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/D;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/googlepay/billing/D;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
const-string v2, "gcubes"
const-string v3, "android"
invoke-interface {v1, v2, v3}, Lcom/sandboxol/googlepay/billing/IPayApi;->productsList(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object v1
.line 3
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v2
invoke-virtual {v1, v2}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v1
.line 4
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getApp()Lcom/sandboxol/common/base/app/BaseApplication;
move-result-object v2
invoke-virtual {v2}, Lcom/sandboxol/common/base/app/BaseApplication;->getMetaDataBaseUrl()Ljava/lang/String;
move-result-object v2
const-class v3, Lcom/sandboxol/center/web/IUserApi;
invoke-static {v2, v3}, Lcom/sandboxol/common/retrofit/RetrofitFactory;->httpsCreate(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/sandboxol/center/web/IUserApi;
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v3
iget-object v3, v3, Lcom/sandboxol/center/entity/AccountCenter;->userId:Landroidx/databinding/ObservableField;
invoke-virtual {v3}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Long;
invoke-virtual {v3}, Ljava/lang/Long;->longValue()J
move-result-wide v3
invoke-interface {v2, v3, v4}, Lcom/sandboxol/center/web/IUserApi;->getAdsRewardInfo(J)Lrx/Observable;
move-result-object v2
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v3
invoke-virtual {v2, v3}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v2
new-instance v3, Lcom/sandboxol/googlepay/billing/n;
invoke-direct {v3, p0}, Lcom/sandboxol/googlepay/billing/n;-><init>(Landroid/content/Context;)V
.line 6
invoke-static {v1, v2, v3}, Lrx/Observable;->zip(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 7
invoke-interface {p0, v2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 8
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 9
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static productsListAndAdsAndVipList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Ljava/util/List<",
"Lcom/sandboxol/center/entity/ProductEntity;",
">;>;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/s;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/googlepay/billing/s;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
const-string v2, "android"
const-string v3, "gcubes"
invoke-interface {v1, v3, v2}, Lcom/sandboxol/googlepay/billing/IPayApi;->productsList(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object v1
.line 3
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v3
invoke-virtual {v1, v3}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v1
.line 4
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getApp()Lcom/sandboxol/common/base/app/BaseApplication;
move-result-object v3
invoke-virtual {v3}, Lcom/sandboxol/common/base/app/BaseApplication;->getMetaDataBaseUrl()Ljava/lang/String;
move-result-object v3
const-class v4, Lcom/sandboxol/center/web/IUserApi;
invoke-static {v3, v4}, Lcom/sandboxol/common/retrofit/RetrofitFactory;->httpsCreate(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/sandboxol/center/web/IUserApi;
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v4
iget-object v4, v4, Lcom/sandboxol/center/entity/AccountCenter;->userId:Landroidx/databinding/ObservableField;
invoke-virtual {v4}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Long;
invoke-virtual {v4}, Ljava/lang/Long;->longValue()J
move-result-wide v4
invoke-interface {v3, v4, v5}, Lcom/sandboxol/center/web/IUserApi;->getAdsRewardInfo(J)Lrx/Observable;
move-result-object v3
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v4
invoke-virtual {v3, v4}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v3
sget-object v4, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
.line 6
invoke-interface {v4, v2}, Lcom/sandboxol/googlepay/billing/IPayApi;->vipSubsProductsList(Ljava/lang/String;)Lrx/Observable;
move-result-object v4
.line 7
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v5
invoke-virtual {v4, v5}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v4
.line 8
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getApp()Lcom/sandboxol/common/base/app/BaseApplication;
move-result-object v5
invoke-virtual {v5}, Lcom/sandboxol/common/base/app/BaseApplication;->getMetaDataBaseUrl()Ljava/lang/String;
move-result-object v5
const-class v6, Lcom/sandboxol/center/web/IVipApi;
invoke-static {v5, v6}, Lcom/sandboxol/common/retrofit/RetrofitFactory;->httpsCreate(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/sandboxol/center/web/IVipApi;
invoke-interface {v5, v2}, Lcom/sandboxol/center/web/IVipApi;->getSubscribeInfo(Ljava/lang/String;)Lrx/Observable;
move-result-object v2
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v5
invoke-virtual {v2, v5}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v2
new-instance v5, Lcom/sandboxol/googlepay/billing/u;
invoke-direct {v5, p0}, Lcom/sandboxol/googlepay/billing/u;-><init>(Landroid/content/Context;)V
.line 10
invoke-static {v1, v3, v4, v2, v5}, Lrx/Observable;->zip(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func4;)Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 11
invoke-interface {p0, v2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 12
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 13
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static putDisposableOrder(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/m;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/m;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
const-wide/16 v2, 0x1
if-eqz v1, :cond_3e
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v1, p1, p2}, Lcom/sandboxol/googlepay/billing/IPayApi;->putDisposableOrder(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-virtual {p0, v2, v3}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
.line 7
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 8
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_60
.line 9
:cond_3e
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {p0, p1, p2}, Lcom/sandboxol/googlepay/billing/IPayApi;->putDisposableOrder(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 11
invoke-virtual {p0, v2, v3}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
.line 12
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 13
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_60
return-void
.end method
.method public static putSubOrder(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/I;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/I;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
const-wide/16 v2, 0x1
if-eqz v1, :cond_3e
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v1, p1, p2}, Lcom/sandboxol/googlepay/billing/IPayApi;->putSubOrder(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-virtual {p0, v2, v3}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
.line 7
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 8
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_60
.line 9
:cond_3e
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {p0, p1, p2}, Lcom/sandboxol/googlepay/billing/IPayApi;->putSubOrder(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 11
invoke-virtual {p0, v2, v3}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
.line 12
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 13
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_60
return-void
.end method
.method public static recharge(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;",
"Lcom/sandboxol/center/entity/StarCodeUser;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/RechargeEntity;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/r;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/r;-><init>(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/center/entity/StarCodeUser;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
const-wide/16 v2, 0x1
if-eqz v1, :cond_4d
.line 3
sget-object v4, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v7
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getUserId()J
move-result-wide v8
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getStarCode()Ljava/lang/String;
move-result-object v10
const-string v6, "free"
move-object v5, p1
invoke-interface/range {v4 .. v10}, Lcom/sandboxol/googlepay/billing/IPayApi;->recharge(Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-virtual {p0, v2, v3}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
.line 7
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 8
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_7e
.line 9
:cond_4d
sget-object v4, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v7
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getUserId()J
move-result-wide v8
invoke-virtual {p2}, Lcom/sandboxol/center/entity/StarCodeUser;->getStarCode()Ljava/lang/String;
move-result-object v10
const-string v6, "free"
move-object v5, p1
invoke-interface/range {v4 .. v10}, Lcom/sandboxol/googlepay/billing/IPayApi;->recharge(Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 11
invoke-virtual {p0, v2, v3}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
.line 12
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 13
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_7e
return-void
.end method
.method public static rechargeGift(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/RechargeEntity;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/J;
invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/googlepay/billing/J;-><init>(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p2, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_40
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/center/router/moduleApplication/BaseModuleApp;->getMetaDataPackageName()Ljava/lang/String;
move-result-object v2
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v3
invoke-interface {v1, p1, v2, v3}, Lcom/sandboxol/googlepay/billing/IPayApi;->recharge(Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v1, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v1}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p2, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_66
.line 8
:cond_40
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/center/router/moduleApplication/BaseModuleApp;->getMetaDataPackageName()Ljava/lang/String;
move-result-object v1
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v2
invoke-interface {p0, p1, v1, v2}, Lcom/sandboxol/googlepay/billing/IPayApi;->recharge(Lcom/sandboxol/center/router/moduleInfo/pay/BuyParam;Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p2, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_66
return-void
.end method
.method public static rechargeHistory(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"II",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/common/widget/rv/pagerv/PageData<",
"Lcom/sandboxol/center/router/moduleInfo/pay/PayRecordInfo;",
">;>;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/G;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/googlepay/billing/G;-><init>(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_48
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v2
iget-object v2, v2, Lcom/sandboxol/center/entity/AccountCenter;->userId:Landroidx/databinding/ObservableField;
invoke-virtual {v2}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Long;
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
move-result-wide v2
invoke-interface {v1, v2, v3, p1, p2}, Lcom/sandboxol/googlepay/billing/IPayApi;->rechargeHistory(JII)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_76
.line 8
:cond_48
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v1
iget-object v1, v1, Lcom/sandboxol/center/entity/AccountCenter;->userId:Landroidx/databinding/ObservableField;
invoke-virtual {v1}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Long;
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
move-result-wide v1
invoke-interface {p0, v1, v2, p1, p2}, Lcom/sandboxol/googlepay/billing/IPayApi;->rechargeHistory(JII)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_76
return-void
.end method
.method public static showThirdPartPayList(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/router/moduleInfo/pay/ThirdPayResponse;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/q;
invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/googlepay/billing/q;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p2, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_3c
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getCountry()Ljava/lang/String;
move-result-object v2
invoke-interface {v1, v2, p1}, Lcom/sandboxol/googlepay/billing/IPayApi;->showThirdPartPayList(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v1, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v1}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p2, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_5e
.line 8
:cond_3c
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getCountry()Ljava/lang/String;
move-result-object v1
invoke-interface {p0, v1, p1}, Lcom/sandboxol/googlepay/billing/IPayApi;->showThirdPartPayList(Ljava/lang/String;Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p2, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_5e
return-void
.end method
.method public static updateMoney(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/RechargeEntity;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/t;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/googlepay/billing/t;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object p0
.line 2
sget-object v0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v0}, Lcom/sandboxol/googlepay/billing/IPayApi;->updateMoney()Lrx/Observable;
move-result-object v0
.line 3
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
.line 4
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, p0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 5
invoke-virtual {v0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static vipProductsList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/router/moduleInfo/pay/VipProductResponse;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/B;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/googlepay/billing/B;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_38
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v1}, Lcom/sandboxol/googlepay/billing/IPayApi;->vipProductsList()Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_56
.line 8
:cond_38
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {p0}, Lcom/sandboxol/googlepay/billing/IPayApi;->vipProductsList()Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_56
return-void
.end method
.method public static vipSubsProductsList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/router/moduleInfo/pay/VipProductResponse;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/googlepay/billing/o;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/googlepay/billing/o;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
const-string v2, "android"
if-eqz v1, :cond_3a
.line 3
sget-object v1, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {v1, v2}, Lcom/sandboxol/googlepay/billing/IPayApi;->vipSubsProductsList(Ljava/lang/String;)Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_58
.line 8
:cond_3a
sget-object p0, Lcom/sandboxol/googlepay/billing/PayApi;->api:Lcom/sandboxol/googlepay/billing/IPayApi;
invoke-interface {p0, v2}, Lcom/sandboxol/googlepay/billing/IPayApi;->vipSubsProductsList(Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_58
return-void
.end method