discord-jadx/app/src/main/java/com/discord/widgets/chat/input/autocomplete/ChatInputAutocompletables$o...

43 lines
3.2 KiB
Java

package com.discord.widgets.chat.input.autocomplete;
import com.discord.api.channel.Channel;
import com.discord.widgets.chat.input.autocomplete.sources.ApplicationCommandsAutocompletableSource;
import d0.z.d.m;
import j0.k.b;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import rx.Observable;
import rx.functions.Func4;
/* compiled from: ChatInputAutocompletables.kt */
public final class ChatInputAutocompletables$observeChannelAutocompletables$1<T, R> implements b<Channel, Observable<? extends Map<LeadingIdentifier, ? extends Set<? extends Autocompletable>>>> {
public static final ChatInputAutocompletables$observeChannelAutocompletables$1 INSTANCE = new ChatInputAutocompletables$observeChannelAutocompletables$1();
/* compiled from: ChatInputAutocompletables.kt */
/* renamed from: com.discord.widgets.chat.input.autocomplete.ChatInputAutocompletables$observeChannelAutocompletables$1$1 reason: invalid class name */
public static final class AnonymousClass1<T1, T2, T3, T4, R> implements Func4<Map<LeadingIdentifier, ? extends TreeSet<Autocompletable>>, Map<LeadingIdentifier, ? extends TreeSet<Autocompletable>>, Map<LeadingIdentifier, ? extends TreeSet<Autocompletable>>, Map<LeadingIdentifier, ? extends TreeSet<Autocompletable>>, Map<LeadingIdentifier, TreeSet<Autocompletable>>> {
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
public final Map<LeadingIdentifier, TreeSet<Autocompletable>> call(Map<LeadingIdentifier, ? extends TreeSet<Autocompletable>> map, Map<LeadingIdentifier, ? extends TreeSet<Autocompletable>> map2, Map<LeadingIdentifier, ? extends TreeSet<Autocompletable>> map3, Map<LeadingIdentifier, ? extends TreeSet<Autocompletable>> map4) {
LinkedHashMap linkedHashMap = new LinkedHashMap();
m.checkNotNullExpressionValue(map, "commands");
ChatInputAutocompletablesKt.access$merge(linkedHashMap, map);
m.checkNotNullExpressionValue(map2, "emojis");
ChatInputAutocompletablesKt.access$merge(linkedHashMap, map2);
m.checkNotNullExpressionValue(map3, "channels");
ChatInputAutocompletablesKt.access$merge(linkedHashMap, map3);
m.checkNotNullExpressionValue(map4, "users");
ChatInputAutocompletablesKt.access$merge(linkedHashMap, map4);
return linkedHashMap;
}
}
public final Observable<? extends Map<LeadingIdentifier, Set<Autocompletable>>> call(Channel channel) {
ChatInputAutocompletables chatInputAutocompletables = ChatInputAutocompletables.INSTANCE;
ApplicationCommandsAutocompletableSource application_commands_source = chatInputAutocompletables.getAPPLICATION_COMMANDS_SOURCE();
m.checkNotNullExpressionValue(channel, "channel");
return Observable.h(application_commands_source.observeApplicationCommandAutocompletables(channel), chatInputAutocompletables.getEMOJI_SOURCE().observeEmojiAutocompletables(channel), chatInputAutocompletables.getCHANNEL_SOURCE().observeChannelAutocompletables(channel.f()), chatInputAutocompletables.getUSERS_SOURCE().observeUserAutocompletables(channel), AnonymousClass1.INSTANCE);
}
}