35 lines
1.8 KiB
Java
35 lines
1.8 KiB
Java
|
package com.discord.stores;
|
||
|
|
||
|
import com.discord.models.domain.ModelApplicationStream;
|
||
|
import d0.z.d.o;
|
||
|
import java.util.LinkedHashMap;
|
||
|
import java.util.Map;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
/* compiled from: StoreApplicationStreaming.kt */
|
||
|
public final class StoreApplicationStreaming$observeStreamsForGuild$1 extends o implements Function0<Map<Long, ? extends ModelApplicationStream>> {
|
||
|
public final /* synthetic */ long $guildId;
|
||
|
public final /* synthetic */ StoreApplicationStreaming this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public StoreApplicationStreaming$observeStreamsForGuild$1(StoreApplicationStreaming storeApplicationStreaming, long j) {
|
||
|
super(0);
|
||
|
this.this$0 = storeApplicationStreaming;
|
||
|
this.$guildId = j;
|
||
|
}
|
||
|
|
||
|
/* Return type fixed from 'java.util.Map<java.lang.Long, com.discord.models.domain.ModelApplicationStream>' to match base method */
|
||
|
@Override // kotlin.jvm.functions.Function0
|
||
|
/* renamed from: invoke */
|
||
|
public final Map<Long, ? extends ModelApplicationStream> mo1invoke() {
|
||
|
Map access$getStreamsByUserSnapshot$p = StoreApplicationStreaming.access$getStreamsByUserSnapshot$p(this.this$0);
|
||
|
LinkedHashMap linkedHashMap = new LinkedHashMap();
|
||
|
for (Map.Entry entry : access$getStreamsByUserSnapshot$p.entrySet()) {
|
||
|
ModelApplicationStream modelApplicationStream = (ModelApplicationStream) entry.getValue();
|
||
|
if ((modelApplicationStream instanceof ModelApplicationStream.GuildStream) && ((ModelApplicationStream.GuildStream) modelApplicationStream).getGuildId() == this.$guildId) {
|
||
|
linkedHashMap.put(entry.getKey(), entry.getValue());
|
||
|
}
|
||
|
}
|
||
|
return linkedHashMap;
|
||
|
}
|
||
|
}
|