330 lines
11 KiB
Smali
330 lines
11 KiB
Smali
|
.class public final Lcom/discord/models/domain/ModelGift$Parser$parse$1;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "ModelGift.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lrx/functions/Action1;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/discord/models/domain/ModelGift$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelGift;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x19
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">",
|
||
|
"Ljava/lang/Object;",
|
||
|
"Lrx/functions/Action1<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final synthetic $code:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
.field public final synthetic $expiresAt:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
.field public final synthetic $maxUses:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
.field public final synthetic $reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
.field public final synthetic $redeemed:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
.field public final synthetic $skuId:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
.field public final synthetic $storeListing:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
.field public final synthetic $subscriptionPlan:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
.field public final synthetic $user:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
.field public final synthetic $uses:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lkotlin/jvm/internal/Ref$ObjectRef;Lcom/discord/models/domain/Model$JsonReader;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$skuId:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iput-object p2, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
iput-object p3, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$redeemed:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iput-object p4, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$expiresAt:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iput-object p5, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$code:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iput-object p6, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$uses:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iput-object p7, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$storeListing:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iput-object p8, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$maxUses:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iput-object p9, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$user:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iput-object p10, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$subscriptionPlan:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public bridge synthetic call(Ljava/lang/Object;)V
|
||
|
.locals 0
|
||
|
|
||
|
check-cast p1, Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->call(Ljava/lang/String;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final call(Ljava/lang/String;)V
|
||
|
.locals 2
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
sparse-switch v0, :sswitch_data_0
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:sswitch_0
|
||
|
const-string/jumbo v0, "subscription_plan"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$subscriptionPlan:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
sget-object v0, Lcom/discord/models/domain/ModelSubscriptionPlan$Parser;->INSTANCE:Lcom/discord/models/domain/ModelSubscriptionPlan$Parser;
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/models/domain/ModelSubscriptionPlan$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelSubscriptionPlan;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:sswitch_1
|
||
|
const-string v0, "max_uses"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$maxUses:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/Model$JsonReader;->nextIntOrNull()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:sswitch_2
|
||
|
const-string/jumbo v0, "store_listing"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$storeListing:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
sget-object v0, Lcom/discord/models/domain/ModelStoreListing$Parser;->INSTANCE:Lcom/discord/models/domain/ModelStoreListing$Parser;
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/models/domain/ModelStoreListing$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelStoreListing;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto/16 :goto_1
|
||
|
|
||
|
:sswitch_3
|
||
|
const-string/jumbo v0, "uses"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$uses:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/Model$JsonReader;->nextIntOrNull()Ljava/lang/Integer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_4
|
||
|
const-string/jumbo v0, "user"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$user:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
new-instance v0, Lcom/discord/models/domain/ModelUser;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelUser;-><init>()V
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/discord/models/domain/ModelUser;->assignField(Lcom/discord/models/domain/Model$JsonReader;)V
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_5
|
||
|
const-string v0, "code"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$code:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/Model$JsonReader;->nextStringOrNull()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_6
|
||
|
const-string v0, "redeemed"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$redeemed:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/Model$JsonReader;->nextBooleanOrNull()Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_7
|
||
|
const-string v0, "expires_at"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$expiresAt:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/Model$JsonReader;->nextStringOrNull()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:sswitch_8
|
||
|
const-string v0, "sku_id"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$skuId:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/discord/models/domain/Model$JsonReader;->nextLongOrNull()Ljava/lang/Long;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/ModelGift$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/models/domain/Model$JsonReader;->skipValue()V
|
||
|
|
||
|
:goto_1
|
||
|
return-void
|
||
|
|
||
|
nop
|
||
|
|
||
|
:sswitch_data_0
|
||
|
.sparse-switch
|
||
|
-0x35a83c83 -> :sswitch_8
|
||
|
-0x31b2f2e2 -> :sswitch_7
|
||
|
-0x2e8130c5 -> :sswitch_6
|
||
|
0x2eaded -> :sswitch_5
|
||
|
0x36ebcb -> :sswitch_4
|
||
|
0x36ebcc -> :sswitch_3
|
||
|
0xfa0e926 -> :sswitch_2
|
||
|
0x1853bdc7 -> :sswitch_1
|
||
|
0x47a5150b -> :sswitch_0
|
||
|
.end sparse-switch
|
||
|
.end method
|