2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.stores;
|
|
|
|
|
|
|
|
import com.discord.api.voice.state.VoiceState;
|
|
|
|
import j0.k.b;
|
|
|
|
import j0.l.a.l0;
|
|
|
|
import j0.l.e.l;
|
|
|
|
import java.util.Map;
|
|
|
|
import rx.Observable;
|
|
|
|
/* compiled from: StoreVoiceStates.kt */
|
|
|
|
public final class StoreVoiceStates$observe$2<T, R> implements b<Map<Long, ? extends VoiceState>, Observable<? extends Map<Long, VoiceState>>> {
|
|
|
|
public final /* synthetic */ long $channelId;
|
|
|
|
|
|
|
|
/* compiled from: StoreVoiceStates.kt */
|
|
|
|
/* renamed from: com.discord.stores.StoreVoiceStates$observe$2$1 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass1<T, R> implements b<VoiceState, Boolean> {
|
|
|
|
public final /* synthetic */ StoreVoiceStates$observe$2 this$0;
|
|
|
|
|
|
|
|
public AnonymousClass1(StoreVoiceStates$observe$2 storeVoiceStates$observe$2) {
|
|
|
|
this.this$0 = storeVoiceStates$observe$2;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Boolean call(VoiceState voiceState) {
|
|
|
|
Long a = voiceState.a();
|
|
|
|
return Boolean.valueOf(a != null && a.longValue() == this.this$0.$channelId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* compiled from: StoreVoiceStates.kt */
|
|
|
|
/* renamed from: com.discord.stores.StoreVoiceStates$observe$2$2 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass2<T, R> implements b<VoiceState, Long> {
|
|
|
|
public static final AnonymousClass2 INSTANCE = new AnonymousClass2();
|
|
|
|
|
|
|
|
public final Long call(VoiceState voiceState) {
|
|
|
|
return Long.valueOf(voiceState.m());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public StoreVoiceStates$observe$2(long j) {
|
|
|
|
this.$channelId = j;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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 Map<Long, VoiceState>> call(Map<Long, ? extends VoiceState> map) {
|
|
|
|
return call((Map<Long, VoiceState>) map);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Observable<? extends Map<Long, VoiceState>> call(Map<Long, VoiceState> map) {
|
2021-07-03 23:36:06 +00:00
|
|
|
return Observable.h0(new l0(Observable.A(map.values()).x(new AnonymousClass1(this)), AnonymousClass2.INSTANCE, l.INSTANCE));
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|