56 lines
3.4 KiB
Java
56 lines
3.4 KiB
Java
package com.discord.widgets.channels.memberlist;
|
|
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.models.domain.ModelApplicationStream;
|
|
import com.discord.models.presence.Presence;
|
|
import com.discord.models.user.User;
|
|
import com.discord.stores.StoreUser;
|
|
import com.discord.widgets.channels.memberlist.PrivateChannelMemberListService;
|
|
import d0.z.d.m;
|
|
import j0.k.b;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import rx.Observable;
|
|
import rx.functions.Func3;
|
|
/* compiled from: PrivateChannelMemberListService.kt */
|
|
public final class PrivateChannelMemberListService$observeStateForGroupDm$2<T, R> implements b<List<Long>, Observable<? extends PrivateChannelMemberListService.State>> {
|
|
public final /* synthetic */ Channel $channel;
|
|
public final /* synthetic */ PrivateChannelMemberListService this$0;
|
|
|
|
/* compiled from: PrivateChannelMemberListService.kt */
|
|
/* renamed from: com.discord.widgets.channels.memberlist.PrivateChannelMemberListService$observeStateForGroupDm$2$1 reason: invalid class name */
|
|
public static final class AnonymousClass1<T1, T2, T3, R> implements Func3<Map<Long, ? extends User>, Map<Long, ? extends Presence>, Map<Long, ? extends ModelApplicationStream>, PrivateChannelMemberListService.State> {
|
|
public final /* synthetic */ PrivateChannelMemberListService$observeStateForGroupDm$2 this$0;
|
|
|
|
public AnonymousClass1(PrivateChannelMemberListService$observeStateForGroupDm$2 privateChannelMemberListService$observeStateForGroupDm$2) {
|
|
this.this$0 = privateChannelMemberListService$observeStateForGroupDm$2;
|
|
}
|
|
|
|
public final PrivateChannelMemberListService.State call(Map<Long, ? extends User> map, Map<Long, Presence> map2, Map<Long, ? extends ModelApplicationStream> map3) {
|
|
Channel channel = this.this$0.$channel;
|
|
m.checkNotNullExpressionValue(map, "users");
|
|
m.checkNotNullExpressionValue(map2, "presences");
|
|
m.checkNotNullExpressionValue(map3, "applicationStreams");
|
|
return new PrivateChannelMemberListService.State(channel, map, map2, map3);
|
|
}
|
|
|
|
/* 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 */ PrivateChannelMemberListService.State call(Map<Long, ? extends User> map, Map<Long, ? extends Presence> map2, Map<Long, ? extends ModelApplicationStream> map3) {
|
|
return call(map, (Map<Long, Presence>) map2, map3);
|
|
}
|
|
}
|
|
|
|
public PrivateChannelMemberListService$observeStateForGroupDm$2(PrivateChannelMemberListService privateChannelMemberListService, Channel channel) {
|
|
this.this$0 = privateChannelMemberListService;
|
|
this.$channel = channel;
|
|
}
|
|
|
|
public final Observable<? extends PrivateChannelMemberListService.State> call(List<Long> list) {
|
|
StoreUser access$getStoreUser$p = PrivateChannelMemberListService.access$getStoreUser$p(this.this$0);
|
|
m.checkNotNullExpressionValue(list, "ids");
|
|
return Observable.i(access$getStoreUser$p.observeUsers(list), PrivateChannelMemberListService.access$getStorePresences$p(this.this$0).observePresencesForUsers(list), PrivateChannelMemberListService.access$getStoreApplicationStreaming$p(this.this$0).observeStreamsByUser(), new AnonymousClass1(this));
|
|
}
|
|
}
|