2020-03-03 02:12:30 +00:00
|
|
|
.class public final Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WidgetGuildProfileSheetViewModel.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Landroidx/lifecycle/ViewModelProvider$Factory;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Factory"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final guildId:J
|
|
|
|
|
|
|
|
.field public final viewingGuild:Z
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(JZ)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-wide p1, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;->guildId:J
|
|
|
|
|
|
|
|
iput-boolean p3, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;->viewingGuild:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
.method public static final synthetic access$getGuildId$p(Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;)J
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;->guildId:J
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
2020-03-03 02:12:30 +00:00
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public create(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
2020-03-09 23:19:51 +00:00
|
|
|
.locals 7
|
2020-03-03 02:12:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Landroidx/lifecycle/ViewModel;",
|
|
|
|
">(",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"TT;>;)TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;->observeStores()Lrx/Observable;
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-result-object v1
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUserGuildSettings()Lcom/discord/stores/StoreUserGuildSettings;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getMessageAck()Lcom/discord/stores/StoreMessageAck;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
iget-boolean v5, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;->viewingGuild:Z
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v6}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel;-><init>(Lrx/Observable;Lcom/discord/stores/StoreUserSettings;Lcom/discord/stores/StoreUserGuildSettings;Lcom/discord/stores/StoreMessageAck;ZLcom/discord/utilities/rest/RestAPI;)V
|
2020-03-03 02:12:30 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "modelClass"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final observeStores()Lrx/Observable;
|
2020-03-09 23:19:51 +00:00
|
|
|
.locals 11
|
2020-03-03 02:12:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$StoreState;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;->guildId:J
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/stores/StoreGuilds;->get(J)Lrx/Observable;
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getGuildProfiles()Lcom/discord/stores/StoreGuildProfiles;
|
|
|
|
|
2020-03-07 02:17:34 +00:00
|
|
|
move-result-object v0
|
2020-03-03 02:12:30 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;->guildId:J
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/stores/StoreGuildProfiles;->getGuildProfile(J)Lrx/Observable;
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-result-object v4
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getReadStates()Lcom/discord/stores/StoreReadStates;
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-result-object v0
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;->guildId:J
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/stores/StoreReadStates;->getIsUnread(J)Lrx/Observable;
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
move-result-object v5
|
2020-03-07 02:17:34 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUsers()Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUser;->observeMe()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUsers()Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUser;->observeMe()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory$observeStores$1;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory$observeStores$1;-><init>(Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->k(Le0/l/i;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUserSettings;->getRestrictedGuildIds()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/channel/GuildChannelsInfo;->Companion:Lcom/discord/utilities/channel/GuildChannelsInfo$Companion;
|
|
|
|
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory;->guildId:J
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/utilities/channel/GuildChannelsInfo$Companion;->get(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v9
|
2020-03-04 00:13:28 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
sget-object v10, Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory$observeStores$2;->INSTANCE:Lcom/discord/widgets/guilds/profile/WidgetGuildProfileSheetViewModel$Factory$observeStores$2;
|
2020-03-04 00:13:28 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
invoke-static/range {v3 .. v10}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func7;)Lrx/Observable;
|
2020-03-03 02:12:30 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Observable\n .\u2026 )\n }"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|