apkfuckery/com.discord/smali_classes2/okhttp3/Response.smali

271 lines
5.6 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Lokhttp3/Response;
.super Ljava/lang/Object;
.source "Response.kt"
# interfaces
.implements Ljava/io/Closeable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/Response$a;
}
.end annotation
# instance fields
2020-07-23 01:06:17 +00:00
.field public final d:Ln0/a0;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
.field public final e:Ln0/y;
2020-05-17 12:40:10 +00:00
.field public final f:Ljava/lang/String;
.field public final g:I
2020-07-23 01:06:17 +00:00
.field public final h:Ln0/v;
2020-05-17 12:40:10 +00:00
.field public final i:Lokhttp3/Headers;
2020-07-08 16:44:49 +00:00
.field public final j:Lokhttp3/ResponseBody;
2020-05-17 12:40:10 +00:00
.field public final k:Lokhttp3/Response;
.field public final l:Lokhttp3/Response;
.field public final m:Lokhttp3/Response;
.field public final n:J
.field public final o:J
2020-07-23 01:06:17 +00:00
.field public final p:Ln0/g0/d/c;
2020-05-17 12:40:10 +00:00
# direct methods
2020-07-23 01:06:17 +00:00
.method public constructor <init>(Ln0/a0;Ln0/y;Ljava/lang/String;ILn0/v;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLn0/g0/d/c;)V
2020-05-17 12:40:10 +00:00
.locals 6
move-object v0, p0
move-object v1, p1
move-object v2, p2
move-object v3, p3
move-object v4, p6
const/4 v5, 0x0
if-eqz v1, :cond_3
if-eqz v2, :cond_2
if-eqz v3, :cond_1
if-eqz v4, :cond_0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-07-23 01:06:17 +00:00
iput-object v1, v0, Lokhttp3/Response;->d:Ln0/a0;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iput-object v2, v0, Lokhttp3/Response;->e:Ln0/y;
2020-05-17 12:40:10 +00:00
iput-object v3, v0, Lokhttp3/Response;->f:Ljava/lang/String;
move v1, p4
iput v1, v0, Lokhttp3/Response;->g:I
move-object v1, p5
2020-07-23 01:06:17 +00:00
iput-object v1, v0, Lokhttp3/Response;->h:Ln0/v;
2020-05-17 12:40:10 +00:00
iput-object v4, v0, Lokhttp3/Response;->i:Lokhttp3/Headers;
move-object v1, p7
2020-07-08 16:44:49 +00:00
iput-object v1, v0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
2020-05-17 12:40:10 +00:00
move-object v1, p8
iput-object v1, v0, Lokhttp3/Response;->k:Lokhttp3/Response;
move-object v1, p9
iput-object v1, v0, Lokhttp3/Response;->l:Lokhttp3/Response;
move-object/from16 v1, p10
iput-object v1, v0, Lokhttp3/Response;->m:Lokhttp3/Response;
move-wide/from16 v1, p11
iput-wide v1, v0, Lokhttp3/Response;->n:J
move-wide/from16 v1, p13
iput-wide v1, v0, Lokhttp3/Response;->o:J
move-object/from16 v1, p15
2020-07-23 01:06:17 +00:00
iput-object v1, v0, Lokhttp3/Response;->p:Ln0/g0/d/c;
2020-05-17 12:40:10 +00:00
return-void
:cond_0
const-string v1, "headers"
2020-07-25 00:57:58 +00:00
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
throw v5
:cond_1
const-string v1, "message"
2020-07-25 00:57:58 +00:00
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
throw v5
:cond_2
const-string v1, "protocol"
2020-07-25 00:57:58 +00:00
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
throw v5
:cond_3
const-string v1, "request"
2020-07-25 00:57:58 +00:00
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
throw v5
.end method
2020-07-08 16:44:49 +00:00
.method public static a(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
.locals 0
2020-07-08 16:44:49 +00:00
and-int/lit8 p2, p3, 0x2
2020-05-17 12:40:10 +00:00
const/4 p2, 0x0
2020-07-08 16:44:49 +00:00
iget-object p0, p0, Lokhttp3/Response;->i:Lokhttp3/Headers;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0, p1}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object p2, p0
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-08 16:44:49 +00:00
return-object p2
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
# virtual methods
.method public final b()Z
2020-05-17 12:40:10 +00:00
.locals 2
iget v0, p0, Lokhttp3/Response;->g:I
const/16 v1, 0xc8
if-le v1, v0, :cond_0
goto :goto_0
:cond_0
const/16 v1, 0x12b
if-lt v1, v0, :cond_1
const/4 v0, 0x1
goto :goto_1
:cond_1
:goto_0
const/4 v0, 0x0
:goto_1
return v0
.end method
2020-07-08 16:44:49 +00:00
.method public close()V
.locals 2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, p0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Lokhttp3/ResponseBody;->close()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-void
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v1, "response is not eligible for a body and must not be closed"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "Response{protocol="
2020-07-14 22:43:59 +00:00
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-07-23 01:06:17 +00:00
iget-object v1, p0, Lokhttp3/Response;->e:Ln0/y;
2020-05-17 12:40:10 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ", code="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lokhttp3/Response;->g:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", message="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/Response;->f:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ", url="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-23 01:06:17 +00:00
iget-object v1, p0, Lokhttp3/Response;->d:Ln0/a0;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iget-object v1, v1, Ln0/a0;->b:Ln0/w;
2020-05-17 12:40:10 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method