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

258 lines
5.7 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-11-09 19:03:49 +00:00
.field public final d:Lc0/b0;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
.field public final e:Lc0/a0;
2020-05-17 12:40:10 +00:00
.field public final f:Ljava/lang/String;
.field public final g:I
2020-11-09 19:03:49 +00:00
.field public final h:Lc0/x;
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-11-09 19:03:49 +00:00
.field public final p:Lc0/h0/g/c;
2020-05-17 12:40:10 +00:00
# direct methods
2020-11-09 19:03:49 +00:00
.method public constructor <init>(Lc0/b0;Lc0/a0;Ljava/lang/String;ILc0/x;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLc0/h0/g/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
2020-09-16 23:45:23 +00:00
const-string v5, "request"
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p1, v5}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
const-string v5, "protocol"
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p2, v5}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
const-string v5, "message"
2020-11-09 19:03:49 +00:00
invoke-static {p3, v5}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
const-string v5, "headers"
2020-11-09 19:03:49 +00:00
invoke-static {p6, v5}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-11-09 19:03:49 +00:00
iput-object v1, v0, Lokhttp3/Response;->d:Lc0/b0;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
iput-object v2, v0, Lokhttp3/Response;->e:Lc0/a0;
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-11-09 19:03:49 +00:00
iput-object v1, v0, Lokhttp3/Response;->h:Lc0/x;
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-11-09 19:03:49 +00:00
iput-object v1, v0, Lokhttp3/Response;->p:Lc0/h0/g/c;
2020-05-17 12:40:10 +00:00
return-void
.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-09-16 23:45:23 +00:00
if-eqz p0, :cond_1
const-string p3, "name"
2020-11-09 19:03:49 +00:00
invoke-static {p1, p3}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
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-09-16 23:45:23 +00:00
:cond_1
throw 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-11-02 23:44:01 +00:00
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-11-09 19:03:49 +00:00
iget-object v1, p0, Lokhttp3/Response;->e:Lc0/a0;
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-11-09 19:03:49 +00:00
iget-object v1, p0, Lokhttp3/Response;->d:Lc0/b0;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
iget-object v1, v1, Lc0/b0;->b:Lc0/y;
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