2020-03-01 21:12:02 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreAuthentication$register$1$1;
|
|
|
|
.super Ljava/lang/Object;
|
2019-08-14 23:59:34 +00:00
|
|
|
.source "StoreAuthentication.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2020-03-01 21:12:02 +00:00
|
|
|
.implements Le0/l/i;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/stores/StoreAuthentication$register$1;->call(Ljava/lang/String;)Lrx/Observable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
2020-03-01 21:12:02 +00:00
|
|
|
accessFlags = 0x19
|
2019-08-14 23:59:34 +00:00
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-03-01 21:12:02 +00:00
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"R:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Le0/l/i<",
|
|
|
|
"TT;",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"+TR;>;>;"
|
2019-08-14 23:59:34 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $fingerprint:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final synthetic this$0:Lcom/discord/stores/StoreAuthentication$register$1;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-03-01 21:12:02 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreAuthentication$register$1;Ljava/lang/String;)V
|
|
|
|
.locals 0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreAuthentication$register$1$1;->this$0:Lcom/discord/stores/StoreAuthentication$register$1;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
iput-object p2, p0, Lcom/discord/stores/StoreAuthentication$register$1$1;->$fingerprint:Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
check-cast p1, Lcom/discord/stores/StoreInviteSettings$InviteCode;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreAuthentication$register$1$1;->call(Lcom/discord/stores/StoreInviteSettings$InviteCode;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
2019-08-14 23:59:34 +00:00
|
|
|
.end method
|
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
.method public final call(Lcom/discord/stores/StoreInviteSettings$InviteCode;)Lrx/Observable;
|
|
|
|
.locals 9
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/stores/StoreInviteSettings$InviteCode;",
|
|
|
|
")",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/models/domain/ModelUser$Token;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreInviteSettings$InviteCode;->getInviteCode()Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
move-object v6, p1
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
if-eqz v6, :cond_2
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
invoke-interface {v6}, Ljava/lang/CharSequence;->length()I
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getNux()Lcom/discord/stores/StoreNux;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v0
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/stores/StoreNux;->setPostRegister(Z)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
:cond_3
|
|
|
|
sget-object p1, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
move-result-object p1
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
new-instance v8, Lcom/discord/restapi/RestAPIParams$AuthRegister;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreAuthentication$register$1$1;->$fingerprint:Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreAuthentication$register$1$1;->this$0:Lcom/discord/stores/StoreAuthentication$register$1;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
iget-object v2, v0, Lcom/discord/stores/StoreAuthentication$register$1;->$username:Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
iget-object v3, v0, Lcom/discord/stores/StoreAuthentication$register$1;->$email:Ljava/lang/String;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
iget-object v4, v0, Lcom/discord/stores/StoreAuthentication$register$1;->$password:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object v5, v0, Lcom/discord/stores/StoreAuthentication$register$1;->$captchaKey:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-boolean v7, v0, Lcom/discord/stores/StoreAuthentication$register$1;->$consent:Z
|
|
|
|
|
|
|
|
move-object v0, v8
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
invoke-direct/range {v0 .. v7}, Lcom/discord/restapi/RestAPIParams$AuthRegister;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
|
2019-08-14 23:59:34 +00:00
|
|
|
|
2020-03-01 21:12:02 +00:00
|
|
|
invoke-virtual {p1, v8}, Lcom/discord/utilities/rest/RestAPI;->postAuthRegister(Lcom/discord/restapi/RestAPIParams$AuthRegister;)Lrx/Observable;
|
2019-08-14 23:59:34 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|