2019-11-15 02:21:15 +00:00
|
|
|
.class public final Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetGuildsListViewModel.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Factory"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory$Chunk;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
# instance fields
|
|
|
|
.field public final clock:Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
# direct methods
|
2020-02-14 19:42:02 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/utilities/time/Clock;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory;->clock:Lcom/discord/utilities/time/Clock;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
return-void
|
2020-02-14 19:42:02 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "clock"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2020-02-14 19:42:02 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getClock$p(Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory;)Lcom/discord/utilities/time/Clock;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory;->clock:Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
return-object p0
|
2019-11-15 02:21:15 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final observeStores()Lrx/Observable;
|
2020-02-14 19:42:02 +00:00
|
|
|
.locals 15
|
2019-11-15 02:21:15 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$StoreState;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory$observeStores$1;->INSTANCE:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory$observeStores$1;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory$observeStores$1;->invoke()Lrx/Observable;
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getLurking()Lcom/discord/stores/StoreLurking;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreLurking;->getLurkingGuildIds()Lrx/Observable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory$observeStores$2;->INSTANCE:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory$observeStores$2;
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v0, v2}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v2
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getExpandedGuildFolders()Lcom/discord/stores/StoreExpandedGuildFolders;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreExpandedGuildFolders;->get()Lrx/Observable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v3
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUsers()Lcom/discord/stores/StoreUser;
|
2020-01-31 00:34:35 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUser;->observeMe()Lrx/Observable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
new-instance v4, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory$observeStores$3;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
invoke-direct {v4, p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory$observeStores$3;-><init>(Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v0, v4}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
|
2020-02-14 19:42:02 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/utilities/streams/StreamContextService;
|
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
const/4 v6, 0x0
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
const/16 v13, 0x7f
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
const/4 v14, 0x0
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
move-object v5, v0
|
2020-01-31 00:34:35 +00:00
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
invoke-direct/range {v5 .. v14}, Lcom/discord/utilities/streams/StreamContextService;-><init>(Lcom/discord/stores/StoreApplicationStreaming;Lcom/discord/stores/StoreGuilds;Lcom/discord/stores/StorePermissions;Lcom/discord/stores/StoreUser;Lcom/discord/stores/StoreVoiceStates;Lcom/discord/stores/StoreChannels;Lcom/discord/stores/StoreApplicationStreamPreviews;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/streams/StreamContextService;->getForAllStreamingUsers()Lrx/Observable;
|
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
move-result-object v5
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
sget-object v6, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory$observeStores$4;->INSTANCE:Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory$observeStores$4;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-02-14 19:42:02 +00:00
|
|
|
invoke-static/range {v1 .. v6}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func5;)Lrx/Observable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const-string v1, "Observable.combineLatest\u2026ontexts\n )\n }"
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x64
|
|
|
|
|
|
|
|
invoke-static {v0, v2, v3, v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->leadingEdgeThrottle(Lrx/Observable;JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Landroidx/lifecycle/ViewModel;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel$Factory;->observeStores()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Lcom/discord/widgets/guilds/list/WidgetGuildsListViewModel;-><init>(Lrx/Observable;)V
|
|
|
|
|
|
|
|
return-object p1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "modelClass"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2019-11-15 02:21:15 +00:00
|
|
|
.end method
|