h.smali
.class Lcom/sandboxol/halloween/view/template/fragment/recharge/h;
.super Lcom/sandboxol/common/base/web/OnResponseListener;
.source "XmasCardViewModel.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/halloween/view/template/fragment/recharge/j;->a(Lcom/sandboxol/halloween/entity/RechargeItemInfo;)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<",
"Ljava/util/List<",
"Lcom/sandboxol/center/entity/AvatarFrameResponse;",
">;>;"
}
.end annotation
# instance fields
.field final synthetic a:Lcom/sandboxol/halloween/entity/RechargeItemInfo;
.field final synthetic b:Lcom/sandboxol/halloween/view/template/fragment/recharge/j;
# direct methods
.method constructor <init>(Lcom/sandboxol/halloween/view/template/fragment/recharge/j;Lcom/sandboxol/halloween/entity/RechargeItemInfo;)V
.registers 3
.line 1
iput-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/recharge/h;->b:Lcom/sandboxol/halloween/view/template/fragment/recharge/j;
iput-object p2, p0, Lcom/sandboxol/halloween/view/template/fragment/recharge/h;->a:Lcom/sandboxol/halloween/entity/RechargeItemInfo;
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 3
.line 1
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/recharge/h;->b:Lcom/sandboxol/halloween/view/template/fragment/recharge/j;
invoke-static {v0}, Lcom/sandboxol/halloween/view/template/fragment/recharge/j;->a(Lcom/sandboxol/halloween/view/template/fragment/recharge/j;)Landroid/content/Context;
move-result-object v0
invoke-static {v0, p1}, Lcom/sandboxol/common/web/error/ServerOnError;->showOnServerError(Landroid/content/Context;I)V
return-void
.end method
.method public bridge synthetic onSuccess(Ljava/lang/Object;)V
.registers 2
.line 1
check-cast p1, Ljava/util/List;
invoke-virtual {p0, p1}, Lcom/sandboxol/halloween/view/template/fragment/recharge/h;->onSuccess(Ljava/util/List;)V
return-void
.end method
.method public onSuccess(Ljava/util/List;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/sandboxol/center/entity/AvatarFrameResponse;",
">;)V"
}
.end annotation
.line 2
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object p1
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/recharge/h;->a:Lcom/sandboxol/halloween/entity/RechargeItemInfo;
invoke-virtual {v0}, Lcom/sandboxol/halloween/entity/RechargeItemInfo;->getResourceId()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0}, Lcom/sandboxol/center/entity/AccountCenter;->setAvatarFrame(Ljava/lang/String;)V
.line 3
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->putAccountInfo()V
.line 4
iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/recharge/h;->b:Lcom/sandboxol/halloween/view/template/fragment/recharge/j;
invoke-static {p1}, Lcom/sandboxol/halloween/view/template/fragment/recharge/j;->a(Lcom/sandboxol/halloween/view/template/fragment/recharge/j;)Landroid/content/Context;
move-result-object p1
sget v0, Lcom/sandboxol/halloween/R$string;->frame_updated:I
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/AppToastUtils;->showShortPositiveTipToast(Landroid/content/Context;I)V
return-void
.end method