package com.discord.widgets.guilds.invite; import b.d.b.a.a; import com.discord.api.channel.Channel; import com.discord.models.user.User; import d0.z.d.m; import kotlin.jvm.internal.DefaultConstructorMarker; /* compiled from: InviteSuggestion.kt */ public abstract class InviteSuggestion { /* compiled from: InviteSuggestion.kt */ public static final class ChannelItem extends InviteSuggestion { private final Channel channel; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public ChannelItem(Channel channel) { super(null); m.checkNotNullParameter(channel, "channel"); this.channel = channel; } public static /* synthetic */ ChannelItem copy$default(ChannelItem channelItem, Channel channel, int i, Object obj) { if ((i & 1) != 0) { channel = channelItem.channel; } return channelItem.copy(channel); } public final Channel component1() { return this.channel; } public final ChannelItem copy(Channel channel) { m.checkNotNullParameter(channel, "channel"); return new ChannelItem(channel); } public boolean equals(Object obj) { if (this != obj) { return (obj instanceof ChannelItem) && m.areEqual(this.channel, ((ChannelItem) obj).channel); } return true; } public final Channel getChannel() { return this.channel; } public int hashCode() { Channel channel = this.channel; if (channel != null) { return channel.hashCode(); } return 0; } public String toString() { StringBuilder R = a.R("ChannelItem(channel="); R.append(this.channel); R.append(")"); return R.toString(); } } /* compiled from: InviteSuggestion.kt */ public static final class UserSuggestion extends InviteSuggestion { private final User user; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public UserSuggestion(User user) { super(null); m.checkNotNullParameter(user, "user"); this.user = user; } public static /* synthetic */ UserSuggestion copy$default(UserSuggestion userSuggestion, User user, int i, Object obj) { if ((i & 1) != 0) { user = userSuggestion.user; } return userSuggestion.copy(user); } public final User component1() { return this.user; } public final UserSuggestion copy(User user) { m.checkNotNullParameter(user, "user"); return new UserSuggestion(user); } public boolean equals(Object obj) { if (this != obj) { return (obj instanceof UserSuggestion) && m.areEqual(this.user, ((UserSuggestion) obj).user); } return true; } public final User getUser() { return this.user; } public int hashCode() { User user = this.user; if (user != null) { return user.hashCode(); } return 0; } public String toString() { StringBuilder R = a.R("UserSuggestion(user="); R.append(this.user); R.append(")"); return R.toString(); } } private InviteSuggestion() { } public /* synthetic */ InviteSuggestion(DefaultConstructorMarker defaultConstructorMarker) { this(); } }