forked from Juby210/discord-jadx
68 lines
2.0 KiB
Java
68 lines
2.0 KiB
Java
package com.discord.api.premium;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
/* compiled from: SubscriptionPlan.kt */
|
|
public final class SubscriptionPlan {
|
|
|
|
/* renamed from: id reason: collision with root package name */
|
|
private final long f1623id;
|
|
private final SubscriptionInterval interval;
|
|
private final int intervalCount;
|
|
private final String name;
|
|
private final int price;
|
|
|
|
public final long a() {
|
|
return this.f1623id;
|
|
}
|
|
|
|
public final SubscriptionInterval b() {
|
|
return this.interval;
|
|
}
|
|
|
|
public final int c() {
|
|
return this.intervalCount;
|
|
}
|
|
|
|
public final int d() {
|
|
return this.price;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof SubscriptionPlan)) {
|
|
return false;
|
|
}
|
|
SubscriptionPlan subscriptionPlan = (SubscriptionPlan) obj;
|
|
return this.f1623id == subscriptionPlan.f1623id && this.intervalCount == subscriptionPlan.intervalCount && m.areEqual(this.interval, subscriptionPlan.interval) && m.areEqual(this.name, subscriptionPlan.name) && this.price == subscriptionPlan.price;
|
|
}
|
|
|
|
public int hashCode() {
|
|
long j = this.f1623id;
|
|
int i = ((((int) (j ^ (j >>> 32))) * 31) + this.intervalCount) * 31;
|
|
SubscriptionInterval subscriptionInterval = this.interval;
|
|
int i2 = 0;
|
|
int hashCode = (i + (subscriptionInterval != null ? subscriptionInterval.hashCode() : 0)) * 31;
|
|
String str = this.name;
|
|
if (str != null) {
|
|
i2 = str.hashCode();
|
|
}
|
|
return ((hashCode + i2) * 31) + this.price;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("SubscriptionPlan(id=");
|
|
R.append(this.f1623id);
|
|
R.append(", intervalCount=");
|
|
R.append(this.intervalCount);
|
|
R.append(", interval=");
|
|
R.append(this.interval);
|
|
R.append(", name=");
|
|
R.append(this.name);
|
|
R.append(", price=");
|
|
return a.A(R, this.price, ")");
|
|
}
|
|
}
|