apkfuckery/com.discord/smali/com/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2.smali
2019-02-04 21:08:30 +01:00

195 lines
6.4 KiB
Smali

.class final Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2;
.super Ljava/lang/Object;
# 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;)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;
# direct methods
.method constructor <init>(Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;)V
.locals 0
iput-object p1, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2;->$channel:Lcom/discord/models/domain/ModelChannel;
iput-object p2, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2;->$context:Landroid/content/Context;
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, Ljava/util/List;
invoke-virtual {p0, p1}, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2;->call(Ljava/util/List;)Lrx/Observable;
move-result-object p1
return-object p1
.end method
.method public final call(Ljava/util/List;)Lrx/Observable;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/discord/simpleast/core/node/Node<",
"Lcom/discord/utilities/textprocessing/MessageRenderContext;",
">;>;)",
"Lrx/Observable<",
"Lcom/discord/widgets/channels/WidgetChannelTopic$Model;",
">;"
}
.end annotation
sget-object v0, Lcom/discord/utilities/textprocessing/TagsBuilder;->Companion:Lcom/discord/utilities/textprocessing/TagsBuilder$Companion;
const-string v1, "ast"
invoke-static {p1, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
move-object v1, p1
check-cast v1, Ljava/util/Collection;
invoke-virtual {v0, v1}, Lcom/discord/utilities/textprocessing/TagsBuilder$Companion;->extractTags(Ljava/util/Collection;)Lcom/discord/utilities/textprocessing/Tags;
move-result-object v0
invoke-static {}, Lcom/discord/stores/StoreStream;->getChannels()Lcom/discord/stores/StoreChannels;
move-result-object v1
invoke-virtual {v0}, Lcom/discord/utilities/textprocessing/Tags;->getChannels()Ljava/util/Set;
move-result-object v2
check-cast v2, Ljava/util/Collection;
invoke-virtual {v1, v2}, Lcom/discord/stores/StoreChannels;->getNames(Ljava/util/Collection;)Lrx/Observable;
move-result-object v1
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
move-result-object v2
invoke-virtual {v0}, Lcom/discord/utilities/textprocessing/Tags;->getUsers()Ljava/util/Set;
move-result-object v3
check-cast v3, Ljava/util/Collection;
invoke-virtual {v2, v3}, Lcom/discord/stores/StoreUser;->getUsernames(Ljava/util/Collection;)Lrx/Observable;
move-result-object v2
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v3
iget-object v4, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2;->$channel:Lcom/discord/models/domain/ModelChannel;
invoke-virtual {v4}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
move-result-wide v4
invoke-virtual {v0}, Lcom/discord/utilities/textprocessing/Tags;->getUsers()Ljava/util/Set;
move-result-object v6
check-cast v6, Ljava/util/Collection;
invoke-virtual {v3, v4, v5, v6}, Lcom/discord/stores/StoreGuilds;->getComputed(JLjava/util/Collection;)Lrx/Observable;
move-result-object v3
sget-object v4, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2$1;->INSTANCE:Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2$1;
check-cast v4, Lrx/functions/Func2;
invoke-static {v2, v3, v4}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
move-result-object v2
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v3
iget-object v4, p0, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2;->$channel:Lcom/discord/models/domain/ModelChannel;
invoke-virtual {v4}, Lcom/discord/models/domain/ModelChannel;->getGuildId()J
move-result-wide v4
invoke-virtual {v0}, Lcom/discord/utilities/textprocessing/Tags;->getRoles()Ljava/util/Set;
move-result-object v0
check-cast v0, Ljava/util/Collection;
invoke-virtual {v3, v4, v5, v0}, Lcom/discord/stores/StoreGuilds;->getRoles(JLjava/util/Collection;)Lrx/Observable;
move-result-object v0
invoke-static {}, Lcom/discord/stores/StoreStream;->getUserSettings()Lcom/discord/stores/StoreUserSettings;
move-result-object v3
const-string v4, "StoreStream\n \u2026 .getUserSettings()"
invoke-static {v3, v4}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v3}, Lcom/discord/stores/StoreUserSettings;->getAllowAnimatedEmojisObservable()Lrx/Observable;
move-result-object v3
new-instance v4, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2$2;
invoke-direct {v4, p0, p1}, Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2$2;-><init>(Lcom/discord/widgets/channels/WidgetChannelTopic$Model$Companion$get$2;Ljava/util/List;)V
check-cast v4, Lrx/functions/Func4;
invoke-static {v1, v2, v0, v3, v4}, 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