188 lines
6.3 KiB
Java
188 lines
6.3 KiB
Java
|
package com.discord.stores;
|
||
|
|
||
|
import c.d.b.a.a;
|
||
|
import com.discord.models.commands.ApplicationCommand;
|
||
|
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;
|
||
|
|
||
|
/* 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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* 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) {
|
||
|
m.checkNotNullParameter(list, "commands");
|
||
|
this.commands = list;
|
||
|
this.currentStartOffset = i;
|
||
|
this.currentEndOffset = i2;
|
||
|
this.hasMoreBefore = z2;
|
||
|
this.hasMoreAfter = z3;
|
||
|
this.jumpedSequenceId = i3;
|
||
|
this.jumpedApplicationId = l;
|
||
|
}
|
||
|
|
||
|
/* JADX DEBUG: Multi-variable search result rejected for r5v0, resolved type: com.discord.stores.DiscoverCommands */
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
public static /* synthetic */ DiscoverCommands copy$default(DiscoverCommands discoverCommands, List list, int i, int i2, boolean z2, boolean z3, int i3, Long l, int i4, Object obj) {
|
||
|
if ((i4 & 1) != 0) {
|
||
|
list = discoverCommands.commands;
|
||
|
}
|
||
|
if ((i4 & 2) != 0) {
|
||
|
i = discoverCommands.currentStartOffset;
|
||
|
}
|
||
|
if ((i4 & 4) != 0) {
|
||
|
i2 = discoverCommands.currentEndOffset;
|
||
|
}
|
||
|
if ((i4 & 8) != 0) {
|
||
|
z2 = discoverCommands.hasMoreBefore;
|
||
|
}
|
||
|
if ((i4 & 16) != 0) {
|
||
|
z3 = discoverCommands.hasMoreAfter;
|
||
|
}
|
||
|
if ((i4 & 32) != 0) {
|
||
|
i3 = discoverCommands.jumpedSequenceId;
|
||
|
}
|
||
|
if ((i4 & 64) != 0) {
|
||
|
l = discoverCommands.jumpedApplicationId;
|
||
|
}
|
||
|
return discoverCommands.copy(list, i, i2, z2, z3, i3, l);
|
||
|
}
|
||
|
|
||
|
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 DiscoverCommands copy(List<? extends ApplicationCommand> list, int i, int i2, boolean z2, boolean z3, int i3, Long l) {
|
||
|
m.checkNotNullParameter(list, "commands");
|
||
|
return new DiscoverCommands(list, i, i2, z2, z3, i3, l);
|
||
|
}
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
|
||
|
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 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;
|
||
|
if (l != null) {
|
||
|
i = l.hashCode();
|
||
|
}
|
||
|
return i7 + i;
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
StringBuilder L = a.L("DiscoverCommands(commands=");
|
||
|
L.append(this.commands);
|
||
|
L.append(", currentStartOffset=");
|
||
|
L.append(this.currentStartOffset);
|
||
|
L.append(", currentEndOffset=");
|
||
|
L.append(this.currentEndOffset);
|
||
|
L.append(", hasMoreBefore=");
|
||
|
L.append(this.hasMoreBefore);
|
||
|
L.append(", hasMoreAfter=");
|
||
|
L.append(this.hasMoreAfter);
|
||
|
L.append(", jumpedSequenceId=");
|
||
|
L.append(this.jumpedSequenceId);
|
||
|
L.append(", jumpedApplicationId=");
|
||
|
return a.C(L, this.jumpedApplicationId, ")");
|
||
|
}
|
||
|
}
|