apkfuckery/com.discord/smali_classes2/q0/t/a/c.smali

133 lines
3.0 KiB
Smali
Raw Normal View History

2020-07-16 19:51:49 +00:00
.class public final Lq0/t/a/c;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
.source "GsonResponseBodyConverter.java"
# interfaces
2020-07-16 19:51:49 +00:00
.implements Lq0/e;
2020-05-17 12:40:10 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
2020-07-16 19:51:49 +00:00
"Lq0/e<",
2020-07-08 16:44:49 +00:00
"Lokhttp3/ResponseBody;",
2020-05-17 12:40:10 +00:00
"TT;>;"
}
.end annotation
# instance fields
.field public final a:Lcom/google/gson/Gson;
.field public final b:Lcom/google/gson/TypeAdapter;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/gson/TypeAdapter<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/google/gson/Gson;Lcom/google/gson/TypeAdapter;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/gson/Gson;",
"Lcom/google/gson/TypeAdapter<",
"TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-07-16 19:51:49 +00:00
iput-object p1, p0, Lq0/t/a/c;->a:Lcom/google/gson/Gson;
2020-05-17 12:40:10 +00:00
2020-07-16 19:51:49 +00:00
iput-object p2, p0, Lq0/t/a/c;->b:Lcom/google/gson/TypeAdapter;
2020-05-17 12:40:10 +00:00
return-void
.end method
# virtual methods
.method public a(Ljava/lang/Object;)Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
.locals 5
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2020-07-08 16:44:49 +00:00
check-cast p1, Lokhttp3/ResponseBody;
2020-05-17 12:40:10 +00:00
2020-07-16 19:51:49 +00:00
iget-object v0, p0, Lq0/t/a/c;->a:Lcom/google/gson/Gson;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v1, p1, Lokhttp3/ResponseBody;->d:Ljava/io/Reader;
2020-05-17 12:40:10 +00:00
if-eqz v1, :cond_0
2020-07-08 16:44:49 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-08 16:44:49 +00:00
new-instance v1, Lokhttp3/ResponseBody$a;
2020-05-17 12:40:10 +00:00
2020-07-16 19:51:49 +00:00
invoke-virtual {p1}, Lokhttp3/ResponseBody;->c()Lo0/g;
2020-05-17 12:40:10 +00:00
move-result-object v2
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Lokhttp3/ResponseBody;->b()Lokhttp3/MediaType;
move-result-object v3
if-eqz v3, :cond_1
2020-07-20 19:00:44 +00:00
sget-object v4, Lj0/u/a;->a:Ljava/nio/charset/Charset;
2020-07-08 16:44:49 +00:00
invoke-virtual {v3, v4}, Lokhttp3/MediaType;->a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
2020-05-17 12:40:10 +00:00
move-result-object v3
2020-07-08 16:44:49 +00:00
if-eqz v3, :cond_1
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
2020-07-20 19:00:44 +00:00
sget-object v3, Lj0/u/a;->a:Ljava/nio/charset/Charset;
2020-05-17 12:40:10 +00:00
:goto_0
2020-07-16 19:51:49 +00:00
invoke-direct {v1, v2, v3}, Lokhttp3/ResponseBody$a;-><init>(Lo0/g;Ljava/nio/charset/Charset;)V
2020-07-08 16:44:49 +00:00
iput-object v1, p1, Lokhttp3/ResponseBody;->d:Ljava/io/Reader;
:goto_1
invoke-virtual {v0, v1}, Lcom/google/gson/Gson;->h(Ljava/io/Reader;)Lcom/google/gson/stream/JsonReader;
2020-05-17 12:40:10 +00:00
move-result-object v0
:try_start_0
2020-07-16 19:51:49 +00:00
iget-object v1, p0, Lq0/t/a/c;->b:Lcom/google/gson/TypeAdapter;
2020-05-17 12:40:10 +00:00
invoke-virtual {v1, v0}, Lcom/google/gson/TypeAdapter;->read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Lokhttp3/ResponseBody;->close()V
2020-05-17 12:40:10 +00:00
return-object v0
:catchall_0
move-exception v0
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Lokhttp3/ResponseBody;->close()V
2020-05-17 12:40:10 +00:00
throw v0
.end method