74 lines
2.9 KiB
Java
74 lines
2.9 KiB
Java
package com.discord.api.role;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.nullserializable.NullSerializable;
|
|
import d0.z.d.m;
|
|
import java.io.Serializable;
|
|
/* compiled from: GuildRoleTags.kt */
|
|
public final class GuildRoleTags implements Serializable {
|
|
private final String botId;
|
|
private final String integrationId;
|
|
private final NullSerializable<Object> premiumSubscriber;
|
|
private final NullSerializable<Object> purchasableOrHasSubscribers;
|
|
private final String skuId;
|
|
private final String subscriptionListingId;
|
|
|
|
public final String a() {
|
|
return this.subscriptionListingId;
|
|
}
|
|
|
|
public final boolean b() {
|
|
return this.purchasableOrHasSubscribers != null;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof GuildRoleTags)) {
|
|
return false;
|
|
}
|
|
GuildRoleTags guildRoleTags = (GuildRoleTags) obj;
|
|
return m.areEqual(this.premiumSubscriber, guildRoleTags.premiumSubscriber) && m.areEqual(this.botId, guildRoleTags.botId) && m.areEqual(this.integrationId, guildRoleTags.integrationId) && m.areEqual(this.skuId, guildRoleTags.skuId) && m.areEqual(this.subscriptionListingId, guildRoleTags.subscriptionListingId) && m.areEqual(this.purchasableOrHasSubscribers, guildRoleTags.purchasableOrHasSubscribers);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
NullSerializable<Object> nullSerializable = this.premiumSubscriber;
|
|
int i = 0;
|
|
int hashCode = (nullSerializable != null ? nullSerializable.hashCode() : 0) * 31;
|
|
String str = this.botId;
|
|
int hashCode2 = (hashCode + (str != null ? str.hashCode() : 0)) * 31;
|
|
String str2 = this.integrationId;
|
|
int hashCode3 = (hashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
String str3 = this.skuId;
|
|
int hashCode4 = (hashCode3 + (str3 != null ? str3.hashCode() : 0)) * 31;
|
|
String str4 = this.subscriptionListingId;
|
|
int hashCode5 = (hashCode4 + (str4 != null ? str4.hashCode() : 0)) * 31;
|
|
NullSerializable<Object> nullSerializable2 = this.purchasableOrHasSubscribers;
|
|
if (nullSerializable2 != null) {
|
|
i = nullSerializable2.hashCode();
|
|
}
|
|
return hashCode5 + i;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder R = a.R("GuildRoleTags(premiumSubscriber=");
|
|
R.append(this.premiumSubscriber);
|
|
R.append(", botId=");
|
|
R.append(this.botId);
|
|
R.append(", integrationId=");
|
|
R.append(this.integrationId);
|
|
R.append(", skuId=");
|
|
R.append(this.skuId);
|
|
R.append(", subscriptionListingId=");
|
|
R.append(this.subscriptionListingId);
|
|
R.append(", purchasableOrHasSubscribers=");
|
|
R.append(this.purchasableOrHasSubscribers);
|
|
R.append(")");
|
|
return R.toString();
|
|
}
|
|
}
|