BasePayService$4.smali
.class Lcom/sandboxol/googlepay/billing/BasePayService$4;
.super Lcom/sandboxol/common/base/web/OnResponseListener;
.source "BasePayService.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/googlepay/billing/BasePayService;->updateVipInfo(Landroid/content/Context;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/VipSubInfo;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/sandboxol/googlepay/billing/BasePayService;
# direct methods
.method constructor <init>(Lcom/sandboxol/googlepay/billing/BasePayService;)V
.registers 2
.line 1
iput-object p1, p0, Lcom/sandboxol/googlepay/billing/BasePayService$4;->this$0:Lcom/sandboxol/googlepay/billing/BasePayService;
invoke-direct {p0}, Lcom/sandboxol/common/base/web/OnResponseListener;-><init>()V
return-void
.end method
# virtual methods
.method public onError(ILjava/lang/String;)V
.registers 3
return-void
.end method
.method public onServerError(I)V
.registers 2
return-void
.end method
.method public onSuccess(Lcom/sandboxol/center/entity/VipSubInfo;)V
.registers 3
.line 2
invoke-static {}, Lcom/sandboxol/center/utils/VipDataManager;->getInstance()Lcom/sandboxol/center/utils/VipDataManager;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/sandboxol/center/utils/VipDataManager;->setVipSubInfo(Lcom/sandboxol/center/entity/VipSubInfo;)V
if-eqz p1, :cond_27
.line 3
invoke-virtual {p1}, Lcom/sandboxol/center/entity/VipSubInfo;->getPlayerInfo()Lcom/sandboxol/center/entity/PlayerInfo;
move-result-object v0
if-eqz v0, :cond_27
.line 4
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;->vip:Landroidx/databinding/ObservableField;
invoke-virtual {p1}, Lcom/sandboxol/center/entity/VipSubInfo;->getPlayerInfo()Lcom/sandboxol/center/entity/PlayerInfo;
move-result-object p1
invoke-virtual {p1}, Lcom/sandboxol/center/entity/PlayerInfo;->getVip()I
move-result p1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-virtual {v0, p1}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
.line 5
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->putAccountInfo()V
:cond_27
return-void
.end method
.method public bridge synthetic onSuccess(Ljava/lang/Object;)V
.registers 2
.line 1
check-cast p1, Lcom/sandboxol/center/entity/VipSubInfo;
invoke-virtual {p0, p1}, Lcom/sandboxol/googlepay/billing/BasePayService$4;->onSuccess(Lcom/sandboxol/center/entity/VipSubInfo;)V
return-void
.end method