discord-jadx/app/src/main/java/com/discord/api/directory/DirectoryEntryEvent.java

68 lines
2.7 KiB
Java

package com.discord.api.directory;
import c.d.b.a.a;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.api.utcdatetime.UtcDateTime;
import d0.z.d.m;
/* compiled from: DirectoryEntryGuild.kt */
public final class DirectoryEntryEvent {
private final long authorId;
private final UtcDateTime createdAt;
private final String description;
private final long directoryChannelId;
private final long entityId;
private final GuildScheduledEvent guildScheduledEvent;
private final int primaryCategoryId;
public final GuildScheduledEvent a() {
return this.guildScheduledEvent;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof DirectoryEntryEvent)) {
return false;
}
DirectoryEntryEvent directoryEntryEvent = (DirectoryEntryEvent) obj;
return this.directoryChannelId == directoryEntryEvent.directoryChannelId && this.entityId == directoryEntryEvent.entityId && this.authorId == directoryEntryEvent.authorId && m.areEqual(this.description, directoryEntryEvent.description) && this.primaryCategoryId == directoryEntryEvent.primaryCategoryId && m.areEqual(this.createdAt, directoryEntryEvent.createdAt) && m.areEqual(this.guildScheduledEvent, directoryEntryEvent.guildScheduledEvent);
}
public int hashCode() {
long j = this.directoryChannelId;
long j2 = this.entityId;
long j3 = this.authorId;
int i = ((((((int) (j ^ (j >>> 32))) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31) + ((int) (j3 ^ (j3 >>> 32)))) * 31;
String str = this.description;
int i2 = 0;
int hashCode = (((i + (str != null ? str.hashCode() : 0)) * 31) + this.primaryCategoryId) * 31;
UtcDateTime utcDateTime = this.createdAt;
int hashCode2 = (hashCode + (utcDateTime != null ? utcDateTime.hashCode() : 0)) * 31;
GuildScheduledEvent guildScheduledEvent = this.guildScheduledEvent;
if (guildScheduledEvent != null) {
i2 = guildScheduledEvent.hashCode();
}
return hashCode2 + i2;
}
public String toString() {
StringBuilder R = a.R("DirectoryEntryEvent(directoryChannelId=");
R.append(this.directoryChannelId);
R.append(", entityId=");
R.append(this.entityId);
R.append(", authorId=");
R.append(this.authorId);
R.append(", description=");
R.append(this.description);
R.append(", primaryCategoryId=");
R.append(this.primaryCategoryId);
R.append(", createdAt=");
R.append(this.createdAt);
R.append(", guildScheduledEvent=");
R.append(this.guildScheduledEvent);
R.append(")");
return R.toString();
}
}