435 lines
12 KiB
Smali
435 lines
12 KiB
Smali
.class final Lcom/discord/widgets/user/WidgetUserMentions$Model$Companion$get$1;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Func9;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/user/WidgetUserMentions$Model$Companion;->get(Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader;)Lrx/Observable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T1:",
|
|
"Ljava/lang/Object;",
|
|
"T2:",
|
|
"Ljava/lang/Object;",
|
|
"T3:",
|
|
"Ljava/lang/Object;",
|
|
"T4:",
|
|
"Ljava/lang/Object;",
|
|
"T5:",
|
|
"Ljava/lang/Object;",
|
|
"T6:",
|
|
"Ljava/lang/Object;",
|
|
"T7:",
|
|
"Ljava/lang/Object;",
|
|
"T8:",
|
|
"Ljava/lang/Object;",
|
|
"T9:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/functions/Func9<",
|
|
"TT1;TT2;TT3;TT4;TT5;TT6;TT7;TT8;TT9;TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/widgets/user/WidgetUserMentions$Model$Companion$get$1;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/widgets/user/WidgetUserMentions$Model$Companion$get$1;
|
|
|
|
invoke-direct {v0}, Lcom/discord/widgets/user/WidgetUserMentions$Model$Companion$get$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/widgets/user/WidgetUserMentions$Model$Companion$get$1;->INSTANCE:Lcom/discord/widgets/user/WidgetUserMentions$Model$Companion$get$1;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final call(Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$LoadingState;Lcom/discord/models/domain/ModelGuild;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/lang/Long;Ljava/lang/Boolean;)Lcom/discord/widgets/user/WidgetUserMentions$Model;
|
|
.locals 35
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$LoadingState;",
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelGuild;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelGuildRole;",
|
|
">;>;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/models/domain/ModelGuildMember$Computed;",
|
|
">;>;",
|
|
"Ljava/lang/Long;",
|
|
"Ljava/lang/Boolean;",
|
|
")",
|
|
"Lcom/discord/widgets/user/WidgetUserMentions$Model;"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v1, p6
|
|
|
|
move-object/from16 v2, p7
|
|
|
|
move-object/from16 v3, p9
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/models/domain/ModelGuild;->getId()J
|
|
|
|
move-result-wide v4
|
|
|
|
:goto_0
|
|
move-wide v11, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const-wide/16 v4, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:goto_1
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-virtual/range {p2 .. p2}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_2
|
|
move-object/from16 v21, v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:goto_3
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$LoadingState;->getMentions()Ljava/util/List;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
mul-int/lit8 v4, v4, 0x2
|
|
|
|
invoke-direct {v0, v4}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
sget-object v4, Lkotlin/a/z;->bPE:Lkotlin/a/z;
|
|
|
|
move-object/from16 v17, v4
|
|
|
|
check-cast v17, Ljava/util/Set;
|
|
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$LoadingState;->getMentions()Ljava/util/List;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v4
|
|
|
|
:goto_4
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/discord/models/domain/ModelMessage;
|
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelMessage;->getChannelId()J
|
|
|
|
move-result-wide v6
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v6
|
|
|
|
move-object/from16 v7, p3
|
|
|
|
invoke-interface {v7, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
if-nez v6, :cond_2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_2
|
|
const-string v8, "members"
|
|
|
|
invoke-static {v2, v8}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelMessage;->getChannelId()J
|
|
|
|
move-result-wide v8
|
|
|
|
invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v2, v8}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
if-nez v8, :cond_3
|
|
|
|
invoke-static {}, Lkotlin/a/ab;->emptyMap()Ljava/util/Map;
|
|
|
|
move-result-object v8
|
|
|
|
:cond_3
|
|
move-object/from16 v23, v8
|
|
|
|
check-cast v23, Ljava/util/Map;
|
|
|
|
const-string v8, "roles"
|
|
|
|
invoke-static {v1, v8}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
|
|
|
move-result-wide v8
|
|
|
|
invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v1, v8}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
if-nez v8, :cond_4
|
|
|
|
invoke-static {}, Lkotlin/a/ab;->emptyMap()Ljava/util/Map;
|
|
|
|
move-result-object v8
|
|
|
|
:cond_4
|
|
move-object/from16 v24, v8
|
|
|
|
check-cast v24, Ljava/util/Map;
|
|
|
|
sget-object v8, Lcom/discord/widgets/chat/list/entries/MessageHeaderEntry;->Companion:Lcom/discord/widgets/chat/list/entries/MessageHeaderEntry$Companion;
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
|
|
|
move-result-wide v9
|
|
|
|
invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v9
|
|
|
|
move-object/from16 v10, p5
|
|
|
|
invoke-interface {v10, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Lcom/discord/models/domain/ModelGuild;
|
|
|
|
invoke-virtual {v8, v5, v6, v9}, Lcom/discord/widgets/chat/list/entries/MessageHeaderEntry$Companion;->create(Lcom/discord/models/domain/ModelMessage;Lcom/discord/models/domain/ModelChannel;Lcom/discord/models/domain/ModelGuild;)Lcom/discord/widgets/chat/list/entries/MessageHeaderEntry;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v0, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelChannel;->getNicks()Ljava/util/Map;
|
|
|
|
move-result-object v22
|
|
|
|
const/16 v26, 0x0
|
|
|
|
const/16 v27, 0x0
|
|
|
|
const/16 v28, 0x0
|
|
|
|
const/16 v29, 0x0
|
|
|
|
const-string v8, "allowAnimatedEmojis"
|
|
|
|
invoke-static {v3, v8}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p9 .. p9}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v30
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
|
|
|
move-result-wide v31
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v33
|
|
|
|
move-object/from16 v25, v5
|
|
|
|
invoke-static/range {v22 .. v34}, Lcom/discord/widgets/chat/list/model/WidgetChatListModel$Messages;->getMessageItems(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Lcom/discord/models/domain/ModelMessage;Lcom/discord/stores/StoreMessageState$State;ZZZZJJ)Ljava/util/List;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Ljava/util/Collection;
|
|
|
|
invoke-virtual {v0, v5}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
|
|
|
|
goto/16 :goto_4
|
|
|
|
:cond_5
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$LoadingState;->isLoading()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
new-instance v1, Lcom/discord/widgets/chat/list/entries/LoadingEntry;
|
|
|
|
invoke-direct {v1}, Lcom/discord/widgets/chat/list/entries/LoadingEntry;-><init>()V
|
|
|
|
:goto_5
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_6
|
|
|
|
:cond_6
|
|
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$LoadingState;->isAllLoaded()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
new-instance v1, Lcom/discord/widgets/chat/list/entries/MentionFooterEntry;
|
|
|
|
invoke-direct {v1}, Lcom/discord/widgets/chat/list/entries/MentionFooterEntry;-><init>()V
|
|
|
|
goto :goto_5
|
|
|
|
:cond_7
|
|
:goto_6
|
|
new-instance v1, Lcom/discord/widgets/user/WidgetUserMentions$Model;
|
|
|
|
const-string v2, "userId"
|
|
|
|
move-object/from16 v4, p8
|
|
|
|
invoke-static {v4, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p8 .. p8}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v7
|
|
|
|
const-wide/16 v9, -0x1
|
|
|
|
const-string v2, "names"
|
|
|
|
move-object/from16 v4, p4
|
|
|
|
invoke-static {v4, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v14, -0x1
|
|
|
|
move-object/from16 v16, v0
|
|
|
|
check-cast v16, Ljava/util/List;
|
|
|
|
const-wide/16 v18, -0x1
|
|
|
|
const-string v0, "allowAnimatedEmojis"
|
|
|
|
invoke-static {v3, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual/range {p9 .. p9}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v20
|
|
|
|
move-object v6, v1
|
|
|
|
move-object/from16 v13, p4
|
|
|
|
invoke-direct/range {v6 .. v21}, Lcom/discord/widgets/user/WidgetUserMentions$Model;-><init>(JJJLjava/util/Map;JLjava/util/List;Ljava/util/Set;JZLjava/lang/String;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final bridge synthetic call(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 0
|
|
|
|
check-cast p1, Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$LoadingState;
|
|
|
|
check-cast p2, Lcom/discord/models/domain/ModelGuild;
|
|
|
|
check-cast p3, Ljava/util/Map;
|
|
|
|
check-cast p4, Ljava/util/Map;
|
|
|
|
check-cast p5, Ljava/util/Map;
|
|
|
|
check-cast p6, Ljava/util/Map;
|
|
|
|
check-cast p7, Ljava/util/Map;
|
|
|
|
check-cast p8, Ljava/lang/Long;
|
|
|
|
check-cast p9, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual/range {p0 .. p9}, Lcom/discord/widgets/user/WidgetUserMentions$Model$Companion$get$1;->call(Lcom/discord/widgets/user/WidgetUserMentions$Model$MessageLoader$LoadingState;Lcom/discord/models/domain/ModelGuild;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/lang/Long;Ljava/lang/Boolean;)Lcom/discord/widgets/user/WidgetUserMentions$Model;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|