233 lines
6.2 KiB
Smali
233 lines
6.2 KiB
Smali
.class public final Le/a/a/e/a$e;
|
|
.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<",
|
|
"Lkotlin/Pair<",
|
|
"+",
|
|
"Lcom/discord/stores/StoreGifting$GiftState;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
">;",
|
|
"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$e;->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 bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lkotlin/Pair;
|
|
|
|
invoke-virtual {p0, p1}, Le/a/a/e/a$e;->invoke(Lkotlin/Pair;)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invoke(Lkotlin/Pair;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/Pair<",
|
|
"+",
|
|
"Lcom/discord/stores/StoreGifting$GiftState;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Lkotlin/Pair;->component1()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/stores/StoreGifting$GiftState;
|
|
|
|
invoke-virtual {p1}, Lkotlin/Pair;->component2()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelUser;
|
|
|
|
instance-of v1, v0, Lcom/discord/stores/StoreGifting$GiftState$Resolved;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
check-cast v0, Lcom/discord/stores/StoreGifting$GiftState$Resolved;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGift;->isAnyNitroGift()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
sget-object v1, Lcom/discord/utilities/premium/PremiumUtils;->INSTANCE:Lcom/discord/utilities/premium/PremiumUtils;
|
|
|
|
const-string v2, "me"
|
|
|
|
invoke-static {p1, v2}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, p1, v2}, Lcom/discord/utilities/premium/PremiumUtils;->isAcceptableNitroGift(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGift;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-object p1, p0, Le/a/a/e/a$e;->this$0:Le/a/a/e/a;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Le/a/a/e/a;->d(Le/a/a/e/a;Lcom/discord/models/domain/ModelGift;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelGift;->getRedeemed()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object p1, p0, Le/a/a/e/a$e;->this$0:Le/a/a/e/a;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Le/a/a/e/a;->a(Le/a/a/e/a;Lcom/discord/models/domain/ModelGift;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelGift;->getMaxUses()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v0}, 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 p1, v1, :cond_2
|
|
|
|
iget-object p1, p0, Le/a/a/e/a$e;->this$0:Le/a/a/e/a;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Le/a/a/e/a;->b(Le/a/a/e/a;Lcom/discord/models/domain/ModelGift;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object p1, p0, Le/a/a/e/a$e;->this$0:Le/a/a/e/a;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreGifting$GiftState$Resolved;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Le/a/a/e/a;->e(Le/a/a/e/a;Lcom/discord/models/domain/ModelGift;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
instance-of p1, v0, Lcom/discord/stores/StoreGifting$GiftState$Redeeming;
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
iget-object p1, p0, Le/a/a/e/a$e;->this$0:Le/a/a/e/a;
|
|
|
|
check-cast v0, Lcom/discord/stores/StoreGifting$GiftState$Redeeming;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreGifting$GiftState$Redeeming;->getGift()Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Le/a/a/e/a;->c(Le/a/a/e/a;Lcom/discord/models/domain/ModelGift;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
instance-of p1, v0, Lcom/discord/stores/StoreGifting$GiftState$RedeemedFailed;
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
iget-object p1, p0, Le/a/a/e/a$e;->this$0:Le/a/a/e/a;
|
|
|
|
check-cast v0, Lcom/discord/stores/StoreGifting$GiftState$RedeemedFailed;
|
|
|
|
invoke-static {p1, v0}, Le/a/a/e/a;->a(Le/a/a/e/a;Lcom/discord/stores/StoreGifting$GiftState$RedeemedFailed;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
iget-object p1, p0, Le/a/a/e/a$e;->this$0:Le/a/a/e/a;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/app/AppDialog;->dismiss()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|