discord-jadx/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents.java

57 lines
2.5 KiB
Java

package com.discord.stores;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.stores.updates.ObservationDeck;
import d0.t.h0;
import d0.z.d.m;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import rx.Observable;
/* compiled from: StoreGuildScheduledEvents.kt */
public final class StoreGuildScheduledEvents extends StoreV2 {
private final Dispatcher dispatcher;
private final HashMap<Long, List<GuildScheduledEvent>> guildScheduledEvents = new HashMap<>();
private Map<Long, ? extends List<GuildScheduledEvent>> guildScheduledEventsSnapshot = h0.emptyMap();
private final ObservationDeck observationDeck;
public StoreGuildScheduledEvents(Dispatcher dispatcher, ObservationDeck observationDeck) {
m.checkNotNullParameter(dispatcher, "dispatcher");
m.checkNotNullParameter(observationDeck, "observationDeck");
this.dispatcher = dispatcher;
this.observationDeck = observationDeck;
}
public static final /* synthetic */ Dispatcher access$getDispatcher$p(StoreGuildScheduledEvents storeGuildScheduledEvents) {
return storeGuildScheduledEvents.dispatcher;
}
public static final /* synthetic */ HashMap access$getGuildScheduledEvents$p(StoreGuildScheduledEvents storeGuildScheduledEvents) {
return storeGuildScheduledEvents.guildScheduledEvents;
}
public static final /* synthetic */ Map access$getGuildScheduledEventsSnapshot$p(StoreGuildScheduledEvents storeGuildScheduledEvents) {
return storeGuildScheduledEvents.guildScheduledEventsSnapshot;
}
public static final /* synthetic */ ObservationDeck access$getObservationDeck$p(StoreGuildScheduledEvents storeGuildScheduledEvents) {
return storeGuildScheduledEvents.observationDeck;
}
public static final /* synthetic */ void access$setGuildScheduledEventsSnapshot$p(StoreGuildScheduledEvents storeGuildScheduledEvents, Map map) {
storeGuildScheduledEvents.guildScheduledEventsSnapshot = map;
}
public final Observable<List<GuildScheduledEvent>> observeGuildScheduledEvents(long j) {
Observable<List<GuildScheduledEvent>> p = Observable.p(new StoreGuildScheduledEvents$observeGuildScheduledEvents$1(this, j));
m.checkNotNullExpressionValue(p, "Observable.defer {\n …emptyList()\n }\n }");
return p;
}
@Override // com.discord.stores.StoreV2
public void snapshotData() {
super.snapshotData();
this.guildScheduledEventsSnapshot = new HashMap(this.guildScheduledEvents);
}
}