348 lines
9.1 KiB
Smali
348 lines
9.1 KiB
Smali
.class public final Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$getSelectedGuildChannelList$1;
|
|
.super Lj0/n/c/i;
|
|
.source "WidgetChannelListModel.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function10;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion;->getSelectedGuildChannelList(J)Lrx/Observable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lj0/n/c/i;",
|
|
"Lkotlin/jvm/functions/Function10<",
|
|
"Lcom/discord/utilities/channel/GuildChannelsInfo;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
">;",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser;",
|
|
">;>;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Ljava/lang/Integer;",
|
|
">;",
|
|
"Ljava/util/Set<",
|
|
"+",
|
|
"Ljava/lang/Long;",
|
|
">;",
|
|
"Ljava/util/Set<",
|
|
"+",
|
|
"Ljava/lang/Long;",
|
|
">;",
|
|
"Lcom/discord/stores/StoreNux$NuxState;",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
"Lcom/discord/widgets/channels/list/WidgetChannelListModel;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $selectedGuildId:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(J)V
|
|
.locals 0
|
|
|
|
iput-wide p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$getSelectedGuildChannelList$1;->$selectedGuildId:J
|
|
|
|
const/16 p1, 0xa
|
|
|
|
invoke-direct {p0, p1}, Lj0/n/c/i;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final invoke(Lcom/discord/utilities/channel/GuildChannelsInfo;Ljava/util/Map;JJLjava/util/Map;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;Lcom/discord/stores/StoreNux$NuxState;Lcom/discord/models/domain/ModelUser;)Lcom/discord/widgets/channels/list/WidgetChannelListModel;
|
|
.locals 16
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/utilities/channel/GuildChannelsInfo;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
">;JJ",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"+",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser;",
|
|
">;>;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/lang/Integer;",
|
|
">;",
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/Long;",
|
|
">;",
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/Long;",
|
|
">;",
|
|
"Lcom/discord/stores/StoreNux$NuxState;",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
")",
|
|
"Lcom/discord/widgets/channels/list/WidgetChannelListModel;"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
if-eqz p2, :cond_8
|
|
|
|
if-eqz p7, :cond_7
|
|
|
|
if-eqz p8, :cond_6
|
|
|
|
if-eqz p9, :cond_5
|
|
|
|
if-eqz p10, :cond_4
|
|
|
|
if-eqz p11, :cond_3
|
|
|
|
if-eqz p12, :cond_2
|
|
|
|
sget-object v2, Lcom/discord/widgets/channels/list/WidgetChannelListModel;->Companion:Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion;
|
|
|
|
iget-wide v3, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$getSelectedGuildChannelList$1;->$selectedGuildId:J
|
|
|
|
move-object/from16 v5, p1
|
|
|
|
move-object/from16 v6, p2
|
|
|
|
move-wide/from16 v7, p3
|
|
|
|
move-wide/from16 v9, p5
|
|
|
|
move-object/from16 v11, p7
|
|
|
|
move-object/from16 v12, p8
|
|
|
|
move-object/from16 v13, p9
|
|
|
|
move-object/from16 v14, p10
|
|
|
|
move-object/from16 v15, p12
|
|
|
|
invoke-static/range {v2 .. v15}, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion;->access$guildListBuilder(Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion;JLcom/discord/utilities/channel/GuildChannelsInfo;Ljava/util/Map;JJLjava/util/Map;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;Lcom/discord/models/domain/ModelUser;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lcom/discord/widgets/channels/list/items/ChannelListBottomNavSpaceItem;
|
|
|
|
iget-wide v4, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$getSelectedGuildChannelList$1;->$selectedGuildId:J
|
|
|
|
invoke-direct {v3, v4, v5}, Lcom/discord/widgets/channels/list/items/ChannelListBottomNavSpaceItem;-><init>(J)V
|
|
|
|
invoke-static {v2, v3}, Lj0/i/l;->plus(Ljava/util/Collection;Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual/range {p11 .. p11}, Lcom/discord/stores/StoreNux$NuxState;->getPremiumGuildHintGuildId()Ljava/lang/Long;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-virtual/range {p11 .. p11}, Lcom/discord/stores/StoreNux$NuxState;->getPremiumGuildHintGuildId()Ljava/lang/Long;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/utilities/channel/GuildChannelsInfo;->getGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
invoke-virtual {v4}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_0
|
|
invoke-static {v3, v1}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
new-instance v3, Lcom/discord/widgets/channels/list/WidgetChannelListModel;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/utilities/channel/GuildChannelsInfo;->getGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object/from16 p1, v3
|
|
|
|
move-object/from16 p2, v4
|
|
|
|
move-object/from16 p3, v2
|
|
|
|
move/from16 p4, v5
|
|
|
|
move/from16 p5, v1
|
|
|
|
move/from16 p6, v6
|
|
|
|
invoke-direct/range {p1 .. p6}, Lcom/discord/widgets/channels/list/WidgetChannelListModel;-><init>(Lcom/discord/models/domain/ModelGuild;Ljava/util/List;ZZZ)V
|
|
|
|
return-object v3
|
|
|
|
:cond_2
|
|
const-string v2, "me"
|
|
|
|
invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_3
|
|
const-string v2, "nuxState"
|
|
|
|
invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_4
|
|
const-string v2, "collapsedCategories"
|
|
|
|
invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_5
|
|
const-string v2, "unreadChannelIds"
|
|
|
|
invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_6
|
|
const-string v2, "mentionCounts"
|
|
|
|
invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_7
|
|
const-string/jumbo v2, "voiceStates"
|
|
|
|
invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_8
|
|
const-string v2, "guildChannels"
|
|
|
|
invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_9
|
|
const-string v2, "guildChannelsInfo"
|
|
|
|
invoke-static {v2}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 13
|
|
|
|
move-object v1, p1
|
|
|
|
check-cast v1, Lcom/discord/utilities/channel/GuildChannelsInfo;
|
|
|
|
move-object v2, p2
|
|
|
|
check-cast v2, Ljava/util/Map;
|
|
|
|
move-object/from16 v0, p3
|
|
|
|
check-cast v0, Ljava/lang/Number;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Number;->longValue()J
|
|
|
|
move-result-wide v3
|
|
|
|
move-object/from16 v0, p4
|
|
|
|
check-cast v0, Ljava/lang/Number;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Number;->longValue()J
|
|
|
|
move-result-wide v5
|
|
|
|
move-object/from16 v7, p5
|
|
|
|
check-cast v7, Ljava/util/Map;
|
|
|
|
move-object/from16 v8, p6
|
|
|
|
check-cast v8, Ljava/util/Map;
|
|
|
|
move-object/from16 v9, p7
|
|
|
|
check-cast v9, Ljava/util/Set;
|
|
|
|
move-object/from16 v10, p8
|
|
|
|
check-cast v10, Ljava/util/Set;
|
|
|
|
move-object/from16 v11, p9
|
|
|
|
check-cast v11, Lcom/discord/stores/StoreNux$NuxState;
|
|
|
|
move-object/from16 v12, p10
|
|
|
|
check-cast v12, Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-object v0, p0
|
|
|
|
invoke-virtual/range {v0 .. v12}, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$getSelectedGuildChannelList$1;->invoke(Lcom/discord/utilities/channel/GuildChannelsInfo;Ljava/util/Map;JJLjava/util/Map;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;Lcom/discord/stores/StoreNux$NuxState;Lcom/discord/models/domain/ModelUser;)Lcom/discord/widgets/channels/list/WidgetChannelListModel;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|