apkfuckery/com.discord/smali_classes2/a0/r.smali

507 lines
11 KiB
Smali
Raw Normal View History

2019-12-21 01:41:59 +00:00
.class public final La0/r;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "ServiceMethod.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-12-21 01:41:59 +00:00
La0/r$a;
2019-12-06 03:29:40 +00:00
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
"T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# static fields
.field public static final m:Ljava/util/regex/Pattern;
.field public static final n:Ljava/util/regex/Pattern;
# instance fields
2019-12-21 01:41:59 +00:00
.field public final a:Lx/e$a;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
.field public final b:La0/c;
2019-12-06 03:29:40 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-21 01:41:59 +00:00
"La0/c<",
2019-12-06 03:29:40 +00:00
"TR;TT;>;"
}
.end annotation
.end field
2019-12-21 01:41:59 +00:00
.field public final c:Lx/u;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
.field public final d:La0/e;
2019-12-06 03:29:40 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-21 01:41:59 +00:00
"La0/e<",
"Lx/z;",
2019-12-06 03:29:40 +00:00
"TR;>;"
}
.end annotation
.end field
.field public final e:Ljava/lang/String;
.field public final f:Ljava/lang/String;
.field public final g:Lokhttp3/Headers;
.field public final h:Lokhttp3/MediaType;
.field public final i:Z
.field public final j:Z
.field public final k:Z
2019-12-21 01:41:59 +00:00
.field public final l:[La0/l;
2019-12-06 03:29:40 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
2019-12-21 01:41:59 +00:00
"La0/l<",
2019-12-06 03:29:40 +00:00
"*>;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "\\{([a-zA-Z][a-zA-Z0-9_-]*)\\}"
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
move-result-object v0
2019-12-21 01:41:59 +00:00
sput-object v0, La0/r;->m:Ljava/util/regex/Pattern;
2019-12-06 03:29:40 +00:00
const-string v0, "[a-zA-Z][a-zA-Z0-9_-]*"
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
move-result-object v0
2019-12-21 01:41:59 +00:00
sput-object v0, La0/r;->n:Ljava/util/regex/Pattern;
2019-12-06 03:29:40 +00:00
return-void
.end method
2019-12-21 01:41:59 +00:00
.method public constructor <init>(La0/r$a;)V
2019-12-06 03:29:40 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2019-12-21 01:41:59 +00:00
"La0/r$a<",
2019-12-06 03:29:40 +00:00
"TR;TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-12-21 01:41:59 +00:00
iget-object v0, p1, La0/r$a;->a:La0/q;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v1, v0, La0/q;->b:Lx/e$a;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-object v1, p0, La0/r;->a:Lx/e$a;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v1, p1, La0/r$a;->w:La0/c;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-object v1, p0, La0/r;->b:La0/c;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, v0, La0/q;->c:Lx/u;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p0, La0/r;->c:Lx/u;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p1, La0/r$a;->v:La0/e;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p0, La0/r;->d:La0/e;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p1, La0/r$a;->m:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p0, La0/r;->e:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p1, La0/r$a;->q:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p0, La0/r;->f:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p1, La0/r$a;->r:Lokhttp3/Headers;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p0, La0/r;->g:Lokhttp3/Headers;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p1, La0/r$a;->s:Lokhttp3/MediaType;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p0, La0/r;->h:Lokhttp3/MediaType;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-boolean v0, p1, La0/r$a;->n:Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-boolean v0, p0, La0/r;->i:Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-boolean v0, p1, La0/r$a;->o:Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-boolean v0, p0, La0/r;->j:Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-boolean v0, p1, La0/r$a;->p:Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-boolean v0, p0, La0/r;->k:Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object p1, p1, La0/r$a;->u:[La0/l;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-object p1, p0, La0/r;->l:[La0/l;
2019-12-06 03:29:40 +00:00
return-void
.end method
.method public static a(Ljava/lang/Class;)Ljava/lang/Class;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
sget-object v0, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
if-ne v0, p0, :cond_0
const-class p0, Ljava/lang/Boolean;
return-object p0
:cond_0
sget-object v0, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;
if-ne v0, p0, :cond_1
const-class p0, Ljava/lang/Byte;
return-object p0
:cond_1
sget-object v0, Ljava/lang/Character;->TYPE:Ljava/lang/Class;
if-ne v0, p0, :cond_2
const-class p0, Ljava/lang/Character;
return-object p0
:cond_2
sget-object v0, Ljava/lang/Double;->TYPE:Ljava/lang/Class;
if-ne v0, p0, :cond_3
const-class p0, Ljava/lang/Double;
return-object p0
:cond_3
sget-object v0, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
if-ne v0, p0, :cond_4
const-class p0, Ljava/lang/Float;
return-object p0
:cond_4
sget-object v0, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
if-ne v0, p0, :cond_5
const-class p0, Ljava/lang/Integer;
return-object p0
:cond_5
sget-object v0, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
if-ne v0, p0, :cond_6
const-class p0, Ljava/lang/Long;
return-object p0
:cond_6
sget-object v0, Ljava/lang/Short;->TYPE:Ljava/lang/Class;
if-ne v0, p0, :cond_7
const-class p0, Ljava/lang/Short;
:cond_7
return-object p0
.end method
# virtual methods
2019-12-21 01:41:59 +00:00
.method public varargs a([Ljava/lang/Object;)Lx/y;
2019-12-06 03:29:40 +00:00
.locals 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-12-21 01:41:59 +00:00
new-instance v9, La0/n;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v1, p0, La0/r;->e:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v2, p0, La0/r;->c:Lx/u;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v3, p0, La0/r;->f:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v4, p0, La0/r;->g:Lokhttp3/Headers;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v5, p0, La0/r;->h:Lokhttp3/MediaType;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-boolean v6, p0, La0/r;->i:Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-boolean v7, p0, La0/r;->j:Z
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-boolean v8, p0, La0/r;->k:Z
2019-12-06 03:29:40 +00:00
move-object v0, v9
2019-12-21 01:41:59 +00:00
invoke-direct/range {v0 .. v8}, La0/n;-><init>(Ljava/lang/String;Lx/u;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, p0, La0/r;->l:[La0/l;
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
if-eqz p1, :cond_0
array-length v2, p1
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
array-length v3, v0
if-ne v2, v3, :cond_a
const/4 v3, 0x0
:goto_1
if-ge v3, v2, :cond_1
aget-object v4, v0, v3
aget-object v5, p1, v3
2019-12-21 01:41:59 +00:00
invoke-virtual {v4, v9, v5}, La0/l;->a(La0/n;Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
add-int/lit8 v3, v3, 0x1
goto :goto_1
:cond_1
2019-12-21 01:41:59 +00:00
iget-object p1, v9, La0/n;->d:Lx/u$a;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_2
2019-12-21 01:41:59 +00:00
invoke-virtual {p1}, Lx/u$a;->a()Lx/u;
2019-12-06 03:29:40 +00:00
move-result-object p1
goto :goto_2
:cond_2
2019-12-21 01:41:59 +00:00
iget-object p1, v9, La0/n;->b:Lx/u;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v0, v9, La0/n;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {p1, v0}, Lx/u;->b(Ljava/lang/String;)Lx/u;
2019-12-06 03:29:40 +00:00
move-result-object p1
if-eqz p1, :cond_9
:goto_2
2019-12-21 01:41:59 +00:00
iget-object v0, v9, La0/n;->j:Lokhttp3/RequestBody;
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_6
2019-12-21 01:41:59 +00:00
iget-object v2, v9, La0/n;->i:Lx/s$a;
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_3
2019-12-21 01:41:59 +00:00
invoke-virtual {v2}, Lx/s$a;->a()Lx/s;
2019-12-06 03:29:40 +00:00
move-result-object v0
goto :goto_3
:cond_3
2019-12-21 01:41:59 +00:00
iget-object v2, v9, La0/n;->h:Lokhttp3/MultipartBody$a;
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_5
iget-object v0, v2, Lokhttp3/MultipartBody$a;->c:Ljava/util/List;
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
move-result v0
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_4
new-instance v0, Lokhttp3/MultipartBody;
iget-object v1, v2, Lokhttp3/MultipartBody$a;->a:Lokio/ByteString;
iget-object v3, v2, Lokhttp3/MultipartBody$a;->b:Lokhttp3/MediaType;
iget-object v2, v2, Lokhttp3/MultipartBody$a;->c:Ljava/util/List;
2019-12-21 01:41:59 +00:00
invoke-static {v2}, Lx/c0/a;->b(Ljava/util/List;)Ljava/util/List;
2019-12-06 03:29:40 +00:00
move-result-object v2
invoke-direct {v0, v1, v3, v2}, Lokhttp3/MultipartBody;-><init>(Lokio/ByteString;Lokhttp3/MediaType;Ljava/util/List;)V
goto :goto_3
:cond_4
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Multipart body must have at least one part."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_5
2019-12-21 01:41:59 +00:00
iget-boolean v2, v9, La0/n;->g:Z
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_6
const/4 v0, 0x0
new-array v1, v1, [B
invoke-static {v0, v1}, Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;
move-result-object v0
:cond_6
:goto_3
2019-12-21 01:41:59 +00:00
iget-object v1, v9, La0/n;->f:Lokhttp3/MediaType;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_8
if-eqz v0, :cond_7
2019-12-21 01:41:59 +00:00
new-instance v2, La0/n$a;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {v2, v0, v1}, La0/n$a;-><init>(Lokhttp3/RequestBody;Lokhttp3/MediaType;)V
2019-12-06 03:29:40 +00:00
move-object v0, v2
goto :goto_4
:cond_7
2019-12-21 01:41:59 +00:00
iget-object v2, v9, La0/n;->e:Lx/y$a;
2019-12-06 03:29:40 +00:00
invoke-virtual {v1}, Lokhttp3/MediaType;->toString()Ljava/lang/String;
move-result-object v1
const-string v3, "Content-Type"
2019-12-21 01:41:59 +00:00
invoke-virtual {v2, v3, v1}, Lx/y$a;->a(Ljava/lang/String;Ljava/lang/String;)Lx/y$a;
2019-12-06 03:29:40 +00:00
:cond_8
:goto_4
2019-12-21 01:41:59 +00:00
iget-object v1, v9, La0/n;->e:Lx/y$a;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iput-object p1, v1, Lx/y$a;->a:Lx/u;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object p1, v9, La0/n;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v1, p1, v0}, Lx/y$a;->a(Ljava/lang/String;Lokhttp3/RequestBody;)Lx/y$a;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
invoke-virtual {v1}, Lx/y$a;->a()Lx/y;
2019-12-06 03:29:40 +00:00
move-result-object p1
return-object p1
:cond_9
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Malformed URL. Base: "
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
2019-12-21 01:41:59 +00:00
iget-object v1, v9, La0/n;->b:Lx/u;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ", Relative: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-12-21 01:41:59 +00:00
iget-object v1, v9, La0/n;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_a
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v1, "Argument count ("
const-string v3, ") doesn\'t match expected count ("
invoke-static {v1, v2, v3}, Le/e/b/a/a;->b(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
array-length v0, v0
const-string v2, ")"
invoke-static {v1, v0, v2}, Le/e/b/a/a;->a(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method