95 lines
2.5 KiB
Smali
95 lines
2.5 KiB
Smali
.class public final Lcom/discord/restapi/RestAPIParams$ConnectedAccount$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "RestAPIParams.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/restapi/RestAPIParams$ConnectedAccount;
|
|
.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/restapi/RestAPIParams$ConnectedAccount$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final create(Lcom/discord/models/domain/ModelConnectedAccount;ZZI)Lcom/discord/restapi/RestAPIParams$ConnectedAccount;
|
|
.locals 10
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v9, Lcom/discord/restapi/RestAPIParams$ConnectedAccount;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelConnectedAccount;->getId()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v0, "connectedAccount.id"
|
|
|
|
invoke-static {v2, v0}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelConnectedAccount;->getUsername()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v0, "connectedAccount.username"
|
|
|
|
invoke-static {v3, v0}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelConnectedAccount;->isRevoked()Z
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelConnectedAccount;->getType()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v0, "connectedAccount.type"
|
|
|
|
invoke-static {v6, v0}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelConnectedAccount;->isVerified()Z
|
|
|
|
move-result v7
|
|
|
|
move-object v0, v9
|
|
|
|
move v1, p2
|
|
|
|
move v5, p3
|
|
|
|
move v8, p4
|
|
|
|
invoke-direct/range {v0 .. v8}, Lcom/discord/restapi/RestAPIParams$ConnectedAccount;-><init>(ZLjava/lang/String;Ljava/lang/String;ZZLjava/lang/String;ZI)V
|
|
|
|
return-object v9
|
|
|
|
:cond_0
|
|
const-string p1, "connectedAccount"
|
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|