62 lines
1.7 KiB
Java
62 lines
1.7 KiB
Java
package com.discord.api.message;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
/* compiled from: MessageReference.kt */
|
|
public final class MessageReference {
|
|
private final Long channelId;
|
|
private final Long guildId;
|
|
private final Long messageId;
|
|
|
|
public MessageReference(Long l, Long l2, Long l3) {
|
|
this.guildId = l;
|
|
this.channelId = l2;
|
|
this.messageId = l3;
|
|
}
|
|
|
|
public final Long a() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final Long b() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final Long c() {
|
|
return this.messageId;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof MessageReference)) {
|
|
return false;
|
|
}
|
|
MessageReference messageReference = (MessageReference) obj;
|
|
return m.areEqual(this.guildId, messageReference.guildId) && m.areEqual(this.channelId, messageReference.channelId) && m.areEqual(this.messageId, messageReference.messageId);
|
|
}
|
|
|
|
public int hashCode() {
|
|
Long l = this.guildId;
|
|
int i = 0;
|
|
int hashCode = (l != null ? l.hashCode() : 0) * 31;
|
|
Long l2 = this.channelId;
|
|
int hashCode2 = (hashCode + (l2 != null ? l2.hashCode() : 0)) * 31;
|
|
Long l3 = this.messageId;
|
|
if (l3 != null) {
|
|
i = l3.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("MessageReference(guildId=");
|
|
L.append(this.guildId);
|
|
L.append(", channelId=");
|
|
L.append(this.channelId);
|
|
L.append(", messageId=");
|
|
return a.C(L, this.messageId, ")");
|
|
}
|
|
}
|