apkfuckery/com.discord/smali/com/discord/widgets/channels/WidgetChannelTopic$Model$Co...

235 lines
8.5 KiB
Smali

.class public final Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;
.super Ljava/lang/Object;
.source "WidgetChannelTopic.kt"
# interfaces
.implements La0/l/i;
# 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 = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"La0/l/i<",
"TT;",
"Lrx/Observable<",
"+TR;>;>;"
}
.end annotation
# instance fields
.field public final synthetic $channel:Lcom/discord/models/domain/ModelChannel;
.field public final synthetic $context:Landroid/content/Context;
.field public final synthetic $revealedIndicesObs:Lrx/subjects/BehaviorSubject;
.field public final synthetic $topicParser:Lcom/discord/simpleast/core/parser/Parser;
# direct methods
.method public constructor <init>(Lcom/discord/simpleast/core/parser/Parser;Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;Lrx/subjects/BehaviorSubject;)V
.locals 0
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;
iput-object p3, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$context:Landroid/content/Context;
iput-object p4, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$revealedIndicesObs:Lrx/subjects/BehaviorSubject;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public 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;
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/Pair<",
"Ljava/lang/String;",
"+",
"Ljava/util/Set<",
"Ljava/lang/Integer;",
">;>;)",
"Lrx/Observable<",
"Lcom/discord/widgets/channels/WidgetChannelTopic$Model;",
">;"
}
.end annotation
invoke-virtual {p1}, Lkotlin/Pair;->component1()Ljava/lang/Object;
move-result-object v0
move-object v2, v0
check-cast v2, Ljava/lang/String;
invoke-virtual {p1}, Lkotlin/Pair;->component2()Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/Set;
iget-object v1, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$topicParser:Lcom/discord/simpleast/core/parser/Parser;
sget-object v0, Lcom/discord/utilities/textprocessing/MessageParseState;->Companion:Lcom/discord/utilities/textprocessing/MessageParseState$Companion;
invoke-virtual {v0}, Lcom/discord/utilities/textprocessing/MessageParseState$Companion;->getInitialState()Lcom/discord/utilities/textprocessing/MessageParseState;
move-result-object v3
const/4 v4, 0x0
const/4 v5, 0x4
const/4 v6, 0x0
invoke-static/range {v1 .. v6}, Lcom/discord/simpleast/core/parser/Parser;->parse$default(Lcom/discord/simpleast/core/parser/Parser;Ljava/lang/CharSequence;Ljava/lang/Object;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;
invoke-virtual {v1, v0}, Lcom/discord/utilities/textprocessing/TagsBuilder$Companion;->extractTags(Ljava/util/Collection;)Lcom/discord/utilities/textprocessing/Tags;
move-result-object v1
new-instance v2, Lcom/discord/utilities/textprocessing/MessagePreprocessor;
const-wide/16 v3, -0x1
invoke-direct {v2, v3, v4, p1}, Lcom/discord/utilities/textprocessing/MessagePreprocessor;-><init>(JLjava/util/Collection;)V
invoke-virtual {v2, v0}, Lcom/discord/utilities/textprocessing/MessagePreprocessor;->process(Ljava/util/Collection;)V
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getChannels()Lcom/discord/stores/StoreChannels;
move-result-object p1
invoke-virtual {v1}, Lcom/discord/utilities/textprocessing/Tags;->getChannels()Ljava/util/Set;
move-result-object v3
invoke-virtual {p1, v3}, Lcom/discord/stores/StoreChannels;->getNames(Ljava/util/Collection;)Lrx/Observable;
move-result-object p1
sget-object v3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v3}, Lcom/discord/stores/StoreStream$Companion;->getUsers()Lcom/discord/stores/StoreUser;
move-result-object v3
invoke-virtual {v1}, Lcom/discord/utilities/textprocessing/Tags;->getUsers()Ljava/util/Set;
move-result-object v4
invoke-virtual {v3, v4}, Lcom/discord/stores/StoreUser;->getUsernames(Ljava/util/Collection;)Lrx/Observable;
move-result-object v3
sget-object v4, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v4}, Lcom/discord/stores/StoreStream$Companion;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v4
iget-object v5, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$channel:Lcom/discord/models/domain/ModelChannel;
const-string v6, "channel.guildId"
invoke-static {v5, v6}, Le/e/b/a/a;->a(Lcom/discord/models/domain/ModelChannel;Ljava/lang/String;)J
move-result-wide v7
invoke-virtual {v1}, Lcom/discord/utilities/textprocessing/Tags;->getUsers()Ljava/util/Set;
move-result-object v5
invoke-virtual {v4, v7, v8, v5}, Lcom/discord/stores/StoreGuilds;->getComputed(JLjava/util/Collection;)Lrx/Observable;
move-result-object v4
sget-object v5, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3$1;->INSTANCE:Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3$1;
invoke-static {v3, v4, v5}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
move-result-object v3
sget-object v4, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v4}, Lcom/discord/stores/StoreStream$Companion;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v4
iget-object v5, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3;->$channel:Lcom/discord/models/domain/ModelChannel;
invoke-static {v5, v6}, Le/e/b/a/a;->a(Lcom/discord/models/domain/ModelChannel;Ljava/lang/String;)J
move-result-wide v5
invoke-virtual {v1}, Lcom/discord/utilities/textprocessing/Tags;->getRoles()Ljava/util/Set;
move-result-object v1
invoke-virtual {v4, v5, v6, v1}, Lcom/discord/stores/StoreGuilds;->getRoles(JLjava/util/Collection;)Lrx/Observable;
move-result-object v1
sget-object v4, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v4}, Lcom/discord/stores/StoreStream$Companion;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
move-result-object v4
invoke-virtual {v4}, Lcom/discord/stores/StoreUserSettings;->getAllowAnimatedEmojisObservable()Lrx/Observable;
move-result-object v4
new-instance v5, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$3$2;
invoke-direct {v5, p0, v0, v2}, 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
invoke-static {p1, v3, v1, v4, v5}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func4;)Lrx/Observable;
move-result-object p1
return-object p1
.end method