55 lines
2.4 KiB
Java
55 lines
2.4 KiB
Java
package com.discord.widgets.channels;
|
|
|
|
import com.discord.models.user.User;
|
|
import j0.k.b;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import rx.Observable;
|
|
/* compiled from: WidgetGroupInviteFriends.kt */
|
|
public final class WidgetGroupInviteFriends$Model$Companion$getFriendChanges$1<T, R> implements b<Map<Long, ? extends Integer>, Observable<? extends List<User>>> {
|
|
public final /* synthetic */ Observable $addedUsers;
|
|
|
|
/* compiled from: WidgetGroupInviteFriends.kt */
|
|
/* renamed from: com.discord.widgets.channels.WidgetGroupInviteFriends$Model$Companion$getFriendChanges$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1<T, R> implements b<Collection<? extends User>, Observable<? extends List<User>>> {
|
|
public final /* synthetic */ Map $friends;
|
|
|
|
/* compiled from: WidgetGroupInviteFriends.kt */
|
|
/* renamed from: com.discord.widgets.channels.WidgetGroupInviteFriends$Model$Companion$getFriendChanges$1$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1<T, R> implements b<User, Boolean> {
|
|
public final /* synthetic */ AnonymousClass1 this$0;
|
|
|
|
public AnonymousClass1(AnonymousClass1 r1) {
|
|
this.this$0 = r1;
|
|
}
|
|
|
|
public final Boolean call(User user) {
|
|
return Boolean.valueOf(this.this$0.$friends.containsKey(Long.valueOf(user.getId())));
|
|
}
|
|
}
|
|
|
|
public AnonymousClass1(Map map) {
|
|
this.$friends = map;
|
|
}
|
|
|
|
public final Observable<? extends List<User>> call(Collection<? extends User> collection) {
|
|
return Observable.A(collection).x(new AnonymousClass1(this)).f0();
|
|
}
|
|
}
|
|
|
|
public WidgetGroupInviteFriends$Model$Companion$getFriendChanges$1(Observable observable) {
|
|
this.$addedUsers = observable;
|
|
}
|
|
|
|
/* 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] */
|
|
@Override // j0.k.b
|
|
public /* bridge */ /* synthetic */ Observable<? extends List<User>> call(Map<Long, ? extends Integer> map) {
|
|
return call((Map<Long, Integer>) map);
|
|
}
|
|
|
|
public final Observable<? extends List<User>> call(Map<Long, Integer> map) {
|
|
return this.$addedUsers.Y(new AnonymousClass1(map));
|
|
}
|
|
}
|