335 lines
8.1 KiB
Smali
335 lines
8.1 KiB
Smali
.class public final Lcom/discord/models/domain/ModelGift$Parser;
|
|
.super Ljava/lang/Object;
|
|
.source "ModelGift.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/models/domain/Model$Parser;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/models/domain/ModelGift;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Parser"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lcom/discord/models/domain/Model$Parser<",
|
|
"Lcom/discord/models/domain/ModelGift;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/models/domain/ModelGift$Parser;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/models/domain/ModelGift$Parser;
|
|
|
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelGift$Parser;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/models/domain/ModelGift$Parser;->INSTANCE:Lcom/discord/models/domain/ModelGift$Parser;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelGift;
|
|
.locals 33
|
|
|
|
move-object/from16 v11, p1
|
|
|
|
const/4 v12, 0x0
|
|
|
|
if-eqz v11, :cond_7
|
|
|
|
new-instance v13, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v13}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v12, v13, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v14, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v14}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v12, v14, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v15, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v15}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v12, v15, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v10, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v10}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v12, v10, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v9, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v9}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v12, v9, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v8, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v8}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v12, v8, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v7, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v7}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v12, v7, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v6, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v6}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v12, v6, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v5, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
invoke-direct {v5}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
iput-object v12, v5, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
new-instance v4, Lcom/discord/models/domain/ModelGift$Parser$parse$1;
|
|
|
|
move-object v0, v4
|
|
|
|
move-object v1, v13
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
move-object v3, v14
|
|
|
|
move-object v12, v4
|
|
|
|
move-object v4, v15
|
|
|
|
move-object/from16 v16, v5
|
|
|
|
move-object v5, v10
|
|
|
|
move-object/from16 v17, v6
|
|
|
|
move-object v6, v9
|
|
|
|
move-object/from16 v18, v7
|
|
|
|
move-object v7, v8
|
|
|
|
move-object/from16 v19, v8
|
|
|
|
move-object/from16 v8, v18
|
|
|
|
move-object/from16 v20, v9
|
|
|
|
move-object/from16 v9, v17
|
|
|
|
move-object/from16 v21, v10
|
|
|
|
move-object/from16 v10, v16
|
|
|
|
invoke-direct/range {v0 .. v10}, Lcom/discord/models/domain/ModelGift$Parser$parse$1;-><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
|
|
|
|
invoke-virtual {v11, v12}, Lcom/discord/models/domain/Model$JsonReader;->nextObject(Lrx/functions/Action1;)V
|
|
|
|
new-instance v0, Lcom/discord/models/domain/ModelGift;
|
|
|
|
iget-object v1, v13, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Long;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-wide/16 v1, 0x0
|
|
|
|
:goto_0
|
|
move-wide/from16 v23, v1
|
|
|
|
iget-object v1, v14, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Boolean;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v1
|
|
|
|
move/from16 v25, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v25, 0x0
|
|
|
|
:goto_1
|
|
iget-object v1, v15, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
const-string v3, ""
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
move-object/from16 v26, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move-object/from16 v26, v3
|
|
|
|
:goto_2
|
|
move-object/from16 v1, v21
|
|
|
|
iget-object v1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
move-object/from16 v27, v1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-object/from16 v27, v3
|
|
|
|
:goto_3
|
|
move-object/from16 v1, v20
|
|
|
|
iget-object v1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
move/from16 v28, v1
|
|
|
|
move-object/from16 v1, v19
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move-object/from16 v1, v19
|
|
|
|
const/16 v28, 0x0
|
|
|
|
:goto_4
|
|
iget-object v1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
move-object/from16 v29, v1
|
|
|
|
check-cast v29, Lcom/discord/models/domain/ModelStoreListing;
|
|
|
|
if-eqz v29, :cond_6
|
|
|
|
move-object/from16 v1, v18
|
|
|
|
iget-object v1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
move/from16 v30, v1
|
|
|
|
move-object/from16 v1, v17
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
move-object/from16 v1, v17
|
|
|
|
const/16 v30, 0x0
|
|
|
|
:goto_5
|
|
iget-object v1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
move-object/from16 v31, v1
|
|
|
|
check-cast v31, Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-object/from16 v1, v16
|
|
|
|
iget-object v1, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
move-object/from16 v32, v1
|
|
|
|
check-cast v32, Lcom/discord/models/domain/ModelSubscriptionPlan;
|
|
|
|
move-object/from16 v22, v0
|
|
|
|
invoke-direct/range {v22 .. v32}, Lcom/discord/models/domain/ModelGift;-><init>(JZLjava/lang/String;Ljava/lang/String;ILcom/discord/models/domain/ModelStoreListing;ILcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelSubscriptionPlan;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_6
|
|
invoke-static {}, Lm/u/b/j;->throwNpe()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
|
|
:cond_7
|
|
move-object v0, v12
|
|
|
|
const-string v1, "reader"
|
|
|
|
invoke-static {v1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public bridge synthetic parse(Lcom/discord/models/domain/Model$JsonReader;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/models/domain/ModelGift$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelGift;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|