f.smali
.class public final Lcom/cmcm/safewallet/ui/giftcard/f;
.super Lcom/cmcm/safewallet/ui/base/c/a;
.source "GiftCardRedeemPresent.kt"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/cmcm/safewallet/ui/base/c/a",
"<",
"Lcom/cmcm/safewallet/ui/giftcard/e;",
">;"
}
.end annotation
# instance fields
.field afl:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<+",
"Lcom/cmcm/safewallet/ui/exchange/data/b;",
">;"
}
.end annotation
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
.param p1 # Landroid/content/Context;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.prologue
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/e;->f(Ljava/lang/Object;Ljava/lang/String;)V
.line 32
invoke-direct {p0, p1}, Lcom/cmcm/safewallet/ui/base/c/a;-><init>(Landroid/content/Context;)V
return-void
.end method
.method public static Q(II)V
.registers 3
.prologue
const/16 v0, 0x63
.line 163
invoke-static {v0, v0, p0, p1}, Lcom/cmcm/safewallet/data/f/c/a;->g(IIII)V
.line 164
invoke-static {}, Lcom/cmcm/safewallet/data/f/b/b;->lr()Lcom/cmcm/safewallet/data/f/b/b;
invoke-static {v0, v0, p0, p1}, Lcom/cmcm/safewallet/data/f/b/b;->g(IIII)V
.line 165
return-void
.end method
# virtual methods
.method public final a(Ljava/lang/String;Lcom/cmcm/safewallet/ui/exchange/data/b;)V
.registers 10
.param p1 # Ljava/lang/String;
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
.end param
.param p2 # Lcom/cmcm/safewallet/ui/exchange/data/b;
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
.end param
.prologue
const v6, 0x7f080133
const/4 v2, 0x0
const/4 v3, 0x1
.line 37
invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/giftcard/f;->getActivity()Landroid/app/Activity;
move-result-object v0
check-cast v0, Landroid/content/Context;
invoke-static {v0}, Lcom/cmcm/safewallet/utils/ab;->al(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_24
.line 38
invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/giftcard/f;->mM()Lcom/cmcm/safewallet/ui/base/view/c;
move-result-object v0
check-cast v0, Lcom/cmcm/safewallet/ui/giftcard/e;
if-eqz v0, :cond_23
const v1, 0x7f08027a
invoke-virtual {p0, v1}, Lcom/cmcm/safewallet/ui/giftcard/f;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-interface {v0, v1}, Lcom/cmcm/safewallet/ui/giftcard/e;->cE(Ljava/lang/String;)V
.line 109
:cond_23
:goto_23
return-void
.line 41
:cond_24
if-eqz p1, :cond_4a
.line 44
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
const/16 v1, 0x14
if-ge v0, v1, :cond_68
move v0, v3
.line 47
:goto_2f
if-eqz v0, :cond_6e
invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/giftcard/f;->mM()Lcom/cmcm/safewallet/ui/base/view/c;
move-result-object v0
check-cast v0, Lcom/cmcm/safewallet/ui/giftcard/e;
if-eqz v0, :cond_6c
invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/giftcard/f;->getActivity()Landroid/app/Activity;
move-result-object v1
if-eqz v1, :cond_6a
invoke-virtual {v1, v6}, Landroid/app/Activity;->getString(I)Ljava/lang/String;
move-result-object v1
:goto_43
invoke-interface {v0, v1}, Lcom/cmcm/safewallet/ui/giftcard/e;->cE(Ljava/lang/String;)V
sget-object v0, Lkotlin/e;->bUd:Lkotlin/e;
.line 41
:goto_48
if-nez v0, :cond_23
.line 104
:cond_4a
check-cast p0, Lcom/cmcm/safewallet/ui/giftcard/f;
.line 105
invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/giftcard/f;->mM()Lcom/cmcm/safewallet/ui/base/view/c;
move-result-object v0
check-cast v0, Lcom/cmcm/safewallet/ui/giftcard/e;
if-eqz v0, :cond_61
invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/giftcard/f;->getActivity()Landroid/app/Activity;
move-result-object v1
if-eqz v1, :cond_5e
invoke-virtual {v1, v6}, Landroid/app/Activity;->getString(I)Ljava/lang/String;
move-result-object v2
:cond_5e
invoke-interface {v0, v2}, Lcom/cmcm/safewallet/ui/giftcard/e;->cE(Ljava/lang/String;)V
.line 107
:cond_61
const/4 v0, 0x2
invoke-static {v0, v3}, Lcom/cmcm/safewallet/ui/giftcard/f;->Q(II)V
.line 108
sget-object v0, Lkotlin/e;->bUd:Lkotlin/e;
goto :goto_23
.line 44
:cond_68
const/4 v0, 0x0
goto :goto_2f
:cond_6a
move-object v1, v2
.line 47
goto :goto_43
:cond_6c
move-object v0, v2
goto :goto_48
.line 49
:cond_6e
invoke-virtual {p0}, Lcom/cmcm/safewallet/ui/giftcard/f;->mM()Lcom/cmcm/safewallet/ui/base/view/c;
move-result-object v0
check-cast v0, Lcom/cmcm/safewallet/ui/giftcard/e;
if-eqz v0, :cond_79
invoke-interface {v0, v3}, Lcom/cmcm/safewallet/ui/giftcard/e;->N(Z)V
.line 50
:cond_79
invoke-static {}, Lcom/cmcm/safewallet/utils/b;->uN()Ljava/lang/String;
move-result-object v0
.line 51
sget-object v1, Lcom/cmcm/safewallet/data/giftcard/b;->VE:Lcom/cmcm/safewallet/data/giftcard/c;
.line 1024
sget-object v1, Lcom/cmcm/safewallet/data/giftcard/d;->VG:Lcom/cmcm/safewallet/data/giftcard/d;
invoke-static {}, Lcom/cmcm/safewallet/data/giftcard/d;->jx()Lcom/cmcm/safewallet/data/giftcard/b;
.line 52
new-instance v1, Lcom/cmcm/safewallet/data/giftcard/RedeemRequest;
const-string v4, "swuid"
invoke-static {v0, v4}, Lkotlin/jvm/internal/e;->e(Ljava/lang/Object;Ljava/lang/String;)V
.line 53
if-nez p2, :cond_90
invoke-static {}, Lkotlin/jvm/internal/e;->Qs()V
:cond_90
invoke-virtual {p2}, Lcom/cmcm/safewallet/ui/exchange/data/b;->getAddress()Ljava/lang/String;
move-result-object v4
const-string v5, "item!!.address"
invoke-static {v4, v5}, Lkotlin/jvm/internal/e;->e(Ljava/lang/Object;Ljava/lang/String;)V
.line 52
invoke-direct {v1, v0, v4, p1}, Lcom/cmcm/safewallet/data/giftcard/RedeemRequest;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 55
new-instance v0, Lcom/cmcm/safewallet/ui/giftcard/f$a;
invoke-direct {v0, p0}, Lcom/cmcm/safewallet/ui/giftcard/f$a;-><init>(Lcom/cmcm/safewallet/ui/giftcard/f;)V
check-cast v0, Lio/reactivex/r;
.line 52
const-string v4, "data"
invoke-static {v1, v4}, Lkotlin/jvm/internal/e;->f(Ljava/lang/Object;Ljava/lang/String;)V
const-string v4, "observer"
invoke-static {v0, v4}, Lkotlin/jvm/internal/e;->f(Ljava/lang/Object;Ljava/lang/String;)V
.line 1127
invoke-static {}, Lcom/cmcm/safewallet/data/giftcard/b;->jw()Lcom/cmcm/safewallet/data/giftcard/GiftCardApi;
move-result-object v4
.line 1128
invoke-interface {v4, v1}, Lcom/cmcm/safewallet/data/giftcard/GiftCardApi;->postRedeem(Lcom/cmcm/safewallet/data/giftcard/RedeemRequest;)Lio/reactivex/k;
move-result-object v1
.line 1129
invoke-static {v1}, Lcom/cmcm/safewallet/data/giftcard/g;->a(Lio/reactivex/k;)Lio/reactivex/k;
move-result-object v1
.line 1130
invoke-static {}, Lio/reactivex/e/a;->Qf()Lio/reactivex/s;
move-result-object v4
invoke-virtual {v1, v4}, Lio/reactivex/k;->subscribeOn(Lio/reactivex/s;)Lio/reactivex/k;
move-result-object v4
.line 1131
sget-object v1, Lcom/cmcm/safewallet/data/giftcard/b$d;->VK:Lcom/cmcm/safewallet/data/giftcard/b$d;
check-cast v1, Lio/reactivex/b/h;
invoke-virtual {v4, v1}, Lio/reactivex/k;->map(Lio/reactivex/b/h;)Lio/reactivex/k;
move-result-object v1
.line 1140
invoke-static {}, Lio/reactivex/a/b/a;->Px()Lio/reactivex/s;
move-result-object v4
invoke-virtual {v1, v4}, Lio/reactivex/k;->observeOn(Lio/reactivex/s;)Lio/reactivex/k;
move-result-object v1
.line 1141
invoke-virtual {v1, v0}, Lio/reactivex/k;->subscribe(Lio/reactivex/r;)V
.line 52
sget-object v0, Lkotlin/e;->bUd:Lkotlin/e;
goto/16 :goto_48
.end method