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

507 lines
10 KiB
Smali
Raw Normal View History

2019-12-20 07:00:35 +00:00
.class public final Lt/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-20 07:00:35 +00:00
Lt/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-20 07:00:35 +00:00
.field public final a:Lq/e$a;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
.field public final b:Lt/c;
2019-12-06 03:29:40 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-20 07:00:35 +00:00
"Lt/c<",
2019-12-06 03:29:40 +00:00
"TR;TT;>;"
}
.end annotation
.end field
2019-12-20 07:00:35 +00:00
.field public final c:Lq/u;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
.field public final d:Lt/e;
2019-12-06 03:29:40 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-20 07:00:35 +00:00
"Lt/e<",
"Lq/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-20 07:00:35 +00:00
.field public final l:[Lt/l;
2019-12-06 03:29:40 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
2019-12-20 07:00:35 +00:00
"Lt/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-20 07:00:35 +00:00
sput-object v0, Lt/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-20 07:00:35 +00:00
sput-object v0, Lt/r;->n:Ljava/util/regex/Pattern;
2019-12-06 03:29:40 +00:00
return-void
.end method
2019-12-20 07:00:35 +00:00
.method public constructor <init>(Lt/r$a;)V
2019-12-06 03:29:40 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2019-12-20 07:00:35 +00:00
"Lt/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-20 07:00:35 +00:00
iget-object v0, p1, Lt/r$a;->a:Lt/q;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v1, v0, Lt/q;->b:Lq/e$a;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-object v1, p0, Lt/r;->a:Lq/e$a;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v1, p1, Lt/r$a;->w:Lt/c;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-object v1, p0, Lt/r;->b:Lt/c;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v0, v0, Lt/q;->c:Lq/u;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-object v0, p0, Lt/r;->c:Lq/u;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v0, p1, Lt/r$a;->v:Lt/e;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-object v0, p0, Lt/r;->d:Lt/e;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v0, p1, Lt/r$a;->m:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-object v0, p0, Lt/r;->e:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v0, p1, Lt/r$a;->q:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-object v0, p0, Lt/r;->f:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v0, p1, Lt/r$a;->r:Lokhttp3/Headers;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-object v0, p0, Lt/r;->g:Lokhttp3/Headers;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v0, p1, Lt/r$a;->s:Lokhttp3/MediaType;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-object v0, p0, Lt/r;->h:Lokhttp3/MediaType;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-boolean v0, p1, Lt/r$a;->n:Z
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-boolean v0, p0, Lt/r;->i:Z
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-boolean v0, p1, Lt/r$a;->o:Z
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-boolean v0, p0, Lt/r;->j:Z
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-boolean v0, p1, Lt/r$a;->p:Z
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-boolean v0, p0, Lt/r;->k:Z
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object p1, p1, Lt/r$a;->u:[Lt/l;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-object p1, p0, Lt/r;->l:[Lt/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-20 07:00:35 +00:00
.method public varargs a([Ljava/lang/Object;)Lq/y;
2019-12-06 03:29:40 +00:00
.locals 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-12-20 07:00:35 +00:00
new-instance v9, Lt/n;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v1, p0, Lt/r;->e:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v2, p0, Lt/r;->c:Lq/u;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v3, p0, Lt/r;->f:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v4, p0, Lt/r;->g:Lokhttp3/Headers;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v5, p0, Lt/r;->h:Lokhttp3/MediaType;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-boolean v6, p0, Lt/r;->i:Z
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-boolean v7, p0, Lt/r;->j:Z
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-boolean v8, p0, Lt/r;->k:Z
2019-12-06 03:29:40 +00:00
move-object v0, v9
2019-12-20 07:00:35 +00:00
invoke-direct/range {v0 .. v8}, Lt/n;-><init>(Ljava/lang/String;Lq/u;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v0, p0, Lt/r;->l:[Lt/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-20 07:00:35 +00:00
invoke-virtual {v4, v9, v5}, Lt/l;->a(Lt/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-20 07:00:35 +00:00
iget-object p1, v9, Lt/n;->d:Lq/u$a;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_2
2019-12-20 07:00:35 +00:00
invoke-virtual {p1}, Lq/u$a;->a()Lq/u;
2019-12-06 03:29:40 +00:00
move-result-object p1
goto :goto_2
:cond_2
2019-12-20 07:00:35 +00:00
iget-object p1, v9, Lt/n;->b:Lq/u;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object v0, v9, Lt/n;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
invoke-virtual {p1, v0}, Lq/u;->b(Ljava/lang/String;)Lq/u;
2019-12-06 03:29:40 +00:00
move-result-object p1
if-eqz p1, :cond_9
:goto_2
2019-12-20 07:00:35 +00:00
iget-object v0, v9, Lt/n;->j:Lokhttp3/RequestBody;
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_6
2019-12-20 07:00:35 +00:00
iget-object v2, v9, Lt/n;->i:Lq/s$a;
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_3
2019-12-20 07:00:35 +00:00
invoke-virtual {v2}, Lq/s$a;->a()Lq/s;
2019-12-06 03:29:40 +00:00
move-result-object v0
goto :goto_3
:cond_3
2019-12-20 07:00:35 +00:00
iget-object v2, v9, Lt/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-20 07:00:35 +00:00
invoke-static {v2}, Lq/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-20 07:00:35 +00:00
iget-boolean v2, v9, Lt/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-20 07:00:35 +00:00
iget-object v1, v9, Lt/n;->f:Lokhttp3/MediaType;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_8
if-eqz v0, :cond_7
2019-12-20 07:00:35 +00:00
new-instance v2, Lt/n$a;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
invoke-direct {v2, v0, v1}, Lt/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-20 07:00:35 +00:00
iget-object v2, v9, Lt/n;->e:Lq/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-20 07:00:35 +00:00
invoke-virtual {v2, v3, v1}, Lq/y$a;->a(Ljava/lang/String;Ljava/lang/String;)Lq/y$a;
2019-12-06 03:29:40 +00:00
:cond_8
:goto_4
2019-12-20 07:00:35 +00:00
iget-object v1, v9, Lt/n;->e:Lq/y$a;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iput-object p1, v1, Lq/y$a;->a:Lq/u;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
iget-object p1, v9, Lt/n;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
invoke-virtual {v1, p1, v0}, Lq/y$a;->a(Ljava/lang/String;Lokhttp3/RequestBody;)Lq/y$a;
2019-12-06 03:29:40 +00:00
2019-12-20 07:00:35 +00:00
invoke-virtual {v1}, Lq/y$a;->a()Lq/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-20 07:00:35 +00:00
iget-object v1, v9, Lt/n;->b:Lq/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-20 07:00:35 +00:00
iget-object v1, v9, Lt/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