apkfuckery/com.discord/smali/b/n$a.smali
2019-03-26 20:13:28 +01:00

313 lines
6.9 KiB
Smali

.class public final Lb/n$a;
.super Ljava/lang/Object;
.source "Retrofit.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lb/n;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
.field private bAG:Lokhttp3/s;
.field private bAR:Lokhttp3/e$a;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private final bAS:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lb/e$a;",
">;"
}
.end annotation
.end field
.field private final bAT:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lb/c$a;",
">;"
}
.end annotation
.end field
.field private bAU:Z
.field private final bAV:Lb/k;
.field private bAi:Ljava/util/concurrent/Executor;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
invoke-static {}, Lb/k;->Dg()Lb/k;
move-result-object v0
invoke-direct {p0, v0}, Lb/n$a;-><init>(Lb/k;)V
return-void
.end method
.method private constructor <init>(Lb/k;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lb/n$a;->bAS:Ljava/util/List;
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lb/n$a;->bAT:Ljava/util/List;
iput-object p1, p0, Lb/n$a;->bAV:Lb/k;
iget-object p1, p0, Lb/n$a;->bAS:Ljava/util/List;
new-instance v0, Lb/a;
invoke-direct {v0}, Lb/a;-><init>()V
invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
# virtual methods
.method public final Dk()Lb/n;
.locals 8
iget-object v0, p0, Lb/n$a;->bAG:Lokhttp3/s;
if-eqz v0, :cond_2
iget-object v0, p0, Lb/n$a;->bAR:Lokhttp3/e$a;
if-nez v0, :cond_0
new-instance v0, Lokhttp3/t;
invoke-direct {v0}, Lokhttp3/t;-><init>()V
move-object v2, v0
goto :goto_0
:cond_0
move-object v2, v0
:goto_0
iget-object v0, p0, Lb/n$a;->bAi:Ljava/util/concurrent/Executor;
if-nez v0, :cond_1
iget-object v0, p0, Lb/n$a;->bAV:Lb/k;
invoke-virtual {v0}, Lb/k;->Di()Ljava/util/concurrent/Executor;
move-result-object v0
move-object v6, v0
goto :goto_1
:cond_1
move-object v6, v0
:goto_1
new-instance v5, Ljava/util/ArrayList;
iget-object v0, p0, Lb/n$a;->bAT:Ljava/util/List;
invoke-direct {v5, v0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
iget-object v0, p0, Lb/n$a;->bAV:Lb/k;
invoke-virtual {v0, v6}, Lb/k;->a(Ljava/util/concurrent/Executor;)Lb/c$a;
move-result-object v0
invoke-interface {v5, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
new-instance v4, Ljava/util/ArrayList;
iget-object v0, p0, Lb/n$a;->bAS:Ljava/util/List;
invoke-direct {v4, v0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
new-instance v0, Lb/n;
iget-object v3, p0, Lb/n$a;->bAG:Lokhttp3/s;
iget-boolean v7, p0, Lb/n$a;->bAU:Z
move-object v1, v0
invoke-direct/range {v1 .. v7}, Lb/n;-><init>(Lokhttp3/e$a;Lokhttp3/s;Ljava/util/List;Ljava/util/List;Ljava/util/concurrent/Executor;Z)V
return-object v0
:cond_2
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Base URL required."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final a(Lb/c$a;)Lb/n$a;
.locals 2
iget-object v0, p0, Lb/n$a;->bAT:Ljava/util/List;
const-string v1, "factory == null"
invoke-static {p1, v1}, Lb/p;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-object p0
.end method
.method public final a(Lb/e$a;)Lb/n$a;
.locals 2
iget-object v0, p0, Lb/n$a;->bAS:Ljava/util/List;
const-string v1, "factory == null"
invoke-static {p1, v1}, Lb/p;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-object p0
.end method
.method public final a(Lokhttp3/t;)Lb/n$a;
.locals 1
const-string v0, "client == null"
invoke-static {p1, v0}, Lb/p;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lokhttp3/e$a;
const-string v0, "factory == null"
invoke-static {p1, v0}, Lb/p;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lokhttp3/e$a;
iput-object p1, p0, Lb/n$a;->bAR:Lokhttp3/e$a;
return-object p0
.end method
.method public final eA(Ljava/lang/String;)Lb/n$a;
.locals 3
const-string v0, "baseUrl == null"
invoke-static {p1, v0}, Lb/p;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invoke-static {p1}, Lokhttp3/s;->dG(Ljava/lang/String;)Lokhttp3/s;
move-result-object v0
if-eqz v0, :cond_1
const-string p1, "baseUrl == null"
invoke-static {v0, p1}, Lb/p;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
iget-object p1, v0, Lokhttp3/s;->bnk:Ljava/util/List;
const-string v1, ""
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v2
add-int/lit8 v2, v2, -0x1
invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
iput-object v0, p0, Lb/n$a;->bAG:Lokhttp3/s;
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v1, "baseUrl must end in /: "
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string v1, "Illegal URL: "
invoke-virtual {v1, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method