discord-jadx/app/src/main/java/com/discord/widgets/botuikit/ComponentChatListState.java

111 lines
5.0 KiB
Java

package com.discord.widgets.botuikit;
import c.d.b.a.a;
import com.discord.api.botuikit.SelectItem;
import com.discord.stores.StoreApplicationInteractions;
import com.discord.stores.StoreStream;
import d0.t.h0;
import d0.z.d.m;
import java.util.List;
import java.util.Map;
import kotlin.jvm.internal.DefaultConstructorMarker;
import rx.Observable;
/* compiled from: ComponentChatListState.kt */
public final class ComponentChatListState {
public static final ComponentChatListState INSTANCE = new ComponentChatListState();
/* compiled from: ComponentChatListState.kt */
public static final class ComponentStoreState {
private final Map<Integer, StoreApplicationInteractions.InteractionSendState> interactionState;
private final Map<Integer, List<SelectItem>> selections;
public ComponentStoreState() {
this(null, null, 3, null);
}
/* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: java.util.Map<java.lang.Integer, ? extends com.discord.stores.StoreApplicationInteractions$InteractionSendState> */
/* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: java.util.Map<java.lang.Integer, ? extends java.util.List<com.discord.api.botuikit.SelectItem>> */
/* JADX WARN: Multi-variable type inference failed */
public ComponentStoreState(Map<Integer, ? extends StoreApplicationInteractions.InteractionSendState> map, Map<Integer, ? extends List<SelectItem>> map2) {
this.interactionState = map;
this.selections = map2;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ ComponentStoreState(Map map, Map map2, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? h0.emptyMap() : map, (i & 2) != 0 ? h0.emptyMap() : map2);
}
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.botuikit.ComponentChatListState$ComponentStoreState */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ ComponentStoreState copy$default(ComponentStoreState componentStoreState, Map map, Map map2, int i, Object obj) {
if ((i & 1) != 0) {
map = componentStoreState.interactionState;
}
if ((i & 2) != 0) {
map2 = componentStoreState.selections;
}
return componentStoreState.copy(map, map2);
}
public final Map<Integer, StoreApplicationInteractions.InteractionSendState> component1() {
return this.interactionState;
}
public final Map<Integer, List<SelectItem>> component2() {
return this.selections;
}
public final ComponentStoreState copy(Map<Integer, ? extends StoreApplicationInteractions.InteractionSendState> map, Map<Integer, ? extends List<SelectItem>> map2) {
return new ComponentStoreState(map, map2);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ComponentStoreState)) {
return false;
}
ComponentStoreState componentStoreState = (ComponentStoreState) obj;
return m.areEqual(this.interactionState, componentStoreState.interactionState) && m.areEqual(this.selections, componentStoreState.selections);
}
public final Map<Integer, StoreApplicationInteractions.InteractionSendState> getInteractionState() {
return this.interactionState;
}
public final Map<Integer, List<SelectItem>> getSelections() {
return this.selections;
}
public int hashCode() {
Map<Integer, StoreApplicationInteractions.InteractionSendState> map = this.interactionState;
int i = 0;
int hashCode = (map != null ? map.hashCode() : 0) * 31;
Map<Integer, List<SelectItem>> map2 = this.selections;
if (map2 != null) {
i = map2.hashCode();
}
return hashCode + i;
}
public String toString() {
StringBuilder K = a.K("ComponentStoreState(interactionState=");
K.append(this.interactionState);
K.append(", selections=");
return a.E(K, this.selections, ")");
}
}
private ComponentChatListState() {
}
public final Observable<Map<Long, ComponentStoreState>> observeChatListComponentState() {
StoreStream.Companion companion = StoreStream.Companion;
Observable<Map<Long, ComponentStoreState>> j = Observable.j(companion.getInteractions().observeComponentInteractionState(), companion.getLocalActionComponentState().observeSelectComponentSelections(), ComponentChatListState$observeChatListComponentState$1.INSTANCE);
m.checkNotNullExpressionValue(j, "Observable.combineLatest…]\n )\n }\n }");
return j;
}
}