44 lines
2.2 KiB
Java
44 lines
2.2 KiB
Java
|
package com.discord.widgets.home;
|
||
|
|
||
|
import com.discord.stores.StoreGuildWelcomeScreens;
|
||
|
import com.discord.stores.StoreLurking;
|
||
|
import com.discord.widgets.home.WidgetHomeViewModel;
|
||
|
import d0.z.d.m;
|
||
|
import j0.k.b;
|
||
|
import rx.Observable;
|
||
|
import rx.functions.Func2;
|
||
|
/* compiled from: WidgetHomeViewModel.kt */
|
||
|
public final class WidgetHomeViewModel$Companion$observeStoreState$guildInfoObservable$1<T, R> implements b<Long, Observable<? extends WidgetHomeViewModel.GuildInfo>> {
|
||
|
public final /* synthetic */ StoreGuildWelcomeScreens $storeGuildWelcomeScreens;
|
||
|
public final /* synthetic */ StoreLurking $storeLurking;
|
||
|
|
||
|
/* compiled from: WidgetHomeViewModel.kt */
|
||
|
/* renamed from: com.discord.widgets.home.WidgetHomeViewModel$Companion$observeStoreState$guildInfoObservable$1$1 reason: invalid class name */
|
||
|
public static final class AnonymousClass1<T1, T2, R> implements Func2<Boolean, StoreGuildWelcomeScreens.State, WidgetHomeViewModel.GuildInfo> {
|
||
|
public final /* synthetic */ Long $selectedGuildId;
|
||
|
|
||
|
public AnonymousClass1(Long l) {
|
||
|
this.$selectedGuildId = l;
|
||
|
}
|
||
|
|
||
|
public final WidgetHomeViewModel.GuildInfo call(Boolean bool, StoreGuildWelcomeScreens.State state) {
|
||
|
Long l = this.$selectedGuildId;
|
||
|
m.checkNotNullExpressionValue(l, "selectedGuildId");
|
||
|
long longValue = l.longValue();
|
||
|
m.checkNotNullExpressionValue(bool, "isLurking");
|
||
|
return new WidgetHomeViewModel.GuildInfo(longValue, bool.booleanValue(), state);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public WidgetHomeViewModel$Companion$observeStoreState$guildInfoObservable$1(StoreLurking storeLurking, StoreGuildWelcomeScreens storeGuildWelcomeScreens) {
|
||
|
this.$storeLurking = storeLurking;
|
||
|
this.$storeGuildWelcomeScreens = storeGuildWelcomeScreens;
|
||
|
}
|
||
|
|
||
|
public final Observable<? extends WidgetHomeViewModel.GuildInfo> call(Long l) {
|
||
|
StoreLurking storeLurking = this.$storeLurking;
|
||
|
m.checkNotNullExpressionValue(l, "selectedGuildId");
|
||
|
return Observable.j(storeLurking.isLurkingObs(l.longValue()), this.$storeGuildWelcomeScreens.observeGuildWelcomeScreen(l.longValue()), new AnonymousClass1(l));
|
||
|
}
|
||
|
}
|