2019-12-21 01:41:59 +00:00
|
|
|
.class public final Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetSpectateViewModel.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2020-05-07 23:11:04 +00:00
|
|
|
.implements Lg0/l/i;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory;->observeStores(JLcom/discord/stores/StoreApplicationStreaming;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreUser;Lcom/discord/stores/StoreGuilds;Lcom/discord/stores/StoreVideoStreams;Lcom/discord/stores/StoreStreamRtcConnection;Lcom/discord/stores/StoreApplicationStreamPreviews;)Lrx/Observable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"R:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
2020-05-07 23:11:04 +00:00
|
|
|
"Lg0/l/i<",
|
2019-12-21 01:41:59 +00:00
|
|
|
"TT;",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"+TR;>;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $applicationStreamPreviewStore:Lcom/discord/stores/StoreApplicationStreamPreviews;
|
|
|
|
|
|
|
|
.field public final synthetic $applicationStreamingStore:Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
.field public final synthetic $guildStore:Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
|
|
|
.field public final synthetic $mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
|
|
|
|
.field public final synthetic $streamRtcConnectionStore:Lcom/discord/stores/StoreStreamRtcConnection;
|
|
|
|
|
|
|
|
.field public final synthetic $targetUserId:J
|
|
|
|
|
|
|
|
.field public final synthetic $userStore:Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
.field public final synthetic $videoStreamStore:Lcom/discord/stores/StoreVideoStreams;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreUser;JLcom/discord/stores/StoreGuilds;Lcom/discord/stores/StoreVideoStreams;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreApplicationStreaming;Lcom/discord/stores/StoreStreamRtcConnection;Lcom/discord/stores/StoreApplicationStreamPreviews;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$userStore:Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
iput-wide p2, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$targetUserId:J
|
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$guildStore:Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$videoStreamStore:Lcom/discord/stores/StoreVideoStreams;
|
|
|
|
|
|
|
|
iput-object p6, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
|
|
|
|
iput-object p7, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$applicationStreamingStore:Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
iput-object p8, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$streamRtcConnectionStore:Lcom/discord/stores/StoreStreamRtcConnection;
|
|
|
|
|
|
|
|
iput-object p9, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$applicationStreamPreviewStore:Lcom/discord/stores/StoreApplicationStreamPreviews;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->call(Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final call(Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;)Lrx/Observable;
|
|
|
|
.locals 13
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;",
|
|
|
|
")",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/widgets/spectate/WidgetSpectateViewModel$StoreState;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$StoreState;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
2020-02-27 22:30:35 +00:00
|
|
|
sget-object v6, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;->VOICE_ACTIVITY:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v9}, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$StoreState;-><init>(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuildMember$Computed;Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;Ljava/lang/Integer;ZLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;Lcom/discord/stores/StoreApplicationStreaming$State;Lcom/discord/stores/StoreStreamRtcConnection$State;Lcom/discord/stores/StoreApplicationStreamPreviews$StreamPreview;)V
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
new-instance v0, Lg0/m/e/j;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-direct {v0, p1}, Lg0/m/e/j;-><init>(Ljava/lang/Object;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;->getStream()Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelApplicationStream;->getGuildId()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;->getStream()Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-04-07 08:23:55 +00:00
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelApplicationStream;->getEncodedStreamKey()Ljava/lang/String;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$userStore:Lcom/discord/stores/StoreUser;
|
|
|
|
|
2020-02-06 22:18:40 +00:00
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreUser;->observeAllUsers()Lrx/Observable;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
new-instance v4, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1$1;
|
|
|
|
|
|
|
|
invoke-direct {v4, p0}, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1$1;-><init>(Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;)V
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-virtual {v3, v4}, Lrx/Observable;->f(Lg0/l/i;)Lrx/Observable;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lrx/Observable;->a()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$guildStore:Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
2020-03-19 04:19:10 +00:00
|
|
|
invoke-virtual {v3, v0, v1}, Lcom/discord/stores/StoreGuilds;->observeComputed(J)Lrx/Observable;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1$2;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1$2;-><init>(Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;)V
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->f(Lg0/l/i;)Lrx/Observable;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$videoStreamStore:Lcom/discord/stores/StoreVideoStreams;
|
|
|
|
|
2020-03-28 01:23:20 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreVideoStreams;->observeUserStreams()Lrx/Observable;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1$3;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1$3;-><init>(Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;)V
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->f(Lg0/l/i;)Lrx/Observable;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1$4;->INSTANCE:Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1$4;
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->f(Lg0/l/i;)Lrx/Observable;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings;->isSelfMuted()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings;->getInputMode()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$applicationStreamingStore:Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreApplicationStreaming;->getState()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$streamRtcConnectionStore:Lcom/discord/stores/StoreStreamRtcConnection;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStreamRtcConnection;->getState()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v10
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;->$applicationStreamPreviewStore:Lcom/discord/stores/StoreApplicationStreamPreviews;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/stores/StoreApplicationStreamPreviews;->get(Ljava/lang/String;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
new-instance v12, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1$5;
|
|
|
|
|
|
|
|
invoke-direct {v12, p1}, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1$5;-><init>(Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;)V
|
|
|
|
|
|
|
|
invoke-static/range {v4 .. v12}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func8;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|