discord-jadx/app/src/main/java/com/discord/api/channel/ChannelRecipient.java
2021-06-27 22:44:35 +02:00

59 lines
1.5 KiB
Java

package com.discord.api.channel;
import c.d.b.a.a;
import com.discord.api.user.User;
import d0.z.d.m;
/* compiled from: ChannelRecipient.kt */
public final class ChannelRecipient {
private final long channelId;
private final String nick;
private final User user;
public final long a() {
return this.channelId;
}
public final String b() {
return this.nick;
}
public final User c() {
return this.user;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ChannelRecipient)) {
return false;
}
ChannelRecipient channelRecipient = (ChannelRecipient) obj;
return m.areEqual(this.nick, channelRecipient.nick) && this.channelId == channelRecipient.channelId && m.areEqual(this.user, channelRecipient.user);
}
public int hashCode() {
String str = this.nick;
int i = 0;
int hashCode = str != null ? str.hashCode() : 0;
long j = this.channelId;
int i2 = ((hashCode * 31) + ((int) (j ^ (j >>> 32)))) * 31;
User user = this.user;
if (user != null) {
i = user.hashCode();
}
return i2 + i;
}
public String toString() {
StringBuilder L = a.L("ChannelRecipient(nick=");
L.append(this.nick);
L.append(", channelId=");
L.append(this.channelId);
L.append(", user=");
L.append(this.user);
L.append(")");
return L.toString();
}
}