2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
import b.d.b.a.a;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.api.channel.Channel;
|
|
|
|
import com.discord.models.user.User;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
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() {
|
2021-11-05 06:48:17 +00:00
|
|
|
StringBuilder R = a.R("ChannelItem(channel=");
|
|
|
|
R.append(this.channel);
|
|
|
|
R.append(")");
|
|
|
|
return R.toString();
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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() {
|
2021-11-05 06:48:17 +00:00
|
|
|
StringBuilder R = a.R("UserSuggestion(user=");
|
|
|
|
R.append(this.user);
|
|
|
|
R.append(")");
|
|
|
|
return R.toString();
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private InviteSuggestion() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public /* synthetic */ InviteSuggestion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
this();
|
|
|
|
}
|
|
|
|
}
|