185 lines
5.1 KiB
Smali
185 lines
5.1 KiB
Smali
|
.class public final Lcom/discord/models/domain/StreamServerUpdate$Parser$parse$1;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "ModelApplicationStream.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lrx/functions/Action1;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/discord/models/domain/StreamServerUpdate$Parser;->parse(Lcom/discord/models/domain/Model$JsonReader;)Lcom/discord/models/domain/StreamServerUpdate;
|
||
|
.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 $endpoint:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
.field public final synthetic $reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
.field public final synthetic $streamKey:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
.field public final synthetic $token: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;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/models/domain/StreamServerUpdate$Parser$parse$1;->$streamKey:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iput-object p2, p0, Lcom/discord/models/domain/StreamServerUpdate$Parser$parse$1;->$reader:Lcom/discord/models/domain/Model$JsonReader;
|
||
|
|
||
|
iput-object p3, p0, Lcom/discord/models/domain/StreamServerUpdate$Parser$parse$1;->$endpoint:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iput-object p4, p0, Lcom/discord/models/domain/StreamServerUpdate$Parser$parse$1;->$token: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/StreamServerUpdate$Parser$parse$1;->call(Ljava/lang/String;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final call(Ljava/lang/String;)V
|
||
|
.locals 3
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const v1, -0x4731a2e0
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-eq v0, v1, :cond_4
|
||
|
|
||
|
const v1, 0x696b9f9
|
||
|
|
||
|
if-eq v0, v1, :cond_3
|
||
|
|
||
|
const v1, 0x67c71d95
|
||
|
|
||
|
if-eq v0, v1, :cond_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
const-string v0, "endpoint"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_6
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/StreamServerUpdate$Parser$parse$1;->$endpoint:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/StreamServerUpdate$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
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
||
|
|
||
|
throw v2
|
||
|
|
||
|
:cond_3
|
||
|
const-string v0, "token"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_6
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/StreamServerUpdate$Parser$parse$1;->$token:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/StreamServerUpdate$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
|
||
|
|
||
|
:cond_4
|
||
|
const-string v0, "stream_key"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_6
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/StreamServerUpdate$Parser$parse$1;->$streamKey:Lkotlin/jvm/internal/Ref$ObjectRef;
|
||
|
|
||
|
iget-object v0, p0, Lcom/discord/models/domain/StreamServerUpdate$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
|
||
|
|
||
|
if-eqz v0, :cond_5
|
||
|
|
||
|
iput-object v0, p1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_5
|
||
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
||
|
|
||
|
throw v2
|
||
|
|
||
|
:cond_6
|
||
|
:goto_0
|
||
|
iget-object p1, p0, Lcom/discord/models/domain/StreamServerUpdate$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
|
||
|
.end method
|