2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/models/domain/ModelPresence$Parser;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "ModelPresence.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/discord/models/domain/Model$Parser;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/models/domain/ModelPresence;
|
|
|
|
.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/ModelPresence;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final INSTANCE:Lcom/discord/models/domain/ModelPresence$Parser;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/models/domain/ModelPresence$Parser;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lcom/discord/models/domain/ModelPresence$Parser;-><init>()V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/models/domain/ModelPresence$Parser;->INSTANCE:Lcom/discord/models/domain/ModelPresence$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/ModelPresence;
|
|
|
|
.locals 27
|
|
|
|
|
|
|
|
move-object/from16 v9, p1
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
if-eqz v9, :cond_2
|
|
|
|
|
|
|
|
new-instance v11, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
invoke-direct {v11}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
|
|
|
|
iput-object v10, v11, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
new-instance v12, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
invoke-direct {v12}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
|
|
|
|
iput-object v10, v12, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
new-instance v13, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
invoke-direct {v13}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
|
|
|
|
iput-object v10, 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 v10, v14, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
new-instance v15, Lkotlin/jvm/internal/Ref$LongRef;
|
|
|
|
|
|
|
|
invoke-direct {v15}, Lkotlin/jvm/internal/Ref$LongRef;-><init>()V
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
iput-wide v0, v15, Lkotlin/jvm/internal/Ref$LongRef;->element:J
|
|
|
|
|
|
|
|
new-instance v8, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
invoke-direct {v8}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
|
|
|
|
iput-object v10, 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 v10, v7, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
new-instance v6, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;
|
|
|
|
|
|
|
|
move-object v0, v6
|
|
|
|
|
|
|
|
move-object v1, v11
|
|
|
|
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
|
|
|
|
move-object v3, v12
|
|
|
|
|
|
|
|
move-object v4, v13
|
|
|
|
|
|
|
|
move-object v5, v14
|
|
|
|
|
|
|
|
move-object v10, v6
|
|
|
|
|
|
|
|
move-object v6, v15
|
|
|
|
|
|
|
|
move-object/from16 v16, v7
|
|
|
|
|
|
|
|
move-object v7, v8
|
|
|
|
|
|
|
|
move-object/from16 v17, v8
|
|
|
|
|
|
|
|
move-object/from16 v8, v16
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v8}, Lcom/discord/models/domain/ModelPresence$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$LongRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
|
|
|
|
|
|
|
|
invoke-virtual {v9, v10}, Lcom/discord/models/domain/Model$JsonReader;->nextObject(Lrx/functions/Action1;)V
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
iget-object v1, v11, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-object/from16 v19, v1
|
|
|
|
|
|
|
|
check-cast v19, Lcom/discord/models/domain/ModelPresence$Status;
|
|
|
|
|
|
|
|
if-eqz v19, :cond_1
|
|
|
|
|
|
|
|
iget-object v1, v12, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-object/from16 v20, v1
|
|
|
|
|
|
|
|
check-cast v20, Ljava/util/List;
|
|
|
|
|
|
|
|
iget-object v1, v13, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelPresence$ClientStatuses;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget-object v1, Lcom/discord/models/domain/ModelPresence$ClientStatuses;->Companion:Lcom/discord/models/domain/ModelPresence$ClientStatuses$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelPresence$ClientStatuses$Companion;->empty()Lcom/discord/models/domain/ModelPresence$ClientStatuses;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
move-object/from16 v21, v1
|
|
|
|
|
|
|
|
iget-object v1, v14, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-object/from16 v22, v1
|
|
|
|
|
|
|
|
check-cast v22, Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
iget-wide v1, v15, Lkotlin/jvm/internal/Ref$LongRef;->element:J
|
|
|
|
|
|
|
|
move-object/from16 v3, v17
|
|
|
|
|
|
|
|
iget-object v3, v3, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-object/from16 v25, v3
|
|
|
|
|
|
|
|
check-cast v25, Ljava/lang/String;
|
|
|
|
|
|
|
|
move-object/from16 v3, v16
|
|
|
|
|
|
|
|
iget-object v3, v3, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-object/from16 v26, v3
|
|
|
|
|
|
|
|
check-cast v26, Ljava/util/List;
|
|
|
|
|
|
|
|
move-object/from16 v18, v0
|
|
|
|
|
|
|
|
move-wide/from16 v23, v1
|
|
|
|
|
|
|
|
invoke-direct/range {v18 .. v26}, Lcom/discord/models/domain/ModelPresence;-><init>(Lcom/discord/models/domain/ModelPresence$Status;Ljava/util/List;Lcom/discord/models/domain/ModelPresence$ClientStatuses;Lcom/discord/models/domain/ModelUser;JLjava/lang/String;Ljava/util/List;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_1
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-static {}, Lj0/n/c/h;->throwNpe()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-object v0, v10
|
|
|
|
|
|
|
|
const-string v1, "reader"
|
|
|
|
|
2020-07-16 19:51:49 +00:00
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
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/ModelPresence$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelPresence;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|