219 lines
5.7 KiB
Smali
219 lines
5.7 KiB
Smali
.class public final Lcom/discord/gateway/io/Outgoing;
|
|
.super Ljava/lang/Object;
|
|
.source "Outgoing.kt"
|
|
|
|
|
|
# instance fields
|
|
.field private d:Ljava/lang/Object;
|
|
|
|
.field private op:I
|
|
|
|
|
|
# direct methods
|
|
.method public synthetic constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput p1, p0, Lcom/discord/gateway/io/Outgoing;->op:I
|
|
|
|
iput-object p2, p0, Lcom/discord/gateway/io/Outgoing;->d:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(ILjava/lang/Object;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/gateway/io/Outgoing;-><init>(ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final synthetic fromJson$5(Lcom/google/gson/Gson;Lcom/google/gson/stream/JsonReader;Lproguard/optimize/gson/_OptimizedJsonReader;)V
|
|
.locals 1
|
|
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonReader;->beginObject()V
|
|
|
|
:goto_0
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonReader;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {p3, p2}, Lproguard/optimize/gson/_OptimizedJsonReader;->l(Lcom/google/gson/stream/JsonReader;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, p1, p2, v0}, Lcom/discord/gateway/io/Outgoing;->fromJsonField$5(Lcom/google/gson/Gson;Lcom/google/gson/stream/JsonReader;I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonReader;->endObject()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected final synthetic fromJsonField$5(Lcom/google/gson/Gson;Lcom/google/gson/stream/JsonReader;I)V
|
|
.locals 2
|
|
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/google/gson/stream/JsonToken;->NULL:Lcom/google/gson/stream/JsonToken;
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const/16 v1, 0x34
|
|
|
|
if-eq p3, v1, :cond_3
|
|
|
|
const/16 v1, 0x36
|
|
|
|
if-eq p3, v1, :cond_1
|
|
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonReader;->skipValue()V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
if-eqz v0, :cond_2
|
|
|
|
const-class p3, Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1, p3}, Lcom/google/gson/Gson;->G(Ljava/lang/Class;)Lcom/google/gson/TypeAdapter;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p2}, Lcom/google/gson/TypeAdapter;->read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/Object;
|
|
|
|
iput-object p1, p0, Lcom/discord/gateway/io/Outgoing;->d:Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Lcom/discord/gateway/io/Outgoing;->d:Ljava/lang/Object;
|
|
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonReader;->nextNull()V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
if-eqz v0, :cond_4
|
|
|
|
:try_start_0
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonReader;->nextInt()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/discord/gateway/io/Outgoing;->op:I
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
new-instance p2, Lcom/google/gson/p;
|
|
|
|
invoke-direct {p2, p1}, Lcom/google/gson/p;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw p2
|
|
|
|
:cond_4
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonReader;->nextNull()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getOp()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/gateway/io/Outgoing;->op:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final synthetic toJson$5(Lcom/google/gson/Gson;Lcom/google/gson/stream/JsonWriter;Lproguard/optimize/gson/_OptimizedJsonWriter;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonWriter;->beginObject()Lcom/google/gson/stream/JsonWriter;
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/gateway/io/Outgoing;->toJsonBody$5(Lcom/google/gson/Gson;Lcom/google/gson/stream/JsonWriter;Lproguard/optimize/gson/_OptimizedJsonWriter;)V
|
|
|
|
invoke-virtual {p2}, Lcom/google/gson/stream/JsonWriter;->endObject()Lcom/google/gson/stream/JsonWriter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected final synthetic toJsonBody$5(Lcom/google/gson/Gson;Lcom/google/gson/stream/JsonWriter;Lproguard/optimize/gson/_OptimizedJsonWriter;)V
|
|
.locals 1
|
|
|
|
const/16 v0, 0x34
|
|
|
|
invoke-interface {p3, p2, v0}, Lproguard/optimize/gson/_OptimizedJsonWriter;->a(Lcom/google/gson/stream/JsonWriter;I)V
|
|
|
|
iget v0, p0, Lcom/discord/gateway/io/Outgoing;->op:I
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0}, Lcom/google/gson/stream/JsonWriter;->value(Ljava/lang/Number;)Lcom/google/gson/stream/JsonWriter;
|
|
|
|
iget-object v0, p0, Lcom/discord/gateway/io/Outgoing;->d:Ljava/lang/Object;
|
|
|
|
if-eq p0, v0, :cond_0
|
|
|
|
const/16 v0, 0x36
|
|
|
|
invoke-interface {p3, p2, v0}, Lproguard/optimize/gson/_OptimizedJsonWriter;->a(Lcom/google/gson/stream/JsonWriter;I)V
|
|
|
|
const-class p3, Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/discord/gateway/io/Outgoing;->d:Ljava/lang/Object;
|
|
|
|
invoke-static {p1, p3, v0}, Lproguard/optimize/gson/a;->a(Lcom/google/gson/Gson;Ljava/lang/Class;Ljava/lang/Object;)Lcom/google/gson/TypeAdapter;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p2, v0}, Lcom/google/gson/TypeAdapter;->write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|