discord-jadx/app/src/main/java/com/discord/utilities/ChannelShortcutInfo.java

94 lines
2.7 KiB
Java

package com.discord.utilities;
import c.d.b.a.a;
import com.discord.api.channel.Channel;
import d0.z.d.m;
/* compiled from: ShareUtils.kt */
public final class ChannelShortcutInfo {
private final Channel channel;
private final boolean isPinnedOnly;
private final int rank;
public ChannelShortcutInfo(Channel channel, int i, boolean z2) {
m.checkNotNullParameter(channel, "channel");
this.channel = channel;
this.rank = i;
this.isPinnedOnly = z2;
}
public static /* synthetic */ ChannelShortcutInfo copy$default(ChannelShortcutInfo channelShortcutInfo, Channel channel, int i, boolean z2, int i2, Object obj) {
if ((i2 & 1) != 0) {
channel = channelShortcutInfo.channel;
}
if ((i2 & 2) != 0) {
i = channelShortcutInfo.rank;
}
if ((i2 & 4) != 0) {
z2 = channelShortcutInfo.isPinnedOnly;
}
return channelShortcutInfo.copy(channel, i, z2);
}
public final Channel component1() {
return this.channel;
}
public final int component2() {
return this.rank;
}
public final boolean component3() {
return this.isPinnedOnly;
}
public final ChannelShortcutInfo copy(Channel channel, int i, boolean z2) {
m.checkNotNullParameter(channel, "channel");
return new ChannelShortcutInfo(channel, i, z2);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ChannelShortcutInfo)) {
return false;
}
ChannelShortcutInfo channelShortcutInfo = (ChannelShortcutInfo) obj;
return m.areEqual(this.channel, channelShortcutInfo.channel) && this.rank == channelShortcutInfo.rank && this.isPinnedOnly == channelShortcutInfo.isPinnedOnly;
}
public final Channel getChannel() {
return this.channel;
}
public final int getRank() {
return this.rank;
}
public int hashCode() {
Channel channel = this.channel;
int hashCode = (((channel != null ? channel.hashCode() : 0) * 31) + this.rank) * 31;
boolean z2 = this.isPinnedOnly;
if (z2) {
z2 = true;
}
int i = z2 ? 1 : 0;
int i2 = z2 ? 1 : 0;
int i3 = z2 ? 1 : 0;
return hashCode + i;
}
public final boolean isPinnedOnly() {
return this.isPinnedOnly;
}
public String toString() {
StringBuilder K = a.K("ChannelShortcutInfo(channel=");
K.append(this.channel);
K.append(", rank=");
K.append(this.rank);
K.append(", isPinnedOnly=");
return a.F(K, this.isPinnedOnly, ")");
}
}