forked from Juby210/discord-jadx
63 lines
4.7 KiB
Java
63 lines
4.7 KiB
Java
package com.discord.widgets.guilds.list;
|
|
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.models.domain.ModelNotificationSettings;
|
|
import com.discord.stores.StoreGuildsSorted;
|
|
import com.discord.stores.StoreStream;
|
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
|
import com.discord.widgets.guilds.list.WidgetGuildsListViewModel;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import java.util.concurrent.TimeUnit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import rx.Observable;
|
|
import rx.functions.Func9;
|
|
/* compiled from: WidgetGuildsListViewModel.kt */
|
|
public final class WidgetGuildsListViewModel$Companion$observeStores$1 extends o implements Function0<Observable<WidgetGuildsListViewModel.Companion.Chunk>> {
|
|
public static final WidgetGuildsListViewModel$Companion$observeStores$1 INSTANCE = new WidgetGuildsListViewModel$Companion$observeStores$1();
|
|
|
|
/* compiled from: WidgetGuildsListViewModel.kt */
|
|
/* renamed from: com.discord.widgets.guilds.list.WidgetGuildsListViewModel$Companion$observeStores$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1<T1, T2, T3, T4, T5, T6, T7, T8, T9, R> implements Func9<Long, Long, Map<Long, ? extends ModelNotificationSettings>, Set<? extends Long>, Map<Long, ? extends Integer>, Map<Long, ? extends List<? extends Long>>, Set<? extends Long>, Map<Long, ? extends Channel>, List<? extends StoreGuildsSorted.Entry>, WidgetGuildsListViewModel.Companion.Chunk> {
|
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
|
|
|
public final WidgetGuildsListViewModel.Companion.Chunk call(Long l, Long l2, Map<Long, ? extends ModelNotificationSettings> map, Set<Long> set, Map<Long, Integer> map2, Map<Long, ? extends List<Long>> map3, Set<Long> set2, Map<Long, Channel> map4, List<? extends StoreGuildsSorted.Entry> list) {
|
|
m.checkNotNullExpressionValue(l, "selectedGuildId");
|
|
long longValue = l.longValue();
|
|
m.checkNotNullExpressionValue(l2, "selectedVoiceChannelId");
|
|
long longValue2 = l2.longValue();
|
|
m.checkNotNullExpressionValue(map, "guildSettings");
|
|
m.checkNotNullExpressionValue(set, "unreadGuildIds");
|
|
m.checkNotNullExpressionValue(map2, "mentionCounts");
|
|
m.checkNotNullExpressionValue(map3, "channelIds");
|
|
m.checkNotNullExpressionValue(set2, "unavailableGuilds");
|
|
m.checkNotNullExpressionValue(map4, "privateChannels");
|
|
m.checkNotNullExpressionValue(list, "sortedGuilds");
|
|
return new WidgetGuildsListViewModel.Companion.Chunk(longValue, longValue2, map, set, map2, map3, set2, map4, list);
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object] */
|
|
@Override // rx.functions.Func9
|
|
public /* bridge */ /* synthetic */ WidgetGuildsListViewModel.Companion.Chunk call(Long l, Long l2, Map<Long, ? extends ModelNotificationSettings> map, Set<? extends Long> set, Map<Long, ? extends Integer> map2, Map<Long, ? extends List<? extends Long>> map3, Set<? extends Long> set2, Map<Long, ? extends Channel> map4, List<? extends StoreGuildsSorted.Entry> list) {
|
|
return call(l, l2, map, (Set<Long>) set, (Map<Long, Integer>) map2, (Map<Long, ? extends List<Long>>) map3, (Set<Long>) set2, (Map<Long, Channel>) map4, list);
|
|
}
|
|
}
|
|
|
|
public WidgetGuildsListViewModel$Companion$observeStores$1() {
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final Observable<WidgetGuildsListViewModel.Companion.Chunk> mo1invoke() {
|
|
StoreStream.Companion companion = StoreStream.Companion;
|
|
Observable<WidgetGuildsListViewModel.Companion.Chunk> c = Observable.c(companion.getGuildSelected().observeSelectedGuildId(), companion.getVoiceChannelSelected().observeSelectedVoiceChannelId(), companion.getUserGuildSettings().observeGuildSettings(), companion.getReadStates().getUnreadGuildIds(), ObservableExtensionsKt.leadingEdgeThrottle(companion.getMentions().observeMentionCounts(), 500, TimeUnit.MILLISECONDS).q(), companion.getChannels().observeIds(true), companion.getGuilds().observeUnavailableGuilds(), companion.getChannels().observePrivateChannels(), companion.getGuildsSorted().observeEntries(), AnonymousClass1.INSTANCE);
|
|
m.checkNotNullExpressionValue(c, "Observable.combineLatest…lds\n )\n }");
|
|
return c;
|
|
}
|
|
}
|