2019-12-21 01:41:59 +00:00
|
|
|
.class public final Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetSpectateViewModel.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/spectate/WidgetSpectateViewModel;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Factory"
|
|
|
|
.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 static final synthetic access$observeStores(Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory;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;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p9}, 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;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final 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;
|
|
|
|
.locals 12
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(J",
|
|
|
|
"Lcom/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<",
|
|
|
|
"Lcom/discord/widgets/spectate/WidgetSpectateViewModel$StoreState;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Lcom/discord/stores/StoreApplicationStreaming;->getActiveStream()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v11, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;
|
|
|
|
|
|
|
|
move-object v1, v11
|
|
|
|
|
|
|
|
move-object/from16 v2, p5
|
|
|
|
|
|
|
|
move-wide v3, p1
|
|
|
|
|
|
|
|
move-object/from16 v5, p6
|
|
|
|
|
|
|
|
move-object/from16 v6, p7
|
|
|
|
|
|
|
|
move-object/from16 v7, p4
|
|
|
|
|
|
|
|
move-object v8, p3
|
|
|
|
|
|
|
|
move-object/from16 v9, p8
|
|
|
|
|
|
|
|
move-object/from16 v10, p9
|
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v10}, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$observeStores$1;-><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
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-virtual {v0, v11}, Lrx/Observable;->k(Lg0/l/i;)Lrx/Observable;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "applicationStreamingStor\u2026 }\n }"
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-static {v0, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
|
|
|
.locals 16
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Landroidx/lifecycle/ViewModel;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getApplicationStreaming()Lcom/discord/stores/StoreApplicationStreaming;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getMediaEngine()Lcom/discord/stores/StoreMediaEngine;
|
|
|
|
|
|
|
|
move-result-object v10
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getVoiceChannelSelected()Lcom/discord/stores/StoreVoiceChannelSelected;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getMediaSettings()Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getAnalytics()Lcom/discord/stores/StoreAnalytics;
|
|
|
|
|
|
|
|
move-result-object v13
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getUsers()Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getVideoStreams()Lcom/discord/stores/StoreVideoStreams;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getStreamRtcConnection()Lcom/discord/stores/StoreStreamRtcConnection;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getApplicationStreamPreviews()Lcom/discord/stores/StoreApplicationStreamPreviews;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
new-instance v14, Lcom/discord/widgets/spectate/WidgetSpectateViewModel;
|
|
|
|
|
|
|
|
new-instance v15, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$create$1;
|
|
|
|
|
|
|
|
move-object v1, v15
|
|
|
|
|
|
|
|
move-object/from16 v2, p0
|
|
|
|
|
|
|
|
move-object v3, v0
|
|
|
|
|
|
|
|
move-object v4, v12
|
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v9}, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory$create$1;-><init>(Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Factory;Lcom/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;)V
|
|
|
|
|
|
|
|
move-object v1, v14
|
|
|
|
|
|
|
|
move-object v2, v15
|
|
|
|
|
|
|
|
move-object v4, v10
|
|
|
|
|
|
|
|
move-object v5, v11
|
|
|
|
|
|
|
|
move-object v6, v12
|
|
|
|
|
|
|
|
move-object v7, v13
|
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v7}, Lcom/discord/widgets/spectate/WidgetSpectateViewModel;-><init>(Lkotlin/jvm/functions/Function1;Lcom/discord/stores/StoreApplicationStreaming;Lcom/discord/stores/StoreMediaEngine;Lcom/discord/stores/StoreVoiceChannelSelected;Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreAnalytics;)V
|
|
|
|
|
|
|
|
return-object v14
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v0, "modelClass"
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-static {v0}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|