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

507 lines
11 KiB
Smali
Raw Normal View History

2020-04-27 20:53:11 +00:00
.class public final Le0/r;
2020-03-27 22:23:51 +00:00
.super Ljava/lang/Object;
.source "ServiceMethod.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-04-27 20:53:11 +00:00
Le0/r$a;
2020-03-27 22:23:51 +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
2020-04-27 20:53:11 +00:00
.field public final a:Lb0/e$a;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
.field public final b:Le0/c;
2020-03-27 22:23:51 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-04-27 20:53:11 +00:00
"Le0/c<",
2020-03-27 22:23:51 +00:00
"TR;TT;>;"
}
.end annotation
.end field
2020-04-27 20:53:11 +00:00
.field public final c:Lb0/u;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
.field public final d:Le0/e;
2020-03-27 22:23:51 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-04-27 20:53:11 +00:00
"Le0/e<",
"Lb0/z;",
2020-03-27 22:23:51 +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
2020-04-27 20:53:11 +00:00
.field public final l:[Le0/l;
2020-03-27 22:23:51 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
2020-04-27 20:53:11 +00:00
"Le0/l<",
2020-03-27 22:23:51 +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
2020-04-27 20:53:11 +00:00
sput-object v0, Le0/r;->m:Ljava/util/regex/Pattern;
2020-03-27 22:23:51 +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
2020-04-27 20:53:11 +00:00
sput-object v0, Le0/r;->n:Ljava/util/regex/Pattern;
2020-03-27 22:23:51 +00:00
return-void
.end method
2020-04-27 20:53:11 +00:00
.method public constructor <init>(Le0/r$a;)V
2020-03-27 22:23:51 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-04-27 20:53:11 +00:00
"Le0/r$a<",
2020-03-27 22:23:51 +00:00
"TR;TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-04-27 20:53:11 +00:00
iget-object v0, p1, Le0/r$a;->a:Le0/q;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v1, v0, Le0/q;->b:Lb0/e$a;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-object v1, p0, Le0/r;->a:Lb0/e$a;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v1, p1, Le0/r$a;->w:Le0/c;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-object v1, p0, Le0/r;->b:Le0/c;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, v0, Le0/q;->c:Lb0/u;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-object v0, p0, Le0/r;->c:Lb0/u;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, p1, Le0/r$a;->v:Le0/e;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-object v0, p0, Le0/r;->d:Le0/e;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, p1, Le0/r$a;->m:Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-object v0, p0, Le0/r;->e:Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, p1, Le0/r$a;->q:Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-object v0, p0, Le0/r;->f:Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, p1, Le0/r$a;->r:Lokhttp3/Headers;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-object v0, p0, Le0/r;->g:Lokhttp3/Headers;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, p1, Le0/r$a;->s:Lokhttp3/MediaType;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-object v0, p0, Le0/r;->h:Lokhttp3/MediaType;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-boolean v0, p1, Le0/r$a;->n:Z
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-boolean v0, p0, Le0/r;->i:Z
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-boolean v0, p1, Le0/r$a;->o:Z
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-boolean v0, p0, Le0/r;->j:Z
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-boolean v0, p1, Le0/r$a;->p:Z
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-boolean v0, p0, Le0/r;->k:Z
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object p1, p1, Le0/r$a;->u:[Le0/l;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-object p1, p0, Le0/r;->l:[Le0/l;
2020-03-27 22:23:51 +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
2020-04-27 20:53:11 +00:00
.method public varargs a([Ljava/lang/Object;)Lb0/y;
2020-03-27 22:23:51 +00:00
.locals 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2020-04-27 20:53:11 +00:00
new-instance v9, Le0/n;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v1, p0, Le0/r;->e:Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v2, p0, Le0/r;->c:Lb0/u;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v3, p0, Le0/r;->f:Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v4, p0, Le0/r;->g:Lokhttp3/Headers;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v5, p0, Le0/r;->h:Lokhttp3/MediaType;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-boolean v6, p0, Le0/r;->i:Z
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-boolean v7, p0, Le0/r;->j:Z
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-boolean v8, p0, Le0/r;->k:Z
2020-03-27 22:23:51 +00:00
move-object v0, v9
2020-04-27 20:53:11 +00:00
invoke-direct/range {v0 .. v8}, Le0/n;-><init>(Ljava/lang/String;Lb0/u;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, p0, Le0/r;->l:[Le0/l;
2020-03-27 22:23:51 +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
2020-04-27 20:53:11 +00:00
invoke-virtual {v4, v9, v5}, Le0/l;->a(Le0/n;Ljava/lang/Object;)V
2020-03-27 22:23:51 +00:00
add-int/lit8 v3, v3, 0x1
goto :goto_1
:cond_1
2020-04-27 20:53:11 +00:00
iget-object p1, v9, Le0/n;->d:Lb0/u$a;
2020-03-27 22:23:51 +00:00
if-eqz p1, :cond_2
2020-04-27 20:53:11 +00:00
invoke-virtual {p1}, Lb0/u$a;->a()Lb0/u;
2020-03-27 22:23:51 +00:00
move-result-object p1
goto :goto_2
:cond_2
2020-04-27 20:53:11 +00:00
iget-object p1, v9, Le0/n;->b:Lb0/u;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, v9, Le0/n;->c:Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {p1, v0}, Lb0/u;->b(Ljava/lang/String;)Lb0/u;
2020-03-27 22:23:51 +00:00
move-result-object p1
if-eqz p1, :cond_9
:goto_2
2020-04-27 20:53:11 +00:00
iget-object v0, v9, Le0/n;->j:Lokhttp3/RequestBody;
2020-03-27 22:23:51 +00:00
if-nez v0, :cond_6
2020-04-27 20:53:11 +00:00
iget-object v2, v9, Le0/n;->i:Lb0/s$a;
2020-03-27 22:23:51 +00:00
if-eqz v2, :cond_3
2020-04-27 20:53:11 +00:00
invoke-virtual {v2}, Lb0/s$a;->a()Lb0/s;
2020-03-27 22:23:51 +00:00
move-result-object v0
goto :goto_3
:cond_3
2020-04-27 20:53:11 +00:00
iget-object v2, v9, Le0/n;->h:Lokhttp3/MultipartBody$a;
2020-03-27 22:23:51 +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;
2020-04-27 20:53:11 +00:00
invoke-static {v2}, Lb0/c0/a;->b(Ljava/util/List;)Ljava/util/List;
2020-03-27 22:23:51 +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
2020-04-27 20:53:11 +00:00
iget-boolean v2, v9, Le0/n;->g:Z
2020-03-27 22:23:51 +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
2020-04-27 20:53:11 +00:00
iget-object v1, v9, Le0/n;->f:Lokhttp3/MediaType;
2020-03-27 22:23:51 +00:00
if-eqz v1, :cond_8
if-eqz v0, :cond_7
2020-04-27 20:53:11 +00:00
new-instance v2, Le0/n$a;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
invoke-direct {v2, v0, v1}, Le0/n$a;-><init>(Lokhttp3/RequestBody;Lokhttp3/MediaType;)V
2020-03-27 22:23:51 +00:00
move-object v0, v2
goto :goto_4
:cond_7
2020-04-27 20:53:11 +00:00
iget-object v2, v9, Le0/n;->e:Lb0/y$a;
2020-03-27 22:23:51 +00:00
invoke-virtual {v1}, Lokhttp3/MediaType;->toString()Ljava/lang/String;
move-result-object v1
const-string v3, "Content-Type"
2020-04-27 20:53:11 +00:00
invoke-virtual {v2, v3, v1}, Lb0/y$a;->a(Ljava/lang/String;Ljava/lang/String;)Lb0/y$a;
2020-03-27 22:23:51 +00:00
:cond_8
:goto_4
2020-04-27 20:53:11 +00:00
iget-object v1, v9, Le0/n;->e:Lb0/y$a;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iput-object p1, v1, Lb0/y$a;->a:Lb0/u;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
iget-object p1, v9, Le0/n;->a:Ljava/lang/String;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {v1, p1, v0}, Lb0/y$a;->a(Ljava/lang/String;Lokhttp3/RequestBody;)Lb0/y$a;
2020-03-27 22:23:51 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {v1}, Lb0/y$a;->a()Lb0/y;
2020-03-27 22:23:51 +00:00
move-result-object p1
return-object p1
:cond_9
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Malformed URL. Base: "
2020-04-27 20:53:11 +00:00
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-03-27 22:23:51 +00:00
move-result-object v0
2020-04-27 20:53:11 +00:00
iget-object v1, v9, Le0/n;->b:Lb0/u;
2020-03-27 22:23:51 +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;
2020-04-27 20:53:11 +00:00
iget-object v1, v9, Le0/n;->c:Ljava/lang/String;
2020-03-27 22:23:51 +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 ("
2020-04-27 20:53:11 +00:00
invoke-static {v1, v2, v3}, Le/e/b/a/a;->b(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
2020-03-27 22:23:51 +00:00
move-result-object v1
array-length v0, v0
const-string v2, ")"
2020-04-27 20:53:11 +00:00
invoke-static {v1, v0, v2}, Le/e/b/a/a;->a(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
2020-03-27 22:23:51 +00:00
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method