114 lines
4.8 KiB
Java
114 lines
4.8 KiB
Java
package com.discord.widgets.chat.input.models;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.models.commands.ApplicationCommandOption;
|
|
import d0.t.h0;
|
|
import d0.z.d.m;
|
|
import java.util.Map;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: InputCommandOptions.kt */
|
|
public final class InputCommandOptions {
|
|
private final Map<ApplicationCommandOption, Boolean> commandOptionValidity;
|
|
private final Map<ApplicationCommandOption, OptionRange> inputRanges;
|
|
private final Map<ApplicationCommandOption, CommandOptionValue> values;
|
|
|
|
public InputCommandOptions() {
|
|
this(null, null, null, 7, null);
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: java.util.Map<com.discord.models.commands.ApplicationCommandOption, ? extends com.discord.widgets.chat.input.models.CommandOptionValue> */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public InputCommandOptions(Map<ApplicationCommandOption, ? extends CommandOptionValue> map, Map<ApplicationCommandOption, OptionRange> map2, Map<ApplicationCommandOption, Boolean> map3) {
|
|
m.checkNotNullParameter(map, "values");
|
|
m.checkNotNullParameter(map2, "inputRanges");
|
|
m.checkNotNullParameter(map3, "commandOptionValidity");
|
|
this.values = map;
|
|
this.inputRanges = map2;
|
|
this.commandOptionValidity = map3;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ InputCommandOptions(Map map, Map map2, Map map3, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? h0.emptyMap() : map, (i & 2) != 0 ? h0.emptyMap() : map2, (i & 4) != 0 ? h0.emptyMap() : map3);
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.chat.input.models.InputCommandOptions */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ InputCommandOptions copy$default(InputCommandOptions inputCommandOptions, Map map, Map map2, Map map3, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
map = inputCommandOptions.values;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
map2 = inputCommandOptions.inputRanges;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
map3 = inputCommandOptions.commandOptionValidity;
|
|
}
|
|
return inputCommandOptions.copy(map, map2, map3);
|
|
}
|
|
|
|
public final Map<ApplicationCommandOption, CommandOptionValue> component1() {
|
|
return this.values;
|
|
}
|
|
|
|
public final Map<ApplicationCommandOption, OptionRange> component2() {
|
|
return this.inputRanges;
|
|
}
|
|
|
|
public final Map<ApplicationCommandOption, Boolean> component3() {
|
|
return this.commandOptionValidity;
|
|
}
|
|
|
|
public final InputCommandOptions copy(Map<ApplicationCommandOption, ? extends CommandOptionValue> map, Map<ApplicationCommandOption, OptionRange> map2, Map<ApplicationCommandOption, Boolean> map3) {
|
|
m.checkNotNullParameter(map, "values");
|
|
m.checkNotNullParameter(map2, "inputRanges");
|
|
m.checkNotNullParameter(map3, "commandOptionValidity");
|
|
return new InputCommandOptions(map, map2, map3);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof InputCommandOptions)) {
|
|
return false;
|
|
}
|
|
InputCommandOptions inputCommandOptions = (InputCommandOptions) obj;
|
|
return m.areEqual(this.values, inputCommandOptions.values) && m.areEqual(this.inputRanges, inputCommandOptions.inputRanges) && m.areEqual(this.commandOptionValidity, inputCommandOptions.commandOptionValidity);
|
|
}
|
|
|
|
public final Map<ApplicationCommandOption, Boolean> getCommandOptionValidity() {
|
|
return this.commandOptionValidity;
|
|
}
|
|
|
|
public final Map<ApplicationCommandOption, OptionRange> getInputRanges() {
|
|
return this.inputRanges;
|
|
}
|
|
|
|
public final Map<ApplicationCommandOption, CommandOptionValue> getValues() {
|
|
return this.values;
|
|
}
|
|
|
|
public int hashCode() {
|
|
Map<ApplicationCommandOption, CommandOptionValue> map = this.values;
|
|
int i = 0;
|
|
int hashCode = (map != null ? map.hashCode() : 0) * 31;
|
|
Map<ApplicationCommandOption, OptionRange> map2 = this.inputRanges;
|
|
int hashCode2 = (hashCode + (map2 != null ? map2.hashCode() : 0)) * 31;
|
|
Map<ApplicationCommandOption, Boolean> map3 = this.commandOptionValidity;
|
|
if (map3 != null) {
|
|
i = map3.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("InputCommandOptions(values=");
|
|
L.append(this.values);
|
|
L.append(", inputRanges=");
|
|
L.append(this.inputRanges);
|
|
L.append(", commandOptionValidity=");
|
|
return a.F(L, this.commandOptionValidity, ")");
|
|
}
|
|
}
|