141 lines
5.1 KiB
Java
141 lines
5.1 KiB
Java
package com.discord.widgets.guildscheduledevent;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.models.domain.ModelAuditLogEntry;
|
|
import com.discord.simpleast.core.node.Node;
|
|
import com.discord.utilities.textprocessing.MessageRenderContext;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: GuildScheduledEventItemView.kt */
|
|
public abstract class DescriptionCache {
|
|
private final List<Node<MessageRenderContext>> maybeAst;
|
|
private final String maybeDescription;
|
|
|
|
/* compiled from: GuildScheduledEventItemView.kt */
|
|
public static final class HasDescription extends DescriptionCache {
|
|
private final List<Node<MessageRenderContext>> ast;
|
|
private final String description;
|
|
private final Set<Integer> shownSpoilerIndices;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public HasDescription(String str, List<Node<MessageRenderContext>> list, Set<Integer> set) {
|
|
super(str, list, null);
|
|
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_DESCRIPTION);
|
|
m.checkNotNullParameter(list, "ast");
|
|
m.checkNotNullParameter(set, "shownSpoilerIndices");
|
|
this.description = str;
|
|
this.ast = list;
|
|
this.shownSpoilerIndices = set;
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.guildscheduledevent.DescriptionCache$HasDescription */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ HasDescription copy$default(HasDescription hasDescription, String str, List list, Set set, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = hasDescription.description;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
list = hasDescription.ast;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
set = hasDescription.shownSpoilerIndices;
|
|
}
|
|
return hasDescription.copy(str, list, set);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.description;
|
|
}
|
|
|
|
public final List<Node<MessageRenderContext>> component2() {
|
|
return this.ast;
|
|
}
|
|
|
|
public final Set<Integer> component3() {
|
|
return this.shownSpoilerIndices;
|
|
}
|
|
|
|
public final HasDescription copy(String str, List<Node<MessageRenderContext>> list, Set<Integer> set) {
|
|
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_DESCRIPTION);
|
|
m.checkNotNullParameter(list, "ast");
|
|
m.checkNotNullParameter(set, "shownSpoilerIndices");
|
|
return new HasDescription(str, list, set);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof HasDescription)) {
|
|
return false;
|
|
}
|
|
HasDescription hasDescription = (HasDescription) obj;
|
|
return m.areEqual(this.description, hasDescription.description) && m.areEqual(this.ast, hasDescription.ast) && m.areEqual(this.shownSpoilerIndices, hasDescription.shownSpoilerIndices);
|
|
}
|
|
|
|
public final List<Node<MessageRenderContext>> getAst() {
|
|
return this.ast;
|
|
}
|
|
|
|
public final String getDescription() {
|
|
return this.description;
|
|
}
|
|
|
|
public final Set<Integer> getShownSpoilerIndices() {
|
|
return this.shownSpoilerIndices;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.description;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
List<Node<MessageRenderContext>> list = this.ast;
|
|
int hashCode2 = (hashCode + (list != null ? list.hashCode() : 0)) * 31;
|
|
Set<Integer> set = this.shownSpoilerIndices;
|
|
if (set != null) {
|
|
i = set.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("HasDescription(description=");
|
|
L.append(this.description);
|
|
L.append(", ast=");
|
|
L.append(this.ast);
|
|
L.append(", shownSpoilerIndices=");
|
|
L.append(this.shownSpoilerIndices);
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|
|
|
|
/* compiled from: GuildScheduledEventItemView.kt */
|
|
public static final class NoDescription extends DescriptionCache {
|
|
public static final NoDescription INSTANCE = new NoDescription();
|
|
|
|
private NoDescription() {
|
|
super(null, null, null);
|
|
}
|
|
}
|
|
|
|
private DescriptionCache(String str, List<Node<MessageRenderContext>> list) {
|
|
this.maybeDescription = str;
|
|
this.maybeAst = list;
|
|
}
|
|
|
|
public /* synthetic */ DescriptionCache(String str, List list, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(str, list);
|
|
}
|
|
|
|
public final List<Node<MessageRenderContext>> getMaybeAst() {
|
|
return this.maybeAst;
|
|
}
|
|
|
|
public final String getMaybeDescription() {
|
|
return this.maybeDescription;
|
|
}
|
|
}
|