140 lines
4.9 KiB
Smali
140 lines
4.9 KiB
Smali
.class public final Lcom/discord/stores/StoreGifting$fetchGift$2$1;
|
|
.super Lt/u/b/k;
|
|
.source "StoreGifting.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/stores/StoreGifting$fetchGift$2;->invoke(Lcom/discord/utilities/error/Error;)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/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $error:Lcom/discord/utilities/error/Error;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/stores/StoreGifting$fetchGift$2;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/stores/StoreGifting$fetchGift$2;Lcom/discord/utilities/error/Error;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreGifting$fetchGift$2$1;->this$0:Lcom/discord/stores/StoreGifting$fetchGift$2;
|
|
|
|
iput-object p2, p0, Lcom/discord/stores/StoreGifting$fetchGift$2$1;->$error:Lcom/discord/utilities/error/Error;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
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;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreGifting$fetchGift$2$1;->invoke()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final invoke()V
|
|
.locals 3
|
|
|
|
sget-object v0, Lcom/discord/utilities/analytics/AnalyticsTracker;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsTracker;
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreGifting$fetchGift$2$1;->this$0:Lcom/discord/stores/StoreGifting$fetchGift$2;
|
|
|
|
iget-object v1, v1, Lcom/discord/stores/StoreGifting$fetchGift$2;->$giftCode:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/analytics/AnalyticsTracker;->giftResolvedFailed(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreGifting$fetchGift$2$1;->$error:Lcom/discord/utilities/error/Error;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/error/Error;->getType()Lcom/discord/utilities/error/Error$Type;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreGifting$WhenMappings;->$EnumSwitchMapping$1:[I
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v0
|
|
|
|
aget v0, v1, v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreGifting$fetchGift$2$1;->this$0:Lcom/discord/stores/StoreGifting$fetchGift$2;
|
|
|
|
iget-object v1, v0, Lcom/discord/stores/StoreGifting$fetchGift$2;->this$0:Lcom/discord/stores/StoreGifting;
|
|
|
|
iget-object v0, v0, Lcom/discord/stores/StoreGifting$fetchGift$2;->$giftCode:Ljava/lang/String;
|
|
|
|
sget-object v2, Lcom/discord/stores/StoreGifting$GiftState$LoadFailed;->INSTANCE:Lcom/discord/stores/StoreGifting$GiftState$LoadFailed;
|
|
|
|
invoke-static {v1, v0, v2}, Lcom/discord/stores/StoreGifting;->access$setGifts(Lcom/discord/stores/StoreGifting;Ljava/lang/String;Lcom/discord/stores/StoreGifting$GiftState;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/discord/stores/StoreGifting$fetchGift$2$1;->this$0:Lcom/discord/stores/StoreGifting$fetchGift$2;
|
|
|
|
iget-object v1, v0, Lcom/discord/stores/StoreGifting$fetchGift$2;->this$0:Lcom/discord/stores/StoreGifting;
|
|
|
|
iget-object v0, v0, Lcom/discord/stores/StoreGifting$fetchGift$2;->$giftCode:Ljava/lang/String;
|
|
|
|
sget-object v2, Lcom/discord/stores/StoreGifting$GiftState$LoadFailed;->INSTANCE:Lcom/discord/stores/StoreGifting$GiftState$LoadFailed;
|
|
|
|
invoke-static {v1, v0, v2}, Lcom/discord/stores/StoreGifting;->access$setGifts(Lcom/discord/stores/StoreGifting;Ljava/lang/String;Lcom/discord/stores/StoreGifting$GiftState;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/discord/stores/StoreGifting$fetchGift$2$1;->$error:Lcom/discord/utilities/error/Error;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/error/Error;->setShowErrorToasts(Z)V
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreGifting$fetchGift$2$1;->this$0:Lcom/discord/stores/StoreGifting$fetchGift$2;
|
|
|
|
iget-object v1, v0, Lcom/discord/stores/StoreGifting$fetchGift$2;->this$0:Lcom/discord/stores/StoreGifting;
|
|
|
|
iget-object v0, v0, Lcom/discord/stores/StoreGifting$fetchGift$2;->$giftCode:Ljava/lang/String;
|
|
|
|
sget-object v2, Lcom/discord/stores/StoreGifting$GiftState$Invalid;->INSTANCE:Lcom/discord/stores/StoreGifting$GiftState$Invalid;
|
|
|
|
invoke-static {v1, v0, v2}, Lcom/discord/stores/StoreGifting;->access$setGifts(Lcom/discord/stores/StoreGifting;Ljava/lang/String;Lcom/discord/stores/StoreGifting$GiftState;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|