2019-12-12 08:58:10 +00:00
|
|
|
.class public final LWidgetRemoteAuthViewModel$a;
|
2019-12-21 01:41:59 +00:00
|
|
|
.super Lt/u/b/k;
|
2019-12-12 08:58:10 +00:00
|
|
|
.source "WidgetRemoteAuthViewModel.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = LWidgetRemoteAuthViewModel;-><init>(Ljava/lang/String;Lcom/discord/utilities/rest/RestAPI;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2019-12-21 01:41:59 +00:00
|
|
|
"Lt/u/b/k;",
|
2019-12-12 08:58:10 +00:00
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"Lcom/discord/models/domain/ModelRemoteAuthHandshake;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic this$0:LWidgetRemoteAuthViewModel;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(LWidgetRemoteAuthViewModel;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, LWidgetRemoteAuthViewModel$a;->this$0:LWidgetRemoteAuthViewModel;
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-direct {p0, p1}, Lt/u/b/k;-><init>(I)V
|
2019-12-12 08:58:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Lcom/discord/models/domain/ModelRemoteAuthHandshake;)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, LWidgetRemoteAuthViewModel$a;->this$0:LWidgetRemoteAuthViewModel;
|
|
|
|
|
|
|
|
new-instance v1, LWidgetRemoteAuthViewModel$ViewState$b;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelRemoteAuthHandshake;->getHandshakeToken()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget-object v2, p0, LWidgetRemoteAuthViewModel$a;->this$0:LWidgetRemoteAuthViewModel;
|
|
|
|
|
|
|
|
iget-object v2, v2, LWidgetRemoteAuthViewModel;->d:Lrx/subjects/BehaviorSubject;
|
|
|
|
|
|
|
|
const-string v3, "temporaryBehaviorSubject"
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {v2, v3}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-12 08:58:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Lrx/subjects/BehaviorSubject;->o()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "temporaryBehaviorSubject.value"
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {v2, v3}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-12 08:58:10 +00:00
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-direct {v1, p1, v2}, LWidgetRemoteAuthViewModel$ViewState$b;-><init>(Ljava/lang/String;Z)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Le/a/b/c0;->updateViewState(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "handshakeData"
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-12 08:58:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelRemoteAuthHandshake;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, LWidgetRemoteAuthViewModel$a;->a(Lcom/discord/models/domain/ModelRemoteAuthHandshake;)V
|
|
|
|
|
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|