2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
|
|
|
import com.discord.models.user.User;
|
|
|
|
import com.discord.stores.StoreUser;
|
|
|
|
import com.discord.widgets.guilds.invite.InviteSuggestionsManager;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
|
|
|
import j0.k.b;
|
2021-08-03 07:33:18 +00:00
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import rx.Observable;
|
|
|
|
import rx.functions.Func2;
|
|
|
|
/* compiled from: InviteSuggestionsManager.kt */
|
|
|
|
public final class InviteSuggestionsManager$observeInviteSuggestions$1<T, R> implements b<List<? extends Long>, Observable<? extends InviteSuggestionsManager.UserAffinityData>> {
|
|
|
|
public final /* synthetic */ InviteSuggestionsManager this$0;
|
|
|
|
|
|
|
|
/* compiled from: InviteSuggestionsManager.kt */
|
|
|
|
/* renamed from: com.discord.widgets.guilds.invite.InviteSuggestionsManager$observeInviteSuggestions$1$1 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass1<T1, T2, R> implements Func2<Map<Long, ? extends User>, Map<Long, ? extends Integer>, InviteSuggestionsManager.UserAffinityData> {
|
|
|
|
public final /* synthetic */ List $affinityUserIds;
|
|
|
|
|
|
|
|
public AnonymousClass1(List list) {
|
|
|
|
this.$affinityUserIds = list;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final InviteSuggestionsManager.UserAffinityData call(Map<Long, ? extends User> map, Map<Long, Integer> map2) {
|
|
|
|
List list = this.$affinityUserIds;
|
|
|
|
m.checkNotNullExpressionValue(list, "affinityUserIds");
|
|
|
|
m.checkNotNullExpressionValue(map, "users");
|
|
|
|
m.checkNotNullExpressionValue(map2, "relationships");
|
|
|
|
return new InviteSuggestionsManager.UserAffinityData(list, map, map2);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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] */
|
|
|
|
@Override // rx.functions.Func2
|
|
|
|
public /* bridge */ /* synthetic */ InviteSuggestionsManager.UserAffinityData call(Map<Long, ? extends User> map, Map<Long, ? extends Integer> map2) {
|
|
|
|
return call(map, (Map<Long, Integer>) map2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public InviteSuggestionsManager$observeInviteSuggestions$1(InviteSuggestionsManager inviteSuggestionsManager) {
|
|
|
|
this.this$0 = inviteSuggestionsManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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] */
|
2021-11-02 06:38:17 +00:00
|
|
|
@Override // j0.k.b
|
2021-08-03 07:33:18 +00:00
|
|
|
public /* bridge */ /* synthetic */ Observable<? extends InviteSuggestionsManager.UserAffinityData> call(List<? extends Long> list) {
|
|
|
|
return call((List<Long>) list);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Observable<? extends InviteSuggestionsManager.UserAffinityData> call(List<Long> list) {
|
|
|
|
StoreUser access$getStoreUsers$p = InviteSuggestionsManager.access$getStoreUsers$p(this.this$0);
|
|
|
|
m.checkNotNullExpressionValue(list, "affinityUserIds");
|
2021-10-15 06:18:26 +00:00
|
|
|
return Observable.j(access$getStoreUsers$p.observeUsers(list).q(), InviteSuggestionsManager.access$getStoreUserRelationships$p(this.this$0).observe(list), new AnonymousClass1(list));
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|