59 lines
2.6 KiB
Java
59 lines
2.6 KiB
Java
|
package com.discord.widgets.stage.start;
|
||
|
|
||
|
import com.discord.models.experiments.domain.Experiment;
|
||
|
import com.discord.stores.StoreExperiments;
|
||
|
import com.discord.stores.StoreGuilds;
|
||
|
import com.discord.stores.StoreStream;
|
||
|
import d0.g;
|
||
|
import d0.z.d.m;
|
||
|
import kotlin.Lazy;
|
||
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||
|
/* compiled from: StartStageEventGuildsFeatureFlag.kt */
|
||
|
public final class StartStageEventGuildsFeatureFlag {
|
||
|
public static final Companion Companion = new Companion(null);
|
||
|
private static final Lazy INSTANCE$delegate = g.lazy(StartStageEventGuildsFeatureFlag$Companion$INSTANCE$2.INSTANCE);
|
||
|
private final StoreExperiments experimentsStore;
|
||
|
private final StoreGuilds guildsStore;
|
||
|
|
||
|
/* compiled from: StartStageEventGuildsFeatureFlag.kt */
|
||
|
public static final class Companion {
|
||
|
private Companion() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||
|
this();
|
||
|
}
|
||
|
|
||
|
public final StartStageEventGuildsFeatureFlag getINSTANCE() {
|
||
|
Lazy access$getINSTANCE$cp = StartStageEventGuildsFeatureFlag.access$getINSTANCE$cp();
|
||
|
Companion companion = StartStageEventGuildsFeatureFlag.Companion;
|
||
|
return (StartStageEventGuildsFeatureFlag) access$getINSTANCE$cp.getValue();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public StartStageEventGuildsFeatureFlag() {
|
||
|
this(null, null, 3, null);
|
||
|
}
|
||
|
|
||
|
public StartStageEventGuildsFeatureFlag(StoreGuilds storeGuilds, StoreExperiments storeExperiments) {
|
||
|
m.checkNotNullParameter(storeGuilds, "guildsStore");
|
||
|
m.checkNotNullParameter(storeExperiments, "experimentsStore");
|
||
|
this.guildsStore = storeGuilds;
|
||
|
this.experimentsStore = storeExperiments;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
||
|
public /* synthetic */ StartStageEventGuildsFeatureFlag(StoreGuilds storeGuilds, StoreExperiments storeExperiments, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||
|
this((i & 1) != 0 ? StoreStream.Companion.getGuilds() : storeGuilds, (i & 2) != 0 ? StoreStream.Companion.getExperiments() : storeExperiments);
|
||
|
}
|
||
|
|
||
|
public static final /* synthetic */ Lazy access$getINSTANCE$cp() {
|
||
|
return INSTANCE$delegate;
|
||
|
}
|
||
|
|
||
|
public final boolean canGuildAccessStartStageEvent(long j) {
|
||
|
Experiment guildExperiment;
|
||
|
return (this.guildsStore.getGuild(j) == null || (guildExperiment = this.experimentsStore.getGuildExperiment("2021-06_stage_events", j, true)) == null || guildExperiment.getBucket() != 1) ? false : true;
|
||
|
}
|
||
|
}
|