discord-jadx/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInputAutocomplete...

32 lines
1.6 KiB
Java

package com.discord.widgets.chat.input;
import com.discord.models.member.GuildMember;
import d0.t.n;
import d0.z.d.m;
import java.util.List;
import java.util.Map;
import rx.functions.Func3;
/* compiled from: WidgetChatInputAutocomplete.kt */
public final class WidgetChatInputAutocomplete$configureDataSubscriptions$1<T1, T2, T3, R> implements Func3<Long, Long, Map<Long, ? extends Map<Long, ? extends GuildMember>>, UserAndSelectedGuildRoles> {
public static final WidgetChatInputAutocomplete$configureDataSubscriptions$1 INSTANCE = new WidgetChatInputAutocomplete$configureDataSubscriptions$1();
public final UserAndSelectedGuildRoles call(Long l, Long l2, Map<Long, ? extends Map<Long, GuildMember>> map) {
GuildMember guildMember;
m.checkNotNullExpressionValue(l, "meId");
long longValue = l.longValue();
Map map2 = (Map) map.get(l2);
List<Long> roles = (map2 == null || (guildMember = (GuildMember) map2.get(l)) == null) ? null : guildMember.getRoles();
if (roles == null) {
roles = n.emptyList();
}
return new UserAndSelectedGuildRoles(longValue, roles);
}
/* 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] */
@Override // rx.functions.Func3
public /* bridge */ /* synthetic */ UserAndSelectedGuildRoles call(Long l, Long l2, Map<Long, ? extends Map<Long, ? extends GuildMember>> map) {
return call(l, l2, (Map<Long, ? extends Map<Long, GuildMember>>) map);
}
}