discord-jadx/app/src/main/java/com/discord/models/guild/Guild.java

693 lines
29 KiB
Java

package com.discord.models.guild;
import a0.a.a.b;
import androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure;
import c.d.b.a.a;
import com.discord.api.emoji.GuildEmoji;
import com.discord.api.guild.GuildExplicitContentFilter;
import com.discord.api.guild.GuildFeature;
import com.discord.api.guild.GuildMaxVideoChannelUsers;
import com.discord.api.guild.GuildVerificationLevel;
import com.discord.api.guild.welcome.GuildWelcomeScreen;
import com.discord.api.role.GuildRole;
import com.discord.api.sticker.Sticker;
import com.discord.models.domain.ModelAuditLogEntry;
import com.discord.models.domain.ModelNotificationSettings;
import com.discord.utilities.guilds.GuildUtilsKt;
import d0.t.n;
import d0.t.n0;
import d0.t.u;
import d0.z.d.m;
import java.util.List;
import java.util.Set;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: Guild.kt */
public final class Guild {
private final Long afkChannelId;
private final int afkTimeout;
private final int approximatePresenceCount;
private final String banner;
private final int defaultMessageNotifications;
private final String description;
private final List<GuildEmoji> emojis;
private final GuildExplicitContentFilter explicitContentFilter;
private final Set<GuildFeature> features;
private final String icon;
/* renamed from: id reason: collision with root package name */
private final long f2136id;
private final String joinedAt;
private final GuildMaxVideoChannelUsers maxVideoChannelUsers;
private final int memberCount;
private final int mfaLevel;
private final String name;
private final boolean nsfw;
private final long ownerId;
private final String preferredLocale;
private final int premiumSubscriptionCount;
private final int premiumTier;
private final Long publicUpdatesChannelId;
private final String region;
private final List<GuildRole> roles;
private final Long rulesChannelId;
private final String shortName;
private final String splash;
private final List<Sticker> stickers;
private final int systemChannelFlags;
private final Long systemChannelId;
private final boolean unavailable;
private final String vanityUrlCode;
private final GuildVerificationLevel verificationLevel;
private final GuildWelcomeScreen welcomeScreen;
public Guild() {
this(null, null, null, null, null, 0, 0, null, 0, null, null, null, false, 0, 0, null, null, null, 0, null, null, 0, 0, 0, null, null, null, null, null, null, null, 0, false, -1, 1, null);
}
/* JADX WARNING: Illegal instructions before constructor call */
public Guild(com.discord.api.guild.Guild guild) {
this(r0, r0, null, r6, r7, r0, r9, r11, r12, r14, r0, r0, r17, r18, r19, r20, r21, r22, r23, r24, r25, r26, r27, r28, r29, r30, r31, r32, r33, r0 == null ? GuildMaxVideoChannelUsers.Unlimited.INSTANCE : r0, guild.N(), guild.d(), guild.w(), 4, 0, null);
m.checkNotNullParameter(guild, "apiGuild");
List<GuildRole> E = guild.E();
E = E == null ? n.emptyList() : E;
List<GuildEmoji> j = guild.j();
j = j == null ? n.emptyList() : j;
String v = guild.v();
String i = guild.i();
Integer h = guild.h();
int intValue = h != null ? h.intValue() : ModelNotificationSettings.FREQUENCY_ALL;
long p = guild.p();
String D = guild.D();
long x2 = guild.x();
String o = guild.o();
GuildVerificationLevel O = guild.O();
O = O == null ? GuildVerificationLevel.NONE : O;
GuildExplicitContentFilter k = guild.k();
k = k == null ? GuildExplicitContentFilter.NONE : k;
boolean M = guild.M();
int u = guild.u();
int c2 = guild.c();
Long b = guild.b();
Long K = guild.K();
Set set = u.toSet(guild.l());
int s2 = guild.s();
String e = guild.e();
String G = guild.G();
int A = guild.A();
int z2 = guild.z();
int J = guild.J();
String q = guild.q();
Long F = guild.F();
Long C = guild.C();
String y2 = guild.y();
GuildWelcomeScreen Q = guild.Q();
GuildMaxVideoChannelUsers r = guild.r();
}
/* JADX DEBUG: Multi-variable search result rejected for r30v0, resolved type: java.util.Set<? extends com.discord.api.guild.GuildFeature> */
/* JADX WARN: Multi-variable type inference failed */
public Guild(List<GuildRole> list, List<GuildEmoji> list2, List<Sticker> list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set<? extends GuildFeature> set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3) {
m.checkNotNullParameter(list, "roles");
m.checkNotNullParameter(list2, "emojis");
m.checkNotNullParameter(list3, "stickers");
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME);
m.checkNotNullParameter(guildVerificationLevel, "verificationLevel");
m.checkNotNullParameter(guildExplicitContentFilter, "explicitContentFilter");
m.checkNotNullParameter(set, "features");
m.checkNotNullParameter(guildMaxVideoChannelUsers, "maxVideoChannelUsers");
this.roles = list;
this.emojis = list2;
this.stickers = list3;
this.name = str;
this.description = str2;
this.defaultMessageNotifications = i;
this.f2136id = j;
this.region = str3;
this.ownerId = j2;
this.icon = str4;
this.verificationLevel = guildVerificationLevel;
this.explicitContentFilter = guildExplicitContentFilter;
this.unavailable = z2;
this.mfaLevel = i2;
this.afkTimeout = i3;
this.afkChannelId = l;
this.systemChannelId = l2;
this.features = set;
this.memberCount = i4;
this.banner = str5;
this.splash = str6;
this.premiumTier = i5;
this.premiumSubscriptionCount = i6;
this.systemChannelFlags = i7;
this.joinedAt = str7;
this.rulesChannelId = l3;
this.publicUpdatesChannelId = l4;
this.preferredLocale = str8;
this.welcomeScreen = guildWelcomeScreen;
this.maxVideoChannelUsers = guildMaxVideoChannelUsers;
this.vanityUrlCode = str9;
this.approximatePresenceCount = i8;
this.nsfw = z3;
this.shortName = GuildUtilsKt.computeShortName(str);
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ Guild(List list, List list2, List list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3, int i9, int i10, DefaultConstructorMarker defaultConstructorMarker) {
this((i9 & 1) != 0 ? n.emptyList() : list, (i9 & 2) != 0 ? n.emptyList() : list2, (i9 & 4) != 0 ? n.emptyList() : list3, (i9 & 8) != 0 ? "" : str, (i9 & 16) != 0 ? null : str2, (i9 & 32) != 0 ? ModelNotificationSettings.FREQUENCY_ALL : i, (i9 & 64) != 0 ? 0 : j, (i9 & 128) != 0 ? null : str3, (i9 & 256) == 0 ? j2 : 0, (i9 & 512) != 0 ? null : str4, (i9 & 1024) != 0 ? GuildVerificationLevel.NONE : guildVerificationLevel, (i9 & 2048) != 0 ? GuildExplicitContentFilter.NONE : guildExplicitContentFilter, (i9 & 4096) != 0 ? false : z2, (i9 & 8192) != 0 ? 0 : i2, (i9 & 16384) != 0 ? 0 : i3, (i9 & 32768) != 0 ? null : l, (i9 & 65536) != 0 ? null : l2, (i9 & 131072) != 0 ? n0.emptySet() : set, (i9 & 262144) != 0 ? 0 : i4, (i9 & 524288) != 0 ? null : str5, (i9 & 1048576) != 0 ? null : str6, (i9 & 2097152) != 0 ? 0 : i5, (i9 & 4194304) != 0 ? 0 : i6, (i9 & 8388608) != 0 ? 0 : i7, (i9 & 16777216) != 0 ? null : str7, (i9 & 33554432) != 0 ? null : l3, (i9 & 67108864) != 0 ? null : l4, (i9 & 134217728) != 0 ? null : str8, (i9 & 268435456) != 0 ? null : guildWelcomeScreen, (i9 & 536870912) != 0 ? GuildMaxVideoChannelUsers.Unlimited.INSTANCE : guildMaxVideoChannelUsers, (i9 & BasicMeasure.EXACTLY) != 0 ? null : str9, (i9 & Integer.MIN_VALUE) != 0 ? 0 : i8, (i10 & 1) == 0 ? z3 : false);
}
public static /* synthetic */ Guild copy$default(Guild guild, List list, List list2, List list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3, int i9, int i10, Object obj) {
return guild.copy((i9 & 1) != 0 ? guild.roles : list, (i9 & 2) != 0 ? guild.emojis : list2, (i9 & 4) != 0 ? guild.stickers : list3, (i9 & 8) != 0 ? guild.name : str, (i9 & 16) != 0 ? guild.description : str2, (i9 & 32) != 0 ? guild.defaultMessageNotifications : i, (i9 & 64) != 0 ? guild.f2136id : j, (i9 & 128) != 0 ? guild.region : str3, (i9 & 256) != 0 ? guild.ownerId : j2, (i9 & 512) != 0 ? guild.icon : str4, (i9 & 1024) != 0 ? guild.verificationLevel : guildVerificationLevel, (i9 & 2048) != 0 ? guild.explicitContentFilter : guildExplicitContentFilter, (i9 & 4096) != 0 ? guild.unavailable : z2, (i9 & 8192) != 0 ? guild.mfaLevel : i2, (i9 & 16384) != 0 ? guild.afkTimeout : i3, (i9 & 32768) != 0 ? guild.afkChannelId : l, (i9 & 65536) != 0 ? guild.systemChannelId : l2, (i9 & 131072) != 0 ? guild.features : set, (i9 & 262144) != 0 ? guild.memberCount : i4, (i9 & 524288) != 0 ? guild.banner : str5, (i9 & 1048576) != 0 ? guild.splash : str6, (i9 & 2097152) != 0 ? guild.premiumTier : i5, (i9 & 4194304) != 0 ? guild.premiumSubscriptionCount : i6, (i9 & 8388608) != 0 ? guild.systemChannelFlags : i7, (i9 & 16777216) != 0 ? guild.joinedAt : str7, (i9 & 33554432) != 0 ? guild.rulesChannelId : l3, (i9 & 67108864) != 0 ? guild.publicUpdatesChannelId : l4, (i9 & 134217728) != 0 ? guild.preferredLocale : str8, (i9 & 268435456) != 0 ? guild.welcomeScreen : guildWelcomeScreen, (i9 & 536870912) != 0 ? guild.maxVideoChannelUsers : guildMaxVideoChannelUsers, (i9 & BasicMeasure.EXACTLY) != 0 ? guild.vanityUrlCode : str9, (i9 & Integer.MIN_VALUE) != 0 ? guild.approximatePresenceCount : i8, (i10 & 1) != 0 ? guild.nsfw : z3);
}
public final boolean canHaveBanner() {
return hasFeature(GuildFeature.BANNER) || hasFeature(GuildFeature.VERIFIED) || this.premiumTier >= 2;
}
public final boolean canHaveSplash() {
return hasFeature(GuildFeature.INVITE_SPLASH) || hasFeature(GuildFeature.VERIFIED) || this.premiumTier >= 1;
}
public final boolean canHaveVanityURL() {
return this.features.contains(GuildFeature.VANITY_URL) || this.premiumTier >= 3;
}
public final List<GuildRole> component1() {
return this.roles;
}
public final String component10() {
return this.icon;
}
public final GuildVerificationLevel component11() {
return this.verificationLevel;
}
public final GuildExplicitContentFilter component12() {
return this.explicitContentFilter;
}
public final boolean component13() {
return this.unavailable;
}
public final int component14() {
return this.mfaLevel;
}
public final int component15() {
return this.afkTimeout;
}
public final Long component16() {
return this.afkChannelId;
}
public final Long component17() {
return this.systemChannelId;
}
public final Set<GuildFeature> component18() {
return this.features;
}
public final int component19() {
return this.memberCount;
}
public final List<GuildEmoji> component2() {
return this.emojis;
}
public final String component20() {
return this.banner;
}
public final String component21() {
return this.splash;
}
public final int component22() {
return this.premiumTier;
}
public final int component23() {
return this.premiumSubscriptionCount;
}
public final int component24() {
return this.systemChannelFlags;
}
public final String component25() {
return this.joinedAt;
}
public final Long component26() {
return this.rulesChannelId;
}
public final Long component27() {
return this.publicUpdatesChannelId;
}
public final String component28() {
return this.preferredLocale;
}
public final GuildWelcomeScreen component29() {
return this.welcomeScreen;
}
public final List<Sticker> component3() {
return this.stickers;
}
public final GuildMaxVideoChannelUsers component30() {
return this.maxVideoChannelUsers;
}
public final String component31() {
return this.vanityUrlCode;
}
public final int component32() {
return this.approximatePresenceCount;
}
public final boolean component33() {
return this.nsfw;
}
public final String component4() {
return this.name;
}
public final String component5() {
return this.description;
}
public final int component6() {
return this.defaultMessageNotifications;
}
public final long component7() {
return this.f2136id;
}
public final String component8() {
return this.region;
}
public final long component9() {
return this.ownerId;
}
public final Guild copy(List<GuildRole> list, List<GuildEmoji> list2, List<Sticker> list3, String str, String str2, int i, long j, String str3, long j2, String str4, GuildVerificationLevel guildVerificationLevel, GuildExplicitContentFilter guildExplicitContentFilter, boolean z2, int i2, int i3, Long l, Long l2, Set<? extends GuildFeature> set, int i4, String str5, String str6, int i5, int i6, int i7, String str7, Long l3, Long l4, String str8, GuildWelcomeScreen guildWelcomeScreen, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, String str9, int i8, boolean z3) {
m.checkNotNullParameter(list, "roles");
m.checkNotNullParameter(list2, "emojis");
m.checkNotNullParameter(list3, "stickers");
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME);
m.checkNotNullParameter(guildVerificationLevel, "verificationLevel");
m.checkNotNullParameter(guildExplicitContentFilter, "explicitContentFilter");
m.checkNotNullParameter(set, "features");
m.checkNotNullParameter(guildMaxVideoChannelUsers, "maxVideoChannelUsers");
return new Guild(list, list2, list3, str, str2, i, j, str3, j2, str4, guildVerificationLevel, guildExplicitContentFilter, z2, i2, i3, l, l2, set, i4, str5, str6, i5, i6, i7, str7, l3, l4, str8, guildWelcomeScreen, guildMaxVideoChannelUsers, str9, i8, z3);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Guild)) {
return false;
}
Guild guild = (Guild) obj;
return m.areEqual(this.roles, guild.roles) && m.areEqual(this.emojis, guild.emojis) && m.areEqual(this.stickers, guild.stickers) && m.areEqual(this.name, guild.name) && m.areEqual(this.description, guild.description) && this.defaultMessageNotifications == guild.defaultMessageNotifications && this.f2136id == guild.f2136id && m.areEqual(this.region, guild.region) && this.ownerId == guild.ownerId && m.areEqual(this.icon, guild.icon) && m.areEqual(this.verificationLevel, guild.verificationLevel) && m.areEqual(this.explicitContentFilter, guild.explicitContentFilter) && this.unavailable == guild.unavailable && this.mfaLevel == guild.mfaLevel && this.afkTimeout == guild.afkTimeout && m.areEqual(this.afkChannelId, guild.afkChannelId) && m.areEqual(this.systemChannelId, guild.systemChannelId) && m.areEqual(this.features, guild.features) && this.memberCount == guild.memberCount && m.areEqual(this.banner, guild.banner) && m.areEqual(this.splash, guild.splash) && this.premiumTier == guild.premiumTier && this.premiumSubscriptionCount == guild.premiumSubscriptionCount && this.systemChannelFlags == guild.systemChannelFlags && m.areEqual(this.joinedAt, guild.joinedAt) && m.areEqual(this.rulesChannelId, guild.rulesChannelId) && m.areEqual(this.publicUpdatesChannelId, guild.publicUpdatesChannelId) && m.areEqual(this.preferredLocale, guild.preferredLocale) && m.areEqual(this.welcomeScreen, guild.welcomeScreen) && m.areEqual(this.maxVideoChannelUsers, guild.maxVideoChannelUsers) && m.areEqual(this.vanityUrlCode, guild.vanityUrlCode) && this.approximatePresenceCount == guild.approximatePresenceCount && this.nsfw == guild.nsfw;
}
public final Long getAfkChannelId() {
return this.afkChannelId;
}
public final int getAfkTimeout() {
return this.afkTimeout;
}
public final int getApproximatePresenceCount() {
return this.approximatePresenceCount;
}
public final String getBanner() {
return this.banner;
}
public final int getDefaultMessageNotifications() {
return this.defaultMessageNotifications;
}
public final String getDescription() {
return this.description;
}
public final List<GuildEmoji> getEmojis() {
return this.emojis;
}
public final GuildExplicitContentFilter getExplicitContentFilter() {
return this.explicitContentFilter;
}
public final Set<GuildFeature> getFeatures() {
return this.features;
}
public final String getIcon() {
return this.icon;
}
public final long getId() {
return this.f2136id;
}
public final String getJoinedAt() {
return this.joinedAt;
}
public final GuildMaxVideoChannelUsers getMaxVideoChannelUsers() {
return this.maxVideoChannelUsers;
}
public final int getMemberCount() {
return this.memberCount;
}
public final int getMfaLevel() {
return this.mfaLevel;
}
public final String getName() {
return this.name;
}
public final boolean getNsfw() {
return this.nsfw;
}
public final long getOwnerId() {
return this.ownerId;
}
public final String getPreferredLocale() {
return this.preferredLocale;
}
public final int getPremiumSubscriptionCount() {
return this.premiumSubscriptionCount;
}
public final int getPremiumTier() {
return this.premiumTier;
}
public final Long getPublicUpdatesChannelId() {
return this.publicUpdatesChannelId;
}
public final String getRegion() {
return this.region;
}
public final List<GuildRole> getRoles() {
return this.roles;
}
public final Long getRulesChannelId() {
return this.rulesChannelId;
}
public final String getShortName() {
return this.shortName;
}
public final String getSplash() {
return this.splash;
}
public final List<Sticker> getStickers() {
return this.stickers;
}
public final int getSystemChannelFlags() {
return this.systemChannelFlags;
}
public final Long getSystemChannelId() {
return this.systemChannelId;
}
public final boolean getUnavailable() {
return this.unavailable;
}
public final String getVanityUrlCode() {
return this.vanityUrlCode;
}
public final GuildVerificationLevel getVerificationLevel() {
return this.verificationLevel;
}
public final GuildWelcomeScreen getWelcomeScreen() {
return this.welcomeScreen;
}
public final boolean hasFeature(GuildFeature guildFeature) {
m.checkNotNullParameter(guildFeature, "feature");
return this.features.contains(guildFeature);
}
public final boolean hasIcon() {
String str = this.icon;
return !(str == null || str.length() == 0);
}
public int hashCode() {
List<GuildRole> list = this.roles;
int i = 0;
int hashCode = (list != null ? list.hashCode() : 0) * 31;
List<GuildEmoji> list2 = this.emojis;
int hashCode2 = (hashCode + (list2 != null ? list2.hashCode() : 0)) * 31;
List<Sticker> list3 = this.stickers;
int hashCode3 = (hashCode2 + (list3 != null ? list3.hashCode() : 0)) * 31;
String str = this.name;
int hashCode4 = (hashCode3 + (str != null ? str.hashCode() : 0)) * 31;
String str2 = this.description;
int a = (b.a(this.f2136id) + ((((hashCode4 + (str2 != null ? str2.hashCode() : 0)) * 31) + this.defaultMessageNotifications) * 31)) * 31;
String str3 = this.region;
int a2 = (b.a(this.ownerId) + ((a + (str3 != null ? str3.hashCode() : 0)) * 31)) * 31;
String str4 = this.icon;
int hashCode5 = (a2 + (str4 != null ? str4.hashCode() : 0)) * 31;
GuildVerificationLevel guildVerificationLevel = this.verificationLevel;
int hashCode6 = (hashCode5 + (guildVerificationLevel != null ? guildVerificationLevel.hashCode() : 0)) * 31;
GuildExplicitContentFilter guildExplicitContentFilter = this.explicitContentFilter;
int hashCode7 = (hashCode6 + (guildExplicitContentFilter != null ? guildExplicitContentFilter.hashCode() : 0)) * 31;
boolean z2 = this.unavailable;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (((((hashCode7 + i3) * 31) + this.mfaLevel) * 31) + this.afkTimeout) * 31;
Long l = this.afkChannelId;
int hashCode8 = (i6 + (l != null ? l.hashCode() : 0)) * 31;
Long l2 = this.systemChannelId;
int hashCode9 = (hashCode8 + (l2 != null ? l2.hashCode() : 0)) * 31;
Set<GuildFeature> set = this.features;
int hashCode10 = (((hashCode9 + (set != null ? set.hashCode() : 0)) * 31) + this.memberCount) * 31;
String str5 = this.banner;
int hashCode11 = (hashCode10 + (str5 != null ? str5.hashCode() : 0)) * 31;
String str6 = this.splash;
int hashCode12 = (((((((hashCode11 + (str6 != null ? str6.hashCode() : 0)) * 31) + this.premiumTier) * 31) + this.premiumSubscriptionCount) * 31) + this.systemChannelFlags) * 31;
String str7 = this.joinedAt;
int hashCode13 = (hashCode12 + (str7 != null ? str7.hashCode() : 0)) * 31;
Long l3 = this.rulesChannelId;
int hashCode14 = (hashCode13 + (l3 != null ? l3.hashCode() : 0)) * 31;
Long l4 = this.publicUpdatesChannelId;
int hashCode15 = (hashCode14 + (l4 != null ? l4.hashCode() : 0)) * 31;
String str8 = this.preferredLocale;
int hashCode16 = (hashCode15 + (str8 != null ? str8.hashCode() : 0)) * 31;
GuildWelcomeScreen guildWelcomeScreen = this.welcomeScreen;
int hashCode17 = (hashCode16 + (guildWelcomeScreen != null ? guildWelcomeScreen.hashCode() : 0)) * 31;
GuildMaxVideoChannelUsers guildMaxVideoChannelUsers = this.maxVideoChannelUsers;
int hashCode18 = (hashCode17 + (guildMaxVideoChannelUsers != null ? guildMaxVideoChannelUsers.hashCode() : 0)) * 31;
String str9 = this.vanityUrlCode;
if (str9 != null) {
i = str9.hashCode();
}
int i7 = (((hashCode18 + i) * 31) + this.approximatePresenceCount) * 31;
boolean z3 = this.nsfw;
if (!z3) {
i2 = z3 ? 1 : 0;
}
return i7 + i2;
}
public final boolean isHub() {
return hasFeature(GuildFeature.HUB);
}
public final boolean isOwner(long j) {
return this.ownerId == j;
}
public final Guild merge(com.discord.api.guild.Guild guild) {
m.checkNotNullParameter(guild, "apiGuild");
List emptyList = n.emptyList();
List<GuildEmoji> j = guild.j();
if (j == null) {
j = n.emptyList();
}
String v = guild.v();
String i = guild.i();
if (i == null) {
i = this.description;
}
Integer h = guild.h();
int intValue = h != null ? h.intValue() : this.defaultMessageNotifications;
long p = guild.p() != 0 ? guild.p() : this.f2136id;
String D = guild.D();
if (D == null) {
D = this.region;
}
long x2 = guild.x() != 0 ? guild.x() : this.ownerId;
String o = guild.o();
if (o == null) {
o = this.icon;
}
GuildVerificationLevel O = guild.O();
if (O == null) {
O = this.verificationLevel;
}
GuildExplicitContentFilter k = guild.k();
if (k == null) {
k = this.explicitContentFilter;
}
boolean M = guild.M();
int u = guild.u();
int c2 = guild.c() != 0 ? guild.c() : this.afkTimeout;
Long b = guild.b();
Long K = guild.K();
Set set = u.toSet(guild.l());
String e = guild.e();
String G = guild.G();
if (G == null) {
G = this.splash;
}
int A = guild.A();
int z2 = guild.z();
int J = guild.J();
String q = guild.q();
if (q == null) {
q = this.joinedAt;
}
Long F = guild.F();
if (F == null) {
F = this.rulesChannelId;
}
Long C = guild.C();
if (C == null) {
C = this.publicUpdatesChannelId;
}
String y2 = guild.y();
if (y2 == null) {
y2 = this.preferredLocale;
}
GuildWelcomeScreen Q = guild.Q();
if (Q == null) {
Q = this.welcomeScreen;
}
GuildMaxVideoChannelUsers r = guild.r();
if (r == null) {
r = this.maxVideoChannelUsers;
}
String N = guild.N();
if (N == null) {
N = this.vanityUrlCode;
}
return new Guild(emptyList, j, null, v, i, intValue, p, D, x2, o, O, k, M, u, c2, b, K, set, 0, e, G, A, z2, J, q, F, C, y2, Q, r, N, guild.d() != 0 ? guild.d() : this.approximatePresenceCount, guild.w(), 4, 0, null);
}
public String toString() {
StringBuilder P = a.P("Guild(roles=");
P.append(this.roles);
P.append(", emojis=");
P.append(this.emojis);
P.append(", stickers=");
P.append(this.stickers);
P.append(", name=");
P.append(this.name);
P.append(", description=");
P.append(this.description);
P.append(", defaultMessageNotifications=");
P.append(this.defaultMessageNotifications);
P.append(", id=");
P.append(this.f2136id);
P.append(", region=");
P.append(this.region);
P.append(", ownerId=");
P.append(this.ownerId);
P.append(", icon=");
P.append(this.icon);
P.append(", verificationLevel=");
P.append(this.verificationLevel);
P.append(", explicitContentFilter=");
P.append(this.explicitContentFilter);
P.append(", unavailable=");
P.append(this.unavailable);
P.append(", mfaLevel=");
P.append(this.mfaLevel);
P.append(", afkTimeout=");
P.append(this.afkTimeout);
P.append(", afkChannelId=");
P.append(this.afkChannelId);
P.append(", systemChannelId=");
P.append(this.systemChannelId);
P.append(", features=");
P.append(this.features);
P.append(", memberCount=");
P.append(this.memberCount);
P.append(", banner=");
P.append(this.banner);
P.append(", splash=");
P.append(this.splash);
P.append(", premiumTier=");
P.append(this.premiumTier);
P.append(", premiumSubscriptionCount=");
P.append(this.premiumSubscriptionCount);
P.append(", systemChannelFlags=");
P.append(this.systemChannelFlags);
P.append(", joinedAt=");
P.append(this.joinedAt);
P.append(", rulesChannelId=");
P.append(this.rulesChannelId);
P.append(", publicUpdatesChannelId=");
P.append(this.publicUpdatesChannelId);
P.append(", preferredLocale=");
P.append(this.preferredLocale);
P.append(", welcomeScreen=");
P.append(this.welcomeScreen);
P.append(", maxVideoChannelUsers=");
P.append(this.maxVideoChannelUsers);
P.append(", vanityUrlCode=");
P.append(this.vanityUrlCode);
P.append(", approximatePresenceCount=");
P.append(this.approximatePresenceCount);
P.append(", nsfw=");
return a.L(P, this.nsfw, ")");
}
}