apkfuckery/com.discord/smali_classes2/g0/j.smali

215 lines
5 KiB
Smali
Raw Normal View History

2020-10-05 23:18:16 +00:00
.class public final Lg0/j;
2020-09-02 04:07:20 +00:00
.super Ljava/lang/Object;
2020-10-05 23:18:16 +00:00
.source "Challenge.kt"
2020-09-02 04:07:20 +00:00
2020-09-29 21:44:44 +00:00
# instance fields
2020-10-05 23:18:16 +00:00
.field public final a:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public final b:Ljava/lang/String;
2020-09-16 23:45:23 +00:00
# direct methods
2020-10-05 23:18:16 +00:00
.method public constructor <init>(Ljava/lang/String;Ljava/util/Map;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
const-string v0, "scheme"
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
const-string v0, "authParams"
invoke-static {p2, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
iput-object p1, p0, Lg0/j;->b:Ljava/lang/String;
new-instance p1, Ljava/util/LinkedHashMap;
invoke-direct {p1}, Ljava/util/LinkedHashMap;-><init>()V
invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p2
invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p2
:goto_0
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
if-eqz v1, :cond_0
sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;
const-string v3, "US"
invoke-static {v2, v3}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object v1
const-string v2, "(this as java.lang.String).toLowerCase(locale)"
invoke-static {v1, v2}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
goto :goto_1
:cond_0
const/4 v1, 0x0
:goto_1
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_1
invoke-static {p1}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p1
const-string p2, "unmodifiableMap<String?, String>(newAuthParams)"
invoke-static {p1, p2}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p1, p0, Lg0/j;->a:Ljava/util/Map;
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
return-void
.end method
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
# virtual methods
2020-10-05 23:18:16 +00:00
.method public equals(Ljava/lang/Object;)Z
.locals 2
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
instance-of v0, p1, Lg0/j;
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
if-eqz v0, :cond_0
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
check-cast p1, Lg0/j;
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
iget-object v0, p1, Lg0/j;->b:Ljava/lang/String;
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
iget-object v1, p0, Lg0/j;->b:Ljava/lang/String;
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {v0, v1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
move-result v0
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
if-eqz v0, :cond_0
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
iget-object p1, p1, Lg0/j;->a:Ljava/util/Map;
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
iget-object v0, p0, Lg0/j;->a:Ljava/util/Map;
invoke-static {p1, v0}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
2020-09-29 21:44:44 +00:00
.end method
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
.method public hashCode()I
.locals 3
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
iget-object v0, p0, Lg0/j;->b:Ljava/lang/String;
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
const/16 v1, 0x383
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
const/16 v2, 0x1f
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {v0, v1, v2}, Lf/e/c/a/a;->T(Ljava/lang/String;II)I
move-result v0
iget-object v1, p0, Lg0/j;->a:Ljava/util/Map;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v1, v0
return v1
2020-09-16 23:45:23 +00:00
.end method
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
.method public toString()Ljava/lang/String;
.locals 2
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
new-instance v0, Ljava/lang/StringBuilder;
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
iget-object v1, p0, Lg0/j;->b:Ljava/lang/String;
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-16 21:45:36 +00:00
2020-10-05 23:18:16 +00:00
const-string v1, " authParams="
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-29 21:44:44 +00:00
2020-10-05 23:18:16 +00:00
iget-object v1, p0, Lg0/j;->a:Ljava/util/Map;
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2020-09-16 21:45:36 +00:00
2020-09-16 23:45:23 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-09-16 21:45:36 +00:00
move-result-object v0
2020-09-02 04:07:20 +00:00
return-object v0
2020-07-23 01:06:17 +00:00
.end method