forked from Juby210/discord-jadx
41 lines
2.2 KiB
Java
41 lines
2.2 KiB
Java
package com.discord.widgets.friends;
|
|
|
|
import c0.t.n;
|
|
import c0.z.d.m;
|
|
import com.discord.models.presence.Presence;
|
|
import com.discord.models.user.User;
|
|
import com.discord.widgets.friends.WidgetFriendsAddUserAdapter;
|
|
import com.discord.widgets.friends.WidgetFriendsFindNearby;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import rx.functions.Func3;
|
|
/* compiled from: WidgetFriendsFindNearby.kt */
|
|
public final class WidgetFriendsFindNearby$ModelProvider$getUserModels$1<T1, T2, T3, R> implements Func3<Map<Long, ? extends User>, Map<Long, ? extends Presence>, Map<Long, ? extends Integer>, WidgetFriendsFindNearby.Model.NearbyUsers> {
|
|
public static final WidgetFriendsFindNearby$ModelProvider$getUserModels$1 INSTANCE = new WidgetFriendsFindNearby$ModelProvider$getUserModels$1();
|
|
|
|
public final WidgetFriendsFindNearby.Model.NearbyUsers call(Map<Long, ? extends User> map, Map<Long, Presence> map2, Map<Long, Integer> map3) {
|
|
m.checkNotNullExpressionValue(map, "users");
|
|
ArrayList arrayList = new ArrayList(map.size());
|
|
for (Map.Entry<Long, ? extends User> entry : map.entrySet()) {
|
|
long longValue = entry.getKey().longValue();
|
|
User user = (User) entry.getValue();
|
|
List emptyList = n.emptyList();
|
|
Presence presence = map2.get(Long.valueOf(longValue));
|
|
Integer num = map3.get(Long.valueOf(longValue));
|
|
boolean z2 = true;
|
|
if (num == null || num.intValue() != 1) {
|
|
z2 = false;
|
|
}
|
|
arrayList.add(new WidgetFriendsAddUserAdapter.ItemUser(user, emptyList, presence, z2));
|
|
}
|
|
return new WidgetFriendsFindNearby.Model.NearbyUsers(arrayList);
|
|
}
|
|
|
|
/* 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 */ WidgetFriendsFindNearby.Model.NearbyUsers call(Map<Long, ? extends User> map, Map<Long, ? extends Presence> map2, Map<Long, ? extends Integer> map3) {
|
|
return call(map, (Map<Long, Presence>) map2, (Map<Long, Integer>) map3);
|
|
}
|
|
}
|