package com.discord.widgets.home; import c.d.b.a.a; import d0.z.d.m; import java.io.Serializable; import kotlin.jvm.internal.DefaultConstructorMarker; /* compiled from: HomeConfig.kt */ public final class HomeConfig implements Serializable { private final boolean ageGated; private final Long guildWelcomeSheetId; public HomeConfig() { this(null, false, 3, null); } public HomeConfig(Long l, boolean z2) { this.guildWelcomeSheetId = l; this.ageGated = z2; } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ public /* synthetic */ HomeConfig(Long l, boolean z2, int i, DefaultConstructorMarker defaultConstructorMarker) { this((i & 1) != 0 ? null : l, (i & 2) != 0 ? false : z2); } public static /* synthetic */ HomeConfig copy$default(HomeConfig homeConfig, Long l, boolean z2, int i, Object obj) { if ((i & 1) != 0) { l = homeConfig.guildWelcomeSheetId; } if ((i & 2) != 0) { z2 = homeConfig.ageGated; } return homeConfig.copy(l, z2); } public final Long component1() { return this.guildWelcomeSheetId; } public final boolean component2() { return this.ageGated; } public final HomeConfig copy(Long l, boolean z2) { return new HomeConfig(l, z2); } @Override // java.lang.Object public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof HomeConfig)) { return false; } HomeConfig homeConfig = (HomeConfig) obj; return m.areEqual(this.guildWelcomeSheetId, homeConfig.guildWelcomeSheetId) && this.ageGated == homeConfig.ageGated; } public final boolean getAgeGated() { return this.ageGated; } public final Long getGuildWelcomeSheetId() { return this.guildWelcomeSheetId; } @Override // java.lang.Object public int hashCode() { Long l = this.guildWelcomeSheetId; int hashCode = (l != null ? l.hashCode() : 0) * 31; boolean z2 = this.ageGated; if (z2) { z2 = true; } int i = z2 ? 1 : 0; int i2 = z2 ? 1 : 0; int i3 = z2 ? 1 : 0; return hashCode + i; } @Override // java.lang.Object public String toString() { StringBuilder L = a.L("HomeConfig(guildWelcomeSheetId="); L.append(this.guildWelcomeSheetId); L.append(", ageGated="); return a.G(L, this.ageGated, ")"); } }