101 lines
2.3 KiB
Smali
101 lines
2.3 KiB
Smali
.class public final Lcom/discord/models/domain/ModelPresence$Status$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "ModelPresence.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/models/domain/ModelPresence$Status;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/discord/models/domain/ModelPresence$Status$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final deserialize(Ljava/lang/String;)Lcom/discord/models/domain/ModelPresence$Status;
|
|
.locals 7
|
|
|
|
invoke-static {}, Lcom/discord/models/domain/ModelPresence$Status;->values()[Lcom/discord/models/domain/ModelPresence$Status;
|
|
|
|
move-result-object v0
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
const/4 v3, 0x0
|
|
|
|
if-ge v2, v1, :cond_2
|
|
|
|
aget-object v4, v0, v2
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelPresence$Status;->getApiStringRepresentation()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
sget-object v3, Ljava/util/Locale;->ROOT:Ljava/util/Locale;
|
|
|
|
const-string v6, "Locale.ROOT"
|
|
|
|
invoke-static {v3, v6}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, v3}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v6, "(this as java.lang.String).toLowerCase(locale)"
|
|
|
|
invoke-static {v3, v6}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
invoke-static {v5, v3}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
move-object v3, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
if-eqz v3, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
sget-object v3, Lcom/discord/models/domain/ModelPresence$Status;->OFFLINE:Lcom/discord/models/domain/ModelPresence$Status;
|
|
|
|
:goto_2
|
|
return-object v3
|
|
.end method
|