discord-jadx/app/src/main/java/com/discord/widgets/guild_role_subscriptions/tier/model/GuildRoleSubscriptionTier.java

211 lines
8.9 KiB
Java

package com.discord.widgets.guild_role_subscriptions.tier.model;
import c.d.b.a.a;
import com.discord.widgets.guild_role_subscriptions.tier.model.Benefit;
import d0.t.n;
import d0.z.d.m;
import java.util.List;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: GuildRoleSubscriptionTier.kt */
public final class GuildRoleSubscriptionTier {
private final Long applicationId;
private final List<Benefit.ChannelBenefit> channelBenefits;
private final String description;
private final String image;
private final Long imageAssetId;
private final List<Benefit.IntangibleBenefit> intangibleBenefits;
private final Boolean isPublished;
private final String memberBadge;
private final Integer memberColor;
private final String name;
private final Integer priceTier;
public GuildRoleSubscriptionTier() {
this(null, null, null, null, null, null, null, null, null, null, null, 2047, null);
}
public GuildRoleSubscriptionTier(String str, Long l, Integer num, Integer num2, String str2, String str3, Long l2, String str4, Boolean bool, List<Benefit.ChannelBenefit> list, List<Benefit.IntangibleBenefit> list2) {
m.checkNotNullParameter(list, "channelBenefits");
m.checkNotNullParameter(list2, "intangibleBenefits");
this.name = str;
this.applicationId = l;
this.priceTier = num;
this.memberColor = num2;
this.memberBadge = str2;
this.image = str3;
this.imageAssetId = l2;
this.description = str4;
this.isPublished = bool;
this.channelBenefits = list;
this.intangibleBenefits = list2;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ GuildRoleSubscriptionTier(String str, Long l, Integer num, Integer num2, String str2, String str3, Long l2, String str4, Boolean bool, List list, List list2, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? null : str, (i & 2) != 0 ? null : l, (i & 4) != 0 ? null : num, (i & 8) != 0 ? null : num2, (i & 16) != 0 ? null : str2, (i & 32) != 0 ? null : str3, (i & 64) != 0 ? null : l2, (i & 128) != 0 ? null : str4, (i & 256) == 0 ? bool : null, (i & 512) != 0 ? n.emptyList() : list, (i & 1024) != 0 ? n.emptyList() : list2);
}
public static /* synthetic */ GuildRoleSubscriptionTier copy$default(GuildRoleSubscriptionTier guildRoleSubscriptionTier, String str, Long l, Integer num, Integer num2, String str2, String str3, Long l2, String str4, Boolean bool, List list, List list2, int i, Object obj) {
return guildRoleSubscriptionTier.copy((i & 1) != 0 ? guildRoleSubscriptionTier.name : str, (i & 2) != 0 ? guildRoleSubscriptionTier.applicationId : l, (i & 4) != 0 ? guildRoleSubscriptionTier.priceTier : num, (i & 8) != 0 ? guildRoleSubscriptionTier.memberColor : num2, (i & 16) != 0 ? guildRoleSubscriptionTier.memberBadge : str2, (i & 32) != 0 ? guildRoleSubscriptionTier.image : str3, (i & 64) != 0 ? guildRoleSubscriptionTier.imageAssetId : l2, (i & 128) != 0 ? guildRoleSubscriptionTier.description : str4, (i & 256) != 0 ? guildRoleSubscriptionTier.isPublished : bool, (i & 512) != 0 ? guildRoleSubscriptionTier.channelBenefits : list, (i & 1024) != 0 ? guildRoleSubscriptionTier.intangibleBenefits : list2);
}
public final String component1() {
return this.name;
}
public final List<Benefit.ChannelBenefit> component10() {
return this.channelBenefits;
}
public final List<Benefit.IntangibleBenefit> component11() {
return this.intangibleBenefits;
}
public final Long component2() {
return this.applicationId;
}
public final Integer component3() {
return this.priceTier;
}
public final Integer component4() {
return this.memberColor;
}
public final String component5() {
return this.memberBadge;
}
public final String component6() {
return this.image;
}
public final Long component7() {
return this.imageAssetId;
}
public final String component8() {
return this.description;
}
public final Boolean component9() {
return this.isPublished;
}
public final GuildRoleSubscriptionTier copy(String str, Long l, Integer num, Integer num2, String str2, String str3, Long l2, String str4, Boolean bool, List<Benefit.ChannelBenefit> list, List<Benefit.IntangibleBenefit> list2) {
m.checkNotNullParameter(list, "channelBenefits");
m.checkNotNullParameter(list2, "intangibleBenefits");
return new GuildRoleSubscriptionTier(str, l, num, num2, str2, str3, l2, str4, bool, list, list2);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof GuildRoleSubscriptionTier)) {
return false;
}
GuildRoleSubscriptionTier guildRoleSubscriptionTier = (GuildRoleSubscriptionTier) obj;
return m.areEqual(this.name, guildRoleSubscriptionTier.name) && m.areEqual(this.applicationId, guildRoleSubscriptionTier.applicationId) && m.areEqual(this.priceTier, guildRoleSubscriptionTier.priceTier) && m.areEqual(this.memberColor, guildRoleSubscriptionTier.memberColor) && m.areEqual(this.memberBadge, guildRoleSubscriptionTier.memberBadge) && m.areEqual(this.image, guildRoleSubscriptionTier.image) && m.areEqual(this.imageAssetId, guildRoleSubscriptionTier.imageAssetId) && m.areEqual(this.description, guildRoleSubscriptionTier.description) && m.areEqual(this.isPublished, guildRoleSubscriptionTier.isPublished) && m.areEqual(this.channelBenefits, guildRoleSubscriptionTier.channelBenefits) && m.areEqual(this.intangibleBenefits, guildRoleSubscriptionTier.intangibleBenefits);
}
public final Long getApplicationId() {
return this.applicationId;
}
public final List<Benefit.ChannelBenefit> getChannelBenefits() {
return this.channelBenefits;
}
public final String getDescription() {
return this.description;
}
public final String getImage() {
return this.image;
}
public final Long getImageAssetId() {
return this.imageAssetId;
}
public final List<Benefit.IntangibleBenefit> getIntangibleBenefits() {
return this.intangibleBenefits;
}
public final String getMemberBadge() {
return this.memberBadge;
}
public final Integer getMemberColor() {
return this.memberColor;
}
public final String getName() {
return this.name;
}
public final Integer getPriceTier() {
return this.priceTier;
}
public int hashCode() {
String str = this.name;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
Long l = this.applicationId;
int hashCode2 = (hashCode + (l != null ? l.hashCode() : 0)) * 31;
Integer num = this.priceTier;
int hashCode3 = (hashCode2 + (num != null ? num.hashCode() : 0)) * 31;
Integer num2 = this.memberColor;
int hashCode4 = (hashCode3 + (num2 != null ? num2.hashCode() : 0)) * 31;
String str2 = this.memberBadge;
int hashCode5 = (hashCode4 + (str2 != null ? str2.hashCode() : 0)) * 31;
String str3 = this.image;
int hashCode6 = (hashCode5 + (str3 != null ? str3.hashCode() : 0)) * 31;
Long l2 = this.imageAssetId;
int hashCode7 = (hashCode6 + (l2 != null ? l2.hashCode() : 0)) * 31;
String str4 = this.description;
int hashCode8 = (hashCode7 + (str4 != null ? str4.hashCode() : 0)) * 31;
Boolean bool = this.isPublished;
int hashCode9 = (hashCode8 + (bool != null ? bool.hashCode() : 0)) * 31;
List<Benefit.ChannelBenefit> list = this.channelBenefits;
int hashCode10 = (hashCode9 + (list != null ? list.hashCode() : 0)) * 31;
List<Benefit.IntangibleBenefit> list2 = this.intangibleBenefits;
if (list2 != null) {
i = list2.hashCode();
}
return hashCode10 + i;
}
public final Boolean isPublished() {
return this.isPublished;
}
public String toString() {
StringBuilder P = a.P("GuildRoleSubscriptionTier(name=");
P.append(this.name);
P.append(", applicationId=");
P.append(this.applicationId);
P.append(", priceTier=");
P.append(this.priceTier);
P.append(", memberColor=");
P.append(this.memberColor);
P.append(", memberBadge=");
P.append(this.memberBadge);
P.append(", image=");
P.append(this.image);
P.append(", imageAssetId=");
P.append(this.imageAssetId);
P.append(", description=");
P.append(this.description);
P.append(", isPublished=");
P.append(this.isPublished);
P.append(", channelBenefits=");
P.append(this.channelBenefits);
P.append(", intangibleBenefits=");
return a.J(P, this.intangibleBenefits, ")");
}
}