2019-02-04 20:20:43 +00:00
|
|
|
.class final Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "WidgetChannelTopic.kt"
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/functions/b;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion;->get(Landroid/content/Context;Lcom/discord/models/domain/ModelChannel;Lcom/discord/simpleast/core/parser/Parser;)Lrx/Observable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x18
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"R:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lrx/functions/b<",
|
|
|
|
"TT;",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"+TR;>;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field final synthetic $channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
.field final synthetic $context:Landroid/content/Context;
|
|
|
|
|
|
|
|
.field final synthetic $revealedIndicesObs:Lrx/subjects/BehaviorSubject;
|
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
.field final synthetic $topicParser:Lcom/discord/simpleast/core/parser/Parser;
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
# direct methods
|
2019-02-04 20:26:12 +00:00
|
|
|
.method constructor <init>(Lcom/discord/simpleast/core/parser/Parser;Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;Lrx/subjects/BehaviorSubject;)V
|
2019-02-04 20:20:43 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$topicParser:Lcom/discord/simpleast/core/parser/Parser;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$channel:Lcom/discord/models/domain/ModelChannel;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
iput-object p3, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$context:Landroid/content/Context;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
iput-object p4, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$revealedIndicesObs:Lrx/subjects/BehaviorSubject;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->call(Lkotlin/Pair;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final call(Lkotlin/Pair;)Lrx/Observable;
|
2019-02-17 02:24:41 +00:00
|
|
|
.locals 8
|
2019-02-04 20:20:43 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/Pair<",
|
2019-02-04 20:26:12 +00:00
|
|
|
"Ljava/lang/String;",
|
2019-02-04 20:20:43 +00:00
|
|
|
"+",
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
">;>;)",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/widgets/channels/WidgetChannelTopic$Model;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p1, Lkotlin/Pair;->first:Ljava/lang/Object;
|
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
check-cast v0, Ljava/lang/String;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
iget-object p1, p1, Lkotlin/Pair;->second:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast p1, Ljava/util/Set;
|
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$topicParser:Lcom/discord/simpleast/core/parser/Parser;
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
const/4 v3, 0x2
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
invoke-static {v1, v0, v2, v3, v2}, Lcom/discord/simpleast/core/parser/Parser;->parse$default(Lcom/discord/simpleast/core/parser/Parser;Ljava/lang/CharSequence;Ljava/util/List;ILjava/lang/Object;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/utilities/textprocessing/TagsBuilder;->Companion:Lcom/discord/utilities/textprocessing/TagsBuilder$Companion;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
move-object v2, v0
|
|
|
|
|
|
|
|
check-cast v2, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/utilities/textprocessing/TagsBuilder$Companion;->extractTags(Ljava/util/Collection;)Lcom/discord/utilities/textprocessing/Tags;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
new-instance v3, Lcom/discord/utilities/textprocessing/MessagePreprocessor;
|
|
|
|
|
|
|
|
check-cast p1, Ljava/util/Collection;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
const-wide/16 v4, -0x1
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
invoke-direct {v3, v4, v5, p1}, Lcom/discord/utilities/textprocessing/MessagePreprocessor;-><init>(JLjava/util/Collection;)V
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-04 20:26:12 +00:00
|
|
|
invoke-virtual {v3, v2}, Lcom/discord/utilities/textprocessing/MessagePreprocessor;->process(Ljava/util/Collection;)V
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getChannels()Lcom/discord/stores/StoreChannels;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/textprocessing/Tags;->getChannels()Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v2}, Lcom/discord/stores/StoreChannels;->getNames(Ljava/util/Collection;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/textprocessing/Tags;->getUsers()Ljava/util/Set;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
check-cast v4, Ljava/util/Collection;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {v2, v4}, Lcom/discord/stores/StoreUser;->getUsernames(Ljava/util/Collection;)Lrx/Observable;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
iget-object v5, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$channel:Lcom/discord/models/domain/ModelChannel;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-wide v5
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/textprocessing/Tags;->getUsers()Ljava/util/Set;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-object v7
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
check-cast v7, Ljava/util/Collection;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {v4, v5, v6, v7}, Lcom/discord/stores/StoreGuilds;->getComputed(JLjava/util/Collection;)Lrx/Observable;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
sget-object v5, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3$1;->INSTANCE:Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3$1;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
check-cast v5, Lrx/functions/Func2;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v2, v4, v5}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
iget-object v5, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$channel:Lcom/discord/models/domain/ModelChannel;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {v5}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-wide v5
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/textprocessing/Tags;->getRoles()Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/util/Collection;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {v4, v5, v6, v1}, Lcom/discord/stores/StoreGuilds;->getRoles(JLjava/util/Collection;)Lrx/Observable;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
const-string v5, "StoreStream\n \u2026 .getUserSettings()"
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-05-22 23:20:16 +00:00
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/stores/StoreUserSettings;->getAllowAnimatedEmojisObservable()Lrx/Observable;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
new-instance v5, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3$2;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-direct {v5, p0, v0, v3}, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3$2;-><init>(Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;Ljava/util/List;Lcom/discord/utilities/textprocessing/MessagePreprocessor;)V
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
check-cast v5, Lrx/functions/Func4;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {p1, v2, v1, v4, v5}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func4;)Lrx/Observable;
|
2019-02-04 20:20:43 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|