apkfuckery/com.discord/smali_classes2/okhttp3/e.smali

365 lines
8.1 KiB
Smali
Raw Normal View History

2019-11-28 00:30:53 +00:00
.class public final Lokhttp3/e;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
.source "CacheControl.kt"
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-11-28 00:30:53 +00:00
Lokhttp3/e$a;,
Lokhttp3/e$b;
2019-07-24 11:27:29 +00:00
}
.end annotation
2019-11-28 00:30:53 +00:00
# static fields
.field public static final bon:Lokhttp3/e;
.field public static final boo:Lokhttp3/e;
.field public static final bop:Lokhttp3/e$b;
# instance fields
.field public final bob:Z
.field public final boc:Z
.field public final bod:I
.field private final boe:I
.field public final bof:Z
.field public final bog:Z
.field public final boh:Z
.field public final boi:I
.field public final boj:I
.field public final bok:Z
.field private final bol:Z
.field private bom:Ljava/lang/String;
.field private final immutable:Z
# direct methods
.method static constructor <clinit>()V
.locals 6
new-instance v0, Lokhttp3/e$b;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lokhttp3/e$b;-><init>(B)V
sput-object v0, Lokhttp3/e;->bop:Lokhttp3/e$b;
new-instance v0, Lokhttp3/e$a;
invoke-direct {v0}, Lokhttp3/e$a;-><init>()V
check-cast v0, Lokhttp3/e$a;
const/4 v1, 0x1
iput-boolean v1, v0, Lokhttp3/e$a;->bob:Z
invoke-virtual {v0}, Lokhttp3/e$a;->Fj()Lokhttp3/e;
move-result-object v0
sput-object v0, Lokhttp3/e;->bon:Lokhttp3/e;
new-instance v0, Lokhttp3/e$a;
invoke-direct {v0}, Lokhttp3/e$a;-><init>()V
check-cast v0, Lokhttp3/e$a;
iput-boolean v1, v0, Lokhttp3/e$a;->bok:Z
sget-object v1, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
const-string v2, "timeUnit"
invoke-static {v1, v2}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, Lokhttp3/e$a;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-wide/32 v2, 0x7fffffff
invoke-virtual {v1, v2, v3}, Ljava/util/concurrent/TimeUnit;->toSeconds(J)J
move-result-wide v4
cmp-long v1, v4, v2
if-lez v1, :cond_0
const v1, 0x7fffffff
goto :goto_0
:cond_0
long-to-int v1, v4
:goto_0
iput v1, v0, Lokhttp3/e$a;->boi:I
invoke-virtual {v0}, Lokhttp3/e$a;->Fj()Lokhttp3/e;
move-result-object v0
sput-object v0, Lokhttp3/e;->boo:Lokhttp3/e;
return-void
2019-07-24 11:27:29 +00:00
.end method
2019-11-28 00:30:53 +00:00
.method private constructor <init>(ZZIIZZZIIZZZLjava/lang/String;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-boolean p1, p0, Lokhttp3/e;->bob:Z
iput-boolean p2, p0, Lokhttp3/e;->boc:Z
iput p3, p0, Lokhttp3/e;->bod:I
iput p4, p0, Lokhttp3/e;->boe:I
iput-boolean p5, p0, Lokhttp3/e;->bof:Z
iput-boolean p6, p0, Lokhttp3/e;->bog:Z
iput-boolean p7, p0, Lokhttp3/e;->boh:Z
iput p8, p0, Lokhttp3/e;->boi:I
iput p9, p0, Lokhttp3/e;->boj:I
iput-boolean p10, p0, Lokhttp3/e;->bok:Z
iput-boolean p11, p0, Lokhttp3/e;->bol:Z
iput-boolean p12, p0, Lokhttp3/e;->immutable:Z
iput-object p13, p0, Lokhttp3/e;->bom:Ljava/lang/String;
return-void
2019-07-24 11:27:29 +00:00
.end method
2019-11-28 00:30:53 +00:00
.method public synthetic constructor <init>(ZZIIZZZIIZZZLjava/lang/String;B)V
.locals 0
invoke-direct/range {p0 .. p13}, Lokhttp3/e;-><init>(ZZIIZZZIIZZZLjava/lang/String;)V
return-void
2019-07-24 11:27:29 +00:00
.end method
2019-11-28 00:30:53 +00:00
# virtual methods
.method public final toString()Ljava/lang/String;
.locals 4
iget-object v0, p0, Lokhttp3/e;->bom:Ljava/lang/String;
if-nez v0, :cond_e
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-boolean v1, p0, Lokhttp3/e;->bob:Z
if-eqz v1, :cond_0
const-string v1, "no-cache, "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_0
iget-boolean v1, p0, Lokhttp3/e;->boc:Z
if-eqz v1, :cond_1
const-string v1, "no-store, "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_1
iget v1, p0, Lokhttp3/e;->bod:I
const-string v2, ", "
const/4 v3, -0x1
if-eq v1, v3, :cond_2
const-string v1, "max-age="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lokhttp3/e;->bod:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_2
iget v1, p0, Lokhttp3/e;->boe:I
if-eq v1, v3, :cond_3
const-string v1, "s-maxage="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lokhttp3/e;->boe:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_3
iget-boolean v1, p0, Lokhttp3/e;->bof:Z
if-eqz v1, :cond_4
const-string v1, "private, "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_4
iget-boolean v1, p0, Lokhttp3/e;->bog:Z
if-eqz v1, :cond_5
const-string v1, "public, "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_5
iget-boolean v1, p0, Lokhttp3/e;->boh:Z
if-eqz v1, :cond_6
const-string v1, "must-revalidate, "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_6
iget v1, p0, Lokhttp3/e;->boi:I
if-eq v1, v3, :cond_7
const-string v1, "max-stale="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lokhttp3/e;->boi:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_7
iget v1, p0, Lokhttp3/e;->boj:I
if-eq v1, v3, :cond_8
const-string v1, "min-fresh="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lokhttp3/e;->boj:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_8
iget-boolean v1, p0, Lokhttp3/e;->bok:Z
if-eqz v1, :cond_9
const-string v1, "only-if-cached, "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_9
iget-boolean v1, p0, Lokhttp3/e;->bol:Z
if-eqz v1, :cond_a
const-string v1, "no-transform, "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_a
iget-boolean v1, p0, Lokhttp3/e;->immutable:Z
if-eqz v1, :cond_b
const-string v1, "immutable, "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_b
move-object v1, v0
check-cast v1, Ljava/lang/CharSequence;
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
move-result v1
if-nez v1, :cond_c
const/4 v1, 0x1
goto :goto_0
:cond_c
const/4 v1, 0x0
:goto_0
if-eqz v1, :cond_d
const-string v0, ""
return-object v0
:cond_d
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
move-result v1
add-int/lit8 v1, v1, -0x2
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
move-result v2
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "StringBuilder().apply(builderAction).toString()"
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object v0, p0, Lokhttp3/e;->bom:Ljava/lang/String;
:cond_e
return-object v0
2019-07-24 11:27:29 +00:00
.end method