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

189 lines
7.0 KiB
Java

package com.discord.stores;
import c.d.b.a.a;
import com.discord.models.commands.ApplicationCommand;
import com.discord.stores.LoadState;
import d0.t.n;
import d0.z.d.m;
import java.util.List;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: StoreApplicationCommands.kt */
public final class DiscoverCommands {
public static final Companion Companion = new Companion(null);
private final List<ApplicationCommand> commands;
private final int currentEndOffset;
private final int currentStartOffset;
private final boolean hasMoreAfter;
private final boolean hasMoreBefore;
private final Long jumpedApplicationId;
private final int jumpedSequenceId;
private final LoadState loadState;
/* compiled from: StoreApplicationCommands.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final DiscoverCommands getDefaultModelDiscoveryCommands() {
return new DiscoverCommands(n.emptyList(), 0, 0, false, false, 0, null, null, 128, null);
}
}
/* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: java.util.List<? extends com.discord.models.commands.ApplicationCommand> */
/* JADX WARN: Multi-variable type inference failed */
public DiscoverCommands(List<? extends ApplicationCommand> list, int i, int i2, boolean z2, boolean z3, int i3, Long l, LoadState loadState) {
m.checkNotNullParameter(list, "commands");
m.checkNotNullParameter(loadState, "loadState");
this.commands = list;
this.currentStartOffset = i;
this.currentEndOffset = i2;
this.hasMoreBefore = z2;
this.hasMoreAfter = z3;
this.jumpedSequenceId = i3;
this.jumpedApplicationId = l;
this.loadState = loadState;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ DiscoverCommands(List list, int i, int i2, boolean z2, boolean z3, int i3, Long l, LoadState loadState, int i4, DefaultConstructorMarker defaultConstructorMarker) {
this(list, i, i2, z2, z3, i3, l, (i4 & 128) != 0 ? LoadState.None.INSTANCE : loadState);
}
public static /* synthetic */ DiscoverCommands copy$default(DiscoverCommands discoverCommands, List list, int i, int i2, boolean z2, boolean z3, int i3, Long l, LoadState loadState, int i4, Object obj) {
return discoverCommands.copy((i4 & 1) != 0 ? discoverCommands.commands : list, (i4 & 2) != 0 ? discoverCommands.currentStartOffset : i, (i4 & 4) != 0 ? discoverCommands.currentEndOffset : i2, (i4 & 8) != 0 ? discoverCommands.hasMoreBefore : z2, (i4 & 16) != 0 ? discoverCommands.hasMoreAfter : z3, (i4 & 32) != 0 ? discoverCommands.jumpedSequenceId : i3, (i4 & 64) != 0 ? discoverCommands.jumpedApplicationId : l, (i4 & 128) != 0 ? discoverCommands.loadState : loadState);
}
public final List<ApplicationCommand> component1() {
return this.commands;
}
public final int component2() {
return this.currentStartOffset;
}
public final int component3() {
return this.currentEndOffset;
}
public final boolean component4() {
return this.hasMoreBefore;
}
public final boolean component5() {
return this.hasMoreAfter;
}
public final int component6() {
return this.jumpedSequenceId;
}
public final Long component7() {
return this.jumpedApplicationId;
}
public final LoadState component8() {
return this.loadState;
}
public final DiscoverCommands copy(List<? extends ApplicationCommand> list, int i, int i2, boolean z2, boolean z3, int i3, Long l, LoadState loadState) {
m.checkNotNullParameter(list, "commands");
m.checkNotNullParameter(loadState, "loadState");
return new DiscoverCommands(list, i, i2, z2, z3, i3, l, loadState);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof DiscoverCommands)) {
return false;
}
DiscoverCommands discoverCommands = (DiscoverCommands) obj;
return m.areEqual(this.commands, discoverCommands.commands) && this.currentStartOffset == discoverCommands.currentStartOffset && this.currentEndOffset == discoverCommands.currentEndOffset && this.hasMoreBefore == discoverCommands.hasMoreBefore && this.hasMoreAfter == discoverCommands.hasMoreAfter && this.jumpedSequenceId == discoverCommands.jumpedSequenceId && m.areEqual(this.jumpedApplicationId, discoverCommands.jumpedApplicationId) && m.areEqual(this.loadState, discoverCommands.loadState);
}
public final List<ApplicationCommand> getCommands() {
return this.commands;
}
public final int getCurrentEndOffset() {
return this.currentEndOffset;
}
public final int getCurrentStartOffset() {
return this.currentStartOffset;
}
public final boolean getHasMoreAfter() {
return this.hasMoreAfter;
}
public final boolean getHasMoreBefore() {
return this.hasMoreBefore;
}
public final Long getJumpedApplicationId() {
return this.jumpedApplicationId;
}
public final int getJumpedSequenceId() {
return this.jumpedSequenceId;
}
public final LoadState getLoadState() {
return this.loadState;
}
public int hashCode() {
List<ApplicationCommand> list = this.commands;
int i = 0;
int hashCode = (((((list != null ? list.hashCode() : 0) * 31) + this.currentStartOffset) * 31) + this.currentEndOffset) * 31;
boolean z2 = this.hasMoreBefore;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (hashCode + i3) * 31;
boolean z3 = this.hasMoreAfter;
if (!z3) {
i2 = z3 ? 1 : 0;
}
int i7 = (((i6 + i2) * 31) + this.jumpedSequenceId) * 31;
Long l = this.jumpedApplicationId;
int hashCode2 = (i7 + (l != null ? l.hashCode() : 0)) * 31;
LoadState loadState = this.loadState;
if (loadState != null) {
i = loadState.hashCode();
}
return hashCode2 + i;
}
public String toString() {
StringBuilder P = a.P("DiscoverCommands(commands=");
P.append(this.commands);
P.append(", currentStartOffset=");
P.append(this.currentStartOffset);
P.append(", currentEndOffset=");
P.append(this.currentEndOffset);
P.append(", hasMoreBefore=");
P.append(this.hasMoreBefore);
P.append(", hasMoreAfter=");
P.append(this.hasMoreAfter);
P.append(", jumpedSequenceId=");
P.append(this.jumpedSequenceId);
P.append(", jumpedApplicationId=");
P.append(this.jumpedApplicationId);
P.append(", loadState=");
P.append(this.loadState);
P.append(")");
return P.toString();
}
}