55 lines
1.7 KiB
Smali
55 lines
1.7 KiB
Smali
.class public final Lcom/discord/models/ktx/ModelUserExtensionsKt;
|
|
.super Ljava/lang/Object;
|
|
.source "ModelUserExtensions.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final toPerson(Lcom/discord/models/domain/ModelUser;)Landroidx/core/app/Person;
|
|
.locals 3
|
|
|
|
const-string v0, "$this$toPerson"
|
|
|
|
invoke-static {p0, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Landroidx/core/app/Person$Builder;
|
|
|
|
invoke-direct {v0}, Landroidx/core/app/Person$Builder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUser;->getUsername()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/core/app/Person$Builder;->setName(Ljava/lang/CharSequence;)Landroidx/core/app/Person$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/core/app/Person$Builder;->setKey(Ljava/lang/String;)Landroidx/core/app/Person$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/ModelUser;->isBot()Z
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/core/app/Person$Builder;->setBot(Z)Landroidx/core/app/Person$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroidx/core/app/Person$Builder;->build()Landroidx/core/app/Person;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "Person.Builder()\n \u2026t(isBot)\n .build()"
|
|
|
|
invoke-static {p0, v0}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|