discord-jadx/app/src/main/java/com/discord/widgets/announcements/WidgetChannelFollowSheetVie...

34 lines
2.0 KiB
Java

package com.discord.widgets.announcements;
import com.discord.api.channel.Channel;
import com.discord.models.guild.Guild;
import com.discord.widgets.announcements.WidgetChannelFollowSheetViewModel;
import d0.t.o;
import d0.t.u;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import rx.functions.Func5;
/* compiled from: WidgetChannelFollowSheetViewModel.kt */
public final class WidgetChannelFollowSheetViewModel$observeViewStateFromStores$3<T1, T2, T3, T4, T5, R> implements Func5<Guild, Channel, Map<Long, ? extends List<? extends Channel>>, Guild, Channel, WidgetChannelFollowSheetViewModel.ViewState.Loaded> {
public static final WidgetChannelFollowSheetViewModel$observeViewStateFromStores$3 INSTANCE = new WidgetChannelFollowSheetViewModel$observeViewStateFromStores$3();
public final WidgetChannelFollowSheetViewModel.ViewState.Loaded call(Guild guild, Channel channel, Map<Long, ? extends List<Channel>> map, Guild guild2, Channel channel2) {
Set<Long> keySet = map.keySet();
List<Channel> flatten = o.flatten(map.values());
ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(flatten, 10));
for (Channel channel3 : flatten) {
arrayList.add(Long.valueOf(channel3.h()));
}
return new WidgetChannelFollowSheetViewModel.ViewState.Loaded(channel, guild, guild2, channel2, keySet, u.toSet(arrayList), null, 64, null);
}
/* 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] */
@Override // rx.functions.Func5
public /* bridge */ /* synthetic */ WidgetChannelFollowSheetViewModel.ViewState.Loaded call(Guild guild, Channel channel, Map<Long, ? extends List<? extends Channel>> map, Guild guild2, Channel channel2) {
return call(guild, channel, (Map<Long, ? extends List<Channel>>) map, guild2, channel2);
}
}