2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/models/domain/ModelPresence$Parser$parse$1;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "ModelPresence.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/functions/Action1;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/models/domain/ModelPresence$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelPresence;
|
|
|
|
.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 $activities:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
.field public final synthetic $clientStatuses:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
.field public final synthetic $guildId:Lkotlin/jvm/internal/Ref$LongRef;
|
|
|
|
|
2020-08-07 20:54:39 +00:00
|
|
|
.field public final synthetic $nick:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.field public final synthetic $reader:Lcom/discord/models/domain/Model$JsonReader;
|
|
|
|
|
2020-08-07 20:54:39 +00:00
|
|
|
.field public final synthetic $roles:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.field public final synthetic $status:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
.field public final synthetic $user:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-08-07 20:54:39 +00:00
|
|
|
.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$LongRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$status:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
|
|
|
|
|
|
|
iput-object p3, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$activities:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$clientStatuses:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$user:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
iput-object p6, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$guildId:Lkotlin/jvm/internal/Ref$LongRef;
|
|
|
|
|
2020-08-07 20:54:39 +00:00
|
|
|
iput-object p7, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$nick:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
iput-object p8, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$roles:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
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/ModelPresence$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 v0, "activities"
|
|
|
|
|
|
|
|
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/ModelPresence$Parser$parse$1;->$activities:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/models/domain/ModelPresence$Parser$parse$1$1;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/models/domain/ModelPresence$Parser$parse$1$1;-><init>(Lcom/discord/models/domain/ModelPresence$Parser$parse$1;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/models/domain/Model$JsonReader;->nextList(Lcom/discord/models/domain/Model$JsonReader$ItemFactory;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
2020-08-07 20:54:39 +00:00
|
|
|
goto/16 :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:sswitch_1
|
|
|
|
const-string v0, "client_status"
|
|
|
|
|
|
|
|
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/ModelPresence$Parser$parse$1;->$clientStatuses:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/models/domain/ModelPresence$ClientStatuses;->Companion:Lcom/discord/models/domain/ModelPresence$ClientStatuses$Companion;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/models/domain/ModelPresence$ClientStatuses$Companion;->deserialize(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/ModelPresence$ClientStatuses;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
2020-08-07 20:54:39 +00:00
|
|
|
goto/16 :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-07 17:54:15 +00:00
|
|
|
:sswitch_2
|
2020-08-07 20:54:39 +00:00
|
|
|
const-string v0, "roles"
|
|
|
|
|
|
|
|
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/ModelPresence$Parser$parse$1;->$roles:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/models/domain/ModelPresence$Parser$parse$1$2;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/models/domain/ModelPresence$Parser$parse$1$2;-><init>(Lcom/discord/models/domain/ModelPresence$Parser$parse$1;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/models/domain/Model$JsonReader;->nextList(Lcom/discord/models/domain/Model$JsonReader$ItemFactory;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:sswitch_3
|
2020-05-17 12:40:10 +00:00
|
|
|
const-string 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/ModelPresence$Parser$parse$1;->$user:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Lcom/discord/models/domain/ModelUser;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/models/domain/Model$JsonReader;->parse(Lcom/discord/models/domain/Model;)Lcom/discord/models/domain/Model;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelUser;
|
|
|
|
|
|
|
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2020-08-07 20:54:39 +00:00
|
|
|
:sswitch_4
|
|
|
|
const-string v0, "nick"
|
|
|
|
|
|
|
|
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/ModelPresence$Parser$parse$1;->$nick:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/ModelPresence$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_5
|
2020-05-17 12:40:10 +00:00
|
|
|
const-string v0, "status"
|
|
|
|
|
|
|
|
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/ModelPresence$Parser$parse$1;->$status:Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/models/domain/ModelPresence$Status;->Companion:Lcom/discord/models/domain/ModelPresence$Status$Companion;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/models/domain/ModelPresence$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/Model$JsonReader;->nextStringOrNull()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/models/domain/ModelPresence$Status$Companion;->deserialize(Ljava/lang/String;)Lcom/discord/models/domain/ModelPresence$Status;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2020-08-07 20:54:39 +00:00
|
|
|
:sswitch_6
|
2020-05-17 12:40:10 +00:00
|
|
|
const-string v0, "guild_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/ModelPresence$Parser$parse$1;->$guildId:Lkotlin/jvm/internal/Ref$LongRef;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/ModelPresence$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
|
|
|
|
|
|
|
|
const-string v1, "reader.nextLongOrNull()"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
iput-wide v0, p1, Lkotlin/jvm/internal/Ref$LongRef;->element:J
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
iget-object p1, p0, Lcom/discord/models/domain/ModelPresence$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
|
|
|
|
|
|
|
|
:sswitch_data_0
|
|
|
|
.sparse-switch
|
2020-08-07 20:54:39 +00:00
|
|
|
-0x4de03319 -> :sswitch_6
|
|
|
|
-0x3532300e -> :sswitch_5
|
|
|
|
0x339763 -> :sswitch_4
|
|
|
|
0x36ebcb -> :sswitch_3
|
|
|
|
0x67a8ebd -> :sswitch_2
|
2020-05-17 12:40:10 +00:00
|
|
|
0x22120ee6 -> :sswitch_1
|
|
|
|
0x7a1b3bed -> :sswitch_0
|
|
|
|
.end sparse-switch
|
|
|
|
.end method
|