57 lines
2.1 KiB
Java
57 lines
2.1 KiB
Java
|
package com.discord.stores;
|
||
|
|
||
|
import com.discord.api.channel.Channel;
|
||
|
import d0.z.d.m;
|
||
|
import j0.k.b;
|
||
|
import j0.l.e.j;
|
||
|
import java.util.LinkedHashMap;
|
||
|
import java.util.Map;
|
||
|
import rx.Observable;
|
||
|
/* compiled from: StoreChannels.kt */
|
||
|
public final class StoreChannels$observeChannelsForGuild$1<T, R> implements b<Map<Long, ? extends Channel>, Observable<? extends Map<Long, ? extends Channel>>> {
|
||
|
public final /* synthetic */ long $guildId;
|
||
|
public final /* synthetic */ Integer $type;
|
||
|
|
||
|
public StoreChannels$observeChannelsForGuild$1(long j, Integer num) {
|
||
|
this.$guildId = j;
|
||
|
this.$type = num;
|
||
|
}
|
||
|
|
||
|
/* 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, ? extends Channel>> call(Map<Long, ? extends Channel> map) {
|
||
|
return call((Map<Long, Channel>) map);
|
||
|
}
|
||
|
|
||
|
/* JADX WARNING: Code restructure failed: missing block: B:10:0x003f, code lost:
|
||
|
if (r2 != r3.intValue()) goto L_0x0043;
|
||
|
*/
|
||
|
/* JADX WARNING: Removed duplicated region for block: B:17:0x0046 A[SYNTHETIC] */
|
||
|
/* JADX WARNING: Removed duplicated region for block: B:20:0x0012 A[SYNTHETIC] */
|
||
|
public final Observable<? extends Map<Long, Channel>> call(Map<Long, Channel> map) {
|
||
|
boolean z2;
|
||
|
m.checkNotNullExpressionValue(map, "channels");
|
||
|
LinkedHashMap linkedHashMap = new LinkedHashMap();
|
||
|
for (Map.Entry<Long, Channel> entry : map.entrySet()) {
|
||
|
Channel value = entry.getValue();
|
||
|
if (value.e() == this.$guildId) {
|
||
|
if (this.$type != null) {
|
||
|
int z3 = value.z();
|
||
|
Integer num = this.$type;
|
||
|
if (num != null) {
|
||
|
}
|
||
|
}
|
||
|
z2 = true;
|
||
|
if (!z2) {
|
||
|
linkedHashMap.put(entry.getKey(), entry.getValue());
|
||
|
}
|
||
|
}
|
||
|
z2 = false;
|
||
|
if (!z2) {
|
||
|
}
|
||
|
}
|
||
|
return new j(linkedHashMap);
|
||
|
}
|
||
|
}
|