65 lines
1.9 KiB
Java
65 lines
1.9 KiB
Java
package com.discord.api.message.reaction;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
/* compiled from: MessageReaction.kt */
|
|
public final class MessageReaction {
|
|
private final int count;
|
|
private final MessageReactionEmoji emoji;
|
|
|
|
/* renamed from: me reason: collision with root package name */
|
|
private final boolean f1566me;
|
|
|
|
public MessageReaction(int i, MessageReactionEmoji messageReactionEmoji, boolean z2) {
|
|
m.checkNotNullParameter(messageReactionEmoji, "emoji");
|
|
this.count = i;
|
|
this.emoji = messageReactionEmoji;
|
|
this.f1566me = z2;
|
|
}
|
|
|
|
public final int a() {
|
|
return this.count;
|
|
}
|
|
|
|
public final MessageReactionEmoji b() {
|
|
return this.emoji;
|
|
}
|
|
|
|
public final boolean c() {
|
|
return this.f1566me;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof MessageReaction)) {
|
|
return false;
|
|
}
|
|
MessageReaction messageReaction = (MessageReaction) obj;
|
|
return this.count == messageReaction.count && m.areEqual(this.emoji, messageReaction.emoji) && this.f1566me == messageReaction.f1566me;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int i = this.count * 31;
|
|
MessageReactionEmoji messageReactionEmoji = this.emoji;
|
|
int hashCode = (i + (messageReactionEmoji != null ? messageReactionEmoji.hashCode() : 0)) * 31;
|
|
boolean z2 = this.f1566me;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i2 = z2 ? 1 : 0;
|
|
int i3 = z2 ? 1 : 0;
|
|
int i4 = z2 ? 1 : 0;
|
|
return hashCode + i2;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("MessageReaction(count=");
|
|
L.append(this.count);
|
|
L.append(", emoji=");
|
|
L.append(this.emoji);
|
|
L.append(", me=");
|
|
return a.G(L, this.f1566me, ")");
|
|
}
|
|
}
|