69 lines
2.1 KiB
Java
69 lines
2.1 KiB
Java
package com.discord.api.message.reaction;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
/* compiled from: MessageReactionUpdate.kt */
|
|
public final class MessageReactionUpdate {
|
|
private final long channelId;
|
|
private final MessageReactionEmoji emoji;
|
|
private final long messageId;
|
|
private final long userId;
|
|
|
|
public MessageReactionUpdate(long j, long j2, long j3, MessageReactionEmoji messageReactionEmoji) {
|
|
m.checkNotNullParameter(messageReactionEmoji, "emoji");
|
|
this.userId = j;
|
|
this.channelId = j2;
|
|
this.messageId = j3;
|
|
this.emoji = messageReactionEmoji;
|
|
}
|
|
|
|
public final long a() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final MessageReactionEmoji b() {
|
|
return this.emoji;
|
|
}
|
|
|
|
public final long c() {
|
|
return this.messageId;
|
|
}
|
|
|
|
public final long d() {
|
|
return this.userId;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof MessageReactionUpdate)) {
|
|
return false;
|
|
}
|
|
MessageReactionUpdate messageReactionUpdate = (MessageReactionUpdate) obj;
|
|
return this.userId == messageReactionUpdate.userId && this.channelId == messageReactionUpdate.channelId && this.messageId == messageReactionUpdate.messageId && m.areEqual(this.emoji, messageReactionUpdate.emoji);
|
|
}
|
|
|
|
public int hashCode() {
|
|
long j = this.userId;
|
|
long j2 = this.channelId;
|
|
long j3 = this.messageId;
|
|
int i = ((((((int) (j ^ (j >>> 32))) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31) + ((int) (j3 ^ (j3 >>> 32)))) * 31;
|
|
MessageReactionEmoji messageReactionEmoji = this.emoji;
|
|
return i + (messageReactionEmoji != null ? messageReactionEmoji.hashCode() : 0);
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("MessageReactionUpdate(userId=");
|
|
L.append(this.userId);
|
|
L.append(", channelId=");
|
|
L.append(this.channelId);
|
|
L.append(", messageId=");
|
|
L.append(this.messageId);
|
|
L.append(", emoji=");
|
|
L.append(this.emoji);
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|