forked from Juby210/discord-jadx
43 lines
1.8 KiB
Java
43 lines
1.8 KiB
Java
package com.discord.widgets.guilds.profile;
|
|
|
|
import com.discord.models.member.GuildMember;
|
|
import com.discord.models.user.MeUser;
|
|
import com.discord.stores.StoreStream;
|
|
import d0.t.m;
|
|
import j0.k.b;
|
|
import java.util.Map;
|
|
import rx.Observable;
|
|
/* compiled from: WidgetGuildProfileSheetViewModel.kt */
|
|
public final class WidgetGuildProfileSheetViewModel$Companion$observeStores$1<T, R> implements b<MeUser, Observable<? extends GuildMember>> {
|
|
public final /* synthetic */ long $guildId;
|
|
|
|
/* compiled from: WidgetGuildProfileSheetViewModel.kt */
|
|
/* renamed from: com.discord.widgets.guilds.profile.WidgetGuildProfileSheetViewModel$Companion$observeStores$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1<T, R> implements b<Map<Long, ? extends GuildMember>, GuildMember> {
|
|
public final /* synthetic */ MeUser $me;
|
|
|
|
public AnonymousClass1(MeUser meUser) {
|
|
this.$me = meUser;
|
|
}
|
|
|
|
public final GuildMember call(Map<Long, GuildMember> map) {
|
|
return map.get(Long.valueOf(this.$me.getId()));
|
|
}
|
|
|
|
/* 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 */ GuildMember call(Map<Long, ? extends GuildMember> map) {
|
|
return call((Map<Long, GuildMember>) map);
|
|
}
|
|
}
|
|
|
|
public WidgetGuildProfileSheetViewModel$Companion$observeStores$1(long j) {
|
|
this.$guildId = j;
|
|
}
|
|
|
|
public final Observable<? extends GuildMember> call(MeUser meUser) {
|
|
return StoreStream.Companion.getGuilds().observeComputed(this.$guildId, m.listOf(Long.valueOf(meUser.getId()))).F(new AnonymousClass1(meUser));
|
|
}
|
|
}
|