179 lines
4.5 KiB
Smali
179 lines
4.5 KiB
Smali
.class public final Le/a/a/e/a$d;
|
|
.super Lt/u/b/k;
|
|
.source "WidgetGiftAcceptDialog.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Le/a/a/e/a;->onViewBound(Landroid/view/View;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lt/u/b/k;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"Lcom/discord/stores/StoreGifting$GiftState;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Le/a/a/e/a;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Le/a/a/e/a;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Le/a/a/e/a$d;->this$0:Le/a/a/e/a;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-direct {p0, p1}, Lt/u/b/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/discord/stores/StoreGifting$GiftState;)V
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
instance-of v0, p1, Lcom/discord/stores/StoreGifting$GiftState$Resolved;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
check-cast p1, Lcom/discord/stores/StoreGifting$GiftState$Resolved;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGift;->getRedeemed()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Le/a/a/e/a$d;->this$0:Le/a/a/e/a;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, p1}, Le/a/a/e/a;->a(Le/a/a/e/a;Lcom/discord/models/domain/ModelGift;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelGift;->getMaxUses()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGift;->getUses()I
|
|
|
|
move-result v1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
iget-object v0, p0, Le/a/a/e/a$d;->this$0:Le/a/a/e/a;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, p1}, Le/a/a/e/a;->b(Le/a/a/e/a;Lcom/discord/models/domain/ModelGift;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Le/a/a/e/a$d;->this$0:Le/a/a/e/a;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, p1}, Le/a/a/e/a;->d(Le/a/a/e/a;Lcom/discord/models/domain/ModelGift;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
instance-of v0, p1, Lcom/discord/stores/StoreGifting$GiftState$Redeeming;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p0, Le/a/a/e/a$d;->this$0:Le/a/a/e/a;
|
|
|
|
check-cast p1, Lcom/discord/stores/StoreGifting$GiftState$Redeeming;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreGifting$GiftState$Redeeming;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, p1}, Le/a/a/e/a;->c(Le/a/a/e/a;Lcom/discord/models/domain/ModelGift;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
instance-of v0, p1, Lcom/discord/stores/StoreGifting$GiftState$RedeemedFailed;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v0, p0, Le/a/a/e/a$d;->this$0:Le/a/a/e/a;
|
|
|
|
check-cast p1, Lcom/discord/stores/StoreGifting$GiftState$RedeemedFailed;
|
|
|
|
invoke-static {v0, p1}, Le/a/a/e/a;->a(Le/a/a/e/a;Lcom/discord/stores/StoreGifting$GiftState$RedeemedFailed;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
iget-object p1, p0, Le/a/a/e/a$d;->this$0:Le/a/a/e/a;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/app/AppDialog;->dismiss()V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_5
|
|
const-string p1, "giftState"
|
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/stores/StoreGifting$GiftState;
|
|
|
|
invoke-virtual {p0, p1}, Le/a/a/e/a$d;->a(Lcom/discord/stores/StoreGifting$GiftState;)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|