discord-jadx/app/src/main/java/com/discord/widgets/guilds/invite/InviteSuggestion.java

126 lines
3.7 KiB
Java

package com.discord.widgets.guilds.invite;
import c.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 L = a.L("ChannelItem(channel=");
L.append(this.channel);
L.append(")");
return L.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 L = a.L("UserSuggestion(user=");
L.append(this.user);
L.append(")");
return L.toString();
}
}
private InviteSuggestion() {
}
public /* synthetic */ InviteSuggestion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}