forked from Juby210/discord-jadx
58 lines
4.2 KiB
Java
58 lines
4.2 KiB
Java
package com.discord.widgets.guilds.list;
|
|
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.api.guildjoinrequest.GuildJoinRequest;
|
|
import com.discord.models.guild.Guild;
|
|
import com.discord.stores.StoreStream;
|
|
import com.discord.widgets.guilds.list.WidgetGuildsListViewModel;
|
|
import com.discord.widgets.guildscheduledevent.GuildIdsWithActiveEventsModel;
|
|
import com.discord.widgets.stage.GuildIdsWithVisibleStageInstanceModel;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import java.util.ArrayList;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import kotlin.jvm.functions.Function0;
|
|
import rx.Observable;
|
|
import rx.functions.Func7;
|
|
/* compiled from: WidgetGuildsListViewModel.kt */
|
|
public final class WidgetGuildsListViewModel$Companion$observeStores$2 extends o implements Function0<Observable<WidgetGuildsListViewModel.Companion.SecondChunk>> {
|
|
public static final WidgetGuildsListViewModel$Companion$observeStores$2 INSTANCE = new WidgetGuildsListViewModel$Companion$observeStores$2();
|
|
|
|
/* compiled from: WidgetGuildsListViewModel.kt */
|
|
/* renamed from: com.discord.widgets.guilds.list.WidgetGuildsListViewModel$Companion$observeStores$2$1 reason: invalid class name */
|
|
public static final class AnonymousClass1<T1, T2, T3, T4, T5, T6, T7, R> implements Func7<Map<Long, ? extends GuildJoinRequest>, Map<Long, ? extends Guild>, Set<? extends Long>, Set<? extends Long>, Set<? extends Long>, Map<Long, ? extends Channel>, Boolean, WidgetGuildsListViewModel.Companion.SecondChunk> {
|
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
|
|
|
public final WidgetGuildsListViewModel.Companion.SecondChunk call(Map<Long, GuildJoinRequest> map, Map<Long, Guild> map2, Set<Long> set, Set<Long> set2, Set<Long> set3, Map<Long, Channel> map3, Boolean bool) {
|
|
m.checkNotNullExpressionValue(map, "guildJoinRequests");
|
|
ArrayList arrayList = new ArrayList(map2.values());
|
|
m.checkNotNullExpressionValue(set, "guildIds");
|
|
m.checkNotNullExpressionValue(set2, "guildIdsWithActiveStageEvents");
|
|
m.checkNotNullExpressionValue(set3, "guildIdsWithActiveScheduledEvents");
|
|
m.checkNotNullExpressionValue(map3, "channels");
|
|
return new WidgetGuildsListViewModel.Companion.SecondChunk(map, arrayList, set, set2, set3, map3, !bool.booleanValue());
|
|
}
|
|
|
|
/* 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] */
|
|
@Override // rx.functions.Func7
|
|
public /* bridge */ /* synthetic */ WidgetGuildsListViewModel.Companion.SecondChunk call(Map<Long, ? extends GuildJoinRequest> map, Map<Long, ? extends Guild> map2, Set<? extends Long> set, Set<? extends Long> set2, Set<? extends Long> set3, Map<Long, ? extends Channel> map3, Boolean bool) {
|
|
return call((Map<Long, GuildJoinRequest>) map, (Map<Long, Guild>) map2, (Set<Long>) set, (Set<Long>) set2, (Set<Long>) set3, (Map<Long, Channel>) map3, bool);
|
|
}
|
|
}
|
|
|
|
public WidgetGuildsListViewModel$Companion$observeStores$2() {
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final Observable<WidgetGuildsListViewModel.Companion.SecondChunk> mo1invoke() {
|
|
StoreStream.Companion companion = StoreStream.Companion;
|
|
Observable<WidgetGuildsListViewModel.Companion.SecondChunk> e = Observable.e(companion.getGuildJoinRequests().observeGuildJoinRequests(), companion.getGuildJoinRequests().observePendingGuilds(), companion.getGuilds().observeGuildIds(), GuildIdsWithVisibleStageInstanceModel.observe$default(GuildIdsWithVisibleStageInstanceModel.INSTANCE, null, null, null, 7, null), GuildIdsWithActiveEventsModel.observe$default(GuildIdsWithActiveEventsModel.INSTANCE, null, null, 3, null), companion.getChannels().observeGuildAndPrivateChannels(), companion.getDirectories().observeDiscordHubClicked(), AnonymousClass1.INSTANCE);
|
|
m.checkNotNullExpressionValue(e, "Observable.combineLatest…ked\n )\n }");
|
|
return e;
|
|
}
|
|
}
|