apkfuckery/com.discord/smali_classes2/z/n.smali

620 lines
12 KiB
Smali
Raw Normal View History

2019-12-13 02:35:12 +00:00
.class public final Lz/n;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "RequestBuilder.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-12-13 02:35:12 +00:00
Lz/n$a;
2019-12-06 03:29:40 +00:00
}
.end annotation
# static fields
.field public static final k:[C
# instance fields
.field public final a:Ljava/lang/String;
2019-12-13 02:35:12 +00:00
.field public final b:Lw/u;
2019-12-06 03:29:40 +00:00
.field public c:Ljava/lang/String;
2019-12-13 02:35:12 +00:00
.field public d:Lw/u$a;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
.field public final e:Lw/y$a;
2019-12-06 03:29:40 +00:00
.field public f:Lokhttp3/MediaType;
.field public final g:Z
.field public h:Lokhttp3/MultipartBody$a;
2019-12-13 02:35:12 +00:00
.field public i:Lw/s$a;
2019-12-06 03:29:40 +00:00
.field public j:Lokhttp3/RequestBody;
# direct methods
.method public static constructor <clinit>()V
.locals 1
const/16 v0, 0x10
new-array v0, v0, [C
fill-array-data v0, :array_0
2019-12-13 02:35:12 +00:00
sput-object v0, Lz/n;->k:[C
2019-12-06 03:29:40 +00:00
return-void
:array_0
.array-data 2
0x30s
0x31s
0x32s
0x33s
0x34s
0x35s
0x36s
0x37s
0x38s
0x39s
0x41s
0x42s
0x43s
0x44s
0x45s
0x46s
.end array-data
.end method
2019-12-13 02:35:12 +00:00
.method public constructor <init>(Ljava/lang/String;Lw/u;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V
2019-12-06 03:29:40 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-12-13 02:35:12 +00:00
iput-object p1, p0, Lz/n;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-object p2, p0, Lz/n;->b:Lw/u;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-object p3, p0, Lz/n;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
new-instance p1, Lw/y$a;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-direct {p1}, Lw/y$a;-><init>()V
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-object p1, p0, Lz/n;->e:Lw/y$a;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-object p5, p0, Lz/n;->f:Lokhttp3/MediaType;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-boolean p6, p0, Lz/n;->g:Z
2019-12-06 03:29:40 +00:00
if-eqz p4, :cond_0
2019-12-13 02:35:12 +00:00
iget-object p1, p0, Lz/n;->e:Lw/y$a;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {p1, p4}, Lw/y$a;->a(Lokhttp3/Headers;)Lw/y$a;
2019-12-06 03:29:40 +00:00
:cond_0
if-eqz p7, :cond_1
2019-12-13 02:35:12 +00:00
new-instance p1, Lw/s$a;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-direct {p1}, Lw/s$a;-><init>()V
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-object p1, p0, Lz/n;->i:Lw/s$a;
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_1
if-eqz p8, :cond_2
new-instance p1, Lokhttp3/MultipartBody$a;
invoke-direct {p1}, Lokhttp3/MultipartBody$a;-><init>()V
2019-12-13 02:35:12 +00:00
iput-object p1, p0, Lz/n;->h:Lokhttp3/MultipartBody$a;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-object p1, p0, Lz/n;->h:Lokhttp3/MultipartBody$a;
2019-12-06 03:29:40 +00:00
sget-object p2, Lokhttp3/MultipartBody;->g:Lokhttp3/MediaType;
invoke-virtual {p1, p2}, Lokhttp3/MultipartBody$a;->a(Lokhttp3/MediaType;)Lokhttp3/MultipartBody$a;
:cond_2
:goto_0
return-void
.end method
# virtual methods
.method public a(Ljava/lang/Object;)V
.locals 0
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
2019-12-13 02:35:12 +00:00
iput-object p1, p0, Lz/n;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
return-void
.end method
.method public a(Ljava/lang/String;Ljava/lang/String;)V
.locals 1
const-string v0, "Content-Type"
invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_1
invoke-static {p2}, Lokhttp3/MediaType;->a(Ljava/lang/String;)Lokhttp3/MediaType;
move-result-object p1
if-eqz p1, :cond_0
2019-12-13 02:35:12 +00:00
iput-object p1, p0, Lz/n;->f:Lokhttp3/MediaType;
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Malformed content type: "
invoke-static {v0, p2}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
2019-12-13 02:35:12 +00:00
iget-object v0, p0, Lz/n;->e:Lw/y$a;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v0, p1, p2}, Lw/y$a;->a(Ljava/lang/String;Ljava/lang/String;)Lw/y$a;
2019-12-06 03:29:40 +00:00
:goto_0
return-void
.end method
.method public a(Ljava/lang/String;Ljava/lang/String;Z)V
.locals 16
move-object/from16 v0, p0
const-string v1, "value"
const-string v2, "name"
const/4 v3, 0x0
if-eqz p3, :cond_2
2019-12-13 02:35:12 +00:00
iget-object v12, v0, Lz/n;->i:Lw/s$a;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
if-eqz p2, :cond_0
2019-12-13 02:35:12 +00:00
iget-object v13, v12, Lw/s$a;->a:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
sget-object v1, Lw/u;->l:Lw/u$b;
2019-12-06 03:29:40 +00:00
const/4 v14, 0x0
const/4 v4, 0x0
const/4 v6, 0x1
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x0
2019-12-13 02:35:12 +00:00
iget-object v10, v12, Lw/s$a;->c:Ljava/nio/charset/Charset;
2019-12-06 03:29:40 +00:00
const/16 v11, 0x53
const/4 v3, 0x0
const-string v5, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
move-object/from16 v2, p1
2019-12-13 02:35:12 +00:00
invoke-static/range {v1 .. v11}, Lw/u$b;->a(Lw/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-interface {v13, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2019-12-13 02:35:12 +00:00
iget-object v13, v12, Lw/s$a;->b:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
sget-object v1, Lw/u;->l:Lw/u$b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-object v10, v12, Lw/s$a;->c:Ljava/nio/charset/Charset;
2019-12-06 03:29:40 +00:00
const-string v5, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
move-object/from16 v2, p2
move v4, v14
2019-12-13 02:35:12 +00:00
invoke-static/range {v1 .. v11}, Lw/u$b;->a(Lw/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-interface {v13, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
2019-12-13 02:35:12 +00:00
invoke-static {v1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v3
:cond_1
2019-12-13 02:35:12 +00:00
invoke-static {v2}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v3
:cond_2
2019-12-13 02:35:12 +00:00
iget-object v12, v0, Lz/n;->i:Lw/s$a;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_4
if-eqz p2, :cond_3
2019-12-13 02:35:12 +00:00
iget-object v13, v12, Lw/s$a;->a:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
sget-object v1, Lw/u;->l:Lw/u$b;
2019-12-06 03:29:40 +00:00
const/4 v14, 0x0
const/4 v4, 0x0
const/4 v15, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x0
2019-12-13 02:35:12 +00:00
iget-object v10, v12, Lw/s$a;->c:Ljava/nio/charset/Charset;
2019-12-06 03:29:40 +00:00
const/16 v11, 0x5b
const/4 v3, 0x0
const/4 v6, 0x0
const-string v5, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
move-object/from16 v2, p1
2019-12-13 02:35:12 +00:00
invoke-static/range {v1 .. v11}, Lw/u$b;->a(Lw/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-interface {v13, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2019-12-13 02:35:12 +00:00
iget-object v13, v12, Lw/s$a;->b:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
sget-object v1, Lw/u;->l:Lw/u$b;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-object v10, v12, Lw/s$a;->c:Ljava/nio/charset/Charset;
2019-12-06 03:29:40 +00:00
const-string v5, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
move-object/from16 v2, p2
move v4, v14
move v7, v15
2019-12-13 02:35:12 +00:00
invoke-static/range {v1 .. v11}, Lw/u$b;->a(Lw/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-interface {v13, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
:goto_0
return-void
:cond_3
2019-12-13 02:35:12 +00:00
invoke-static {v1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v3
:cond_4
2019-12-13 02:35:12 +00:00
invoke-static {v2}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v3
.end method
.method public a(Lokhttp3/Headers;Lokhttp3/RequestBody;)V
.locals 1
2019-12-13 02:35:12 +00:00
iget-object v0, p0, Lz/n;->h:Lokhttp3/MultipartBody$a;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, p1, p2}, Lokhttp3/MultipartBody$a;->a(Lokhttp3/Headers;Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$a;
return-void
.end method
.method public b(Ljava/lang/String;Ljava/lang/String;Z)V
.locals 15
move-object v0, p0
2019-12-13 02:35:12 +00:00
iget-object v1, v0, Lz/n;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
const/4 v12, 0x0
if-eqz v1, :cond_1
2019-12-13 02:35:12 +00:00
iget-object v2, v0, Lz/n;->b:Lw/u;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-virtual {v2, v1}, Lw/u;->a(Ljava/lang/String;)Lw/u$a;
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-12-13 02:35:12 +00:00
iput-object v1, v0, Lz/n;->d:Lw/u$a;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-object v1, v0, Lz/n;->d:Lw/u$a;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
2019-12-13 02:35:12 +00:00
iput-object v12, v0, Lz/n;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_0
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string v2, "Malformed URL. Base: "
invoke-static {v2}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
2019-12-13 02:35:12 +00:00
iget-object v3, v0, Lz/n;->b:Lw/u;
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v3, ", Relative: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-12-13 02:35:12 +00:00
iget-object v3, v0, Lz/n;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
:cond_1
:goto_0
if-eqz p3, :cond_7
2019-12-13 02:35:12 +00:00
iget-object v13, v0, Lz/n;->d:Lw/u$a;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_6
2019-12-13 02:35:12 +00:00
iget-object v1, v13, Lw/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
if-nez v1, :cond_2
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
2019-12-13 02:35:12 +00:00
iput-object v1, v13, Lw/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
:cond_2
2019-12-13 02:35:12 +00:00
iget-object v14, v13, Lw/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
if-eqz v14, :cond_5
2019-12-13 02:35:12 +00:00
sget-object v1, Lw/u;->l:Lw/u$b;
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v6, 0x1
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0xd3
const-string v5, " \"\'<>#&="
move-object/from16 v2, p1
2019-12-13 02:35:12 +00:00
invoke-static/range {v1 .. v11}, Lw/u$b;->a(Lw/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-interface {v14, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-12-13 02:35:12 +00:00
iget-object v13, v13, Lw/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
if-eqz v13, :cond_4
if-eqz p2, :cond_3
2019-12-13 02:35:12 +00:00
sget-object v1, Lw/u;->l:Lw/u$b;
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v6, 0x1
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0xd3
const-string v5, " \"\'<>#&="
move-object/from16 v2, p2
2019-12-13 02:35:12 +00:00
invoke-static/range {v1 .. v11}, Lw/u$b;->a(Lw/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v12
:cond_3
invoke-interface {v13, v12}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1
:cond_4
2019-12-13 02:35:12 +00:00
invoke-static {}, Ls/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v12
:cond_5
2019-12-13 02:35:12 +00:00
invoke-static {}, Ls/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v12
:cond_6
const-string v1, "encodedName"
2019-12-13 02:35:12 +00:00
invoke-static {v1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v12
:cond_7
2019-12-13 02:35:12 +00:00
iget-object v13, v0, Lz/n;->d:Lw/u$a;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_c
2019-12-13 02:35:12 +00:00
iget-object v1, v13, Lw/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
if-nez v1, :cond_8
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
2019-12-13 02:35:12 +00:00
iput-object v1, v13, Lw/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
:cond_8
2019-12-13 02:35:12 +00:00
iget-object v14, v13, Lw/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
if-eqz v14, :cond_b
2019-12-13 02:35:12 +00:00
sget-object v1, Lw/u;->l:Lw/u$b;
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0xdb
const-string v5, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~"
move-object/from16 v2, p1
2019-12-13 02:35:12 +00:00
invoke-static/range {v1 .. v11}, Lw/u$b;->a(Lw/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-interface {v14, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-12-13 02:35:12 +00:00
iget-object v13, v13, Lw/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
if-eqz v13, :cond_a
if-eqz p2, :cond_9
2019-12-13 02:35:12 +00:00
sget-object v1, Lw/u;->l:Lw/u$b;
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0xdb
const-string v5, " !\"#$&\'(),/:;<=>?@[]\\^`{|}~"
move-object/from16 v2, p2
2019-12-13 02:35:12 +00:00
invoke-static/range {v1 .. v11}, Lw/u$b;->a(Lw/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v12
:cond_9
invoke-interface {v13, v12}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:goto_1
return-void
:cond_a
2019-12-13 02:35:12 +00:00
invoke-static {}, Ls/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v12
:cond_b
2019-12-13 02:35:12 +00:00
invoke-static {}, Ls/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v12
:cond_c
const-string v1, "name"
2019-12-13 02:35:12 +00:00
invoke-static {v1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v12
.end method