94 lines
3.4 KiB
Smali
94 lines
3.4 KiB
Smali
.class public Lco/discord/media_engine/internal/OptimizedOutboundAudioTypeAdapter;
|
|
.super Lcom/google/gson/TypeAdapter;
|
|
.source "_OptimizedTypeAdapterImpl.java"
|
|
|
|
# interfaces
|
|
.implements Lproguard/optimize/gson/d;
|
|
|
|
|
|
# instance fields
|
|
.field private gson:Lcom/google/gson/Gson;
|
|
|
|
.field private optimizedJsonReader:Lproguard/optimize/gson/_OptimizedJsonReader;
|
|
|
|
.field private optimizedJsonWriter:Lproguard/optimize/gson/_OptimizedJsonWriter;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/gson/Gson;Lproguard/optimize/gson/_OptimizedJsonReader;Lproguard/optimize/gson/_OptimizedJsonWriter;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/TypeAdapter;-><init>()V
|
|
|
|
iput-object p1, p0, Lco/discord/media_engine/internal/OptimizedOutboundAudioTypeAdapter;->gson:Lcom/google/gson/Gson;
|
|
|
|
iput-object p2, p0, Lco/discord/media_engine/internal/OptimizedOutboundAudioTypeAdapter;->optimizedJsonReader:Lproguard/optimize/gson/_OptimizedJsonReader;
|
|
|
|
iput-object p3, p0, Lco/discord/media_engine/internal/OptimizedOutboundAudioTypeAdapter;->optimizedJsonWriter:Lproguard/optimize/gson/_OptimizedJsonWriter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, 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-ne v0, v1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->skipValue()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
new-instance v0, Lco/discord/media_engine/internal/OutboundAudio;
|
|
|
|
invoke-direct {v0}, Lco/discord/media_engine/internal/OutboundAudio;-><init>()V
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/internal/OptimizedOutboundAudioTypeAdapter;->gson:Lcom/google/gson/Gson;
|
|
|
|
iget-object v2, p0, Lco/discord/media_engine/internal/OptimizedOutboundAudioTypeAdapter;->optimizedJsonReader:Lproguard/optimize/gson/_OptimizedJsonReader;
|
|
|
|
invoke-virtual {v0, v1, p1, v2}, Lco/discord/media_engine/internal/OutboundAudio;->fromJson$13(Lcom/google/gson/Gson;Lcom/google/gson/stream/JsonReader;Lproguard/optimize/gson/_OptimizedJsonReader;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonWriter;->nullValue()Lcom/google/gson/stream/JsonWriter;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
check-cast p2, Lco/discord/media_engine/internal/OutboundAudio;
|
|
|
|
iget-object v0, p0, Lco/discord/media_engine/internal/OptimizedOutboundAudioTypeAdapter;->gson:Lcom/google/gson/Gson;
|
|
|
|
iget-object v1, p0, Lco/discord/media_engine/internal/OptimizedOutboundAudioTypeAdapter;->optimizedJsonWriter:Lproguard/optimize/gson/_OptimizedJsonWriter;
|
|
|
|
invoke-virtual {p2, v0, p1, v1}, Lco/discord/media_engine/internal/OutboundAudio;->toJson$13(Lcom/google/gson/Gson;Lcom/google/gson/stream/JsonWriter;Lproguard/optimize/gson/_OptimizedJsonWriter;)V
|
|
|
|
return-void
|
|
.end method
|