115 lines
3.5 KiB
Smali
115 lines
3.5 KiB
Smali
.class public final Lcom/discord/stores/StoreGatewayConnection$ClientState$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "StoreGatewayConnection.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/stores/StoreGatewayConnection$ClientState;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private 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/stores/StoreGatewayConnection$ClientState$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final initialize(Lcom/discord/stores/StoreStream;Lrx/Scheduler;)Lrx/Observable;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/stores/StoreStream;",
|
|
"Lrx/Scheduler;",
|
|
")",
|
|
"Lrx/Observable<",
|
|
"Lcom/discord/stores/StoreGatewayConnection$ClientState;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "stream"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "scheduler"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {}, Lcom/miguelgaeta/backgrounded/Backgrounded;->get()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p1, Lcom/discord/stores/StoreStream;->authentication:Lcom/discord/stores/StoreAuthentication;
|
|
|
|
const-string v2, "stream\n .authentication"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreAuthentication;->getAuthedToken()Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object p1, p1, Lcom/discord/stores/StoreStream;->voiceChannelSelected:Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreVoiceChannelSelected;->getId()Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v2, Lcom/discord/stores/StoreGatewayConnection$ClientState$Companion$initialize$1;->INSTANCE:Lcom/discord/stores/StoreGatewayConnection$ClientState$Companion$initialize$1;
|
|
|
|
check-cast v2, Lkotlin/jvm/functions/Function3;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
new-instance v3, Lcom/discord/stores/StoreGatewayConnection$sam$rx_functions_Func3$0;
|
|
|
|
invoke-direct {v3, v2}, Lcom/discord/stores/StoreGatewayConnection$sam$rx_functions_Func3$0;-><init>(Lkotlin/jvm/functions/Function3;)V
|
|
|
|
move-object v2, v3
|
|
|
|
:cond_0
|
|
check-cast v2, Lrx/functions/Func3;
|
|
|
|
invoke-static {v0, v1, p1, v2}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func3;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p2}, Lrx/Observable;->a(Lrx/Scheduler;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {}, Lcom/discord/app/g;->dw()Lrx/Observable$Transformer;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "Observable\n \u2026onDistinctUntilChanged())"
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
.end method
|