116 lines
3.9 KiB
Java
116 lines
3.9 KiB
Java
package com.discord.api.embeddedactivities;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.api.activity.ActivityAssets;
|
|
import com.discord.api.activity.ActivitySecrets;
|
|
import com.discord.api.activity.ActivityTimestamps;
|
|
import com.discord.api.activity.ActivityType;
|
|
import d0.z.d.m;
|
|
/* compiled from: EmbeddedActivity.kt */
|
|
public final class EmbeddedActivity {
|
|
private final long applicationId;
|
|
private final ActivityAssets assets;
|
|
private final Long createdAt;
|
|
private final String details;
|
|
private final String name;
|
|
private final ActivitySecrets secrets;
|
|
private final String state;
|
|
private final ActivityTimestamps timestamps;
|
|
private final ActivityType type;
|
|
|
|
public final long a() {
|
|
return this.applicationId;
|
|
}
|
|
|
|
public final ActivityAssets b() {
|
|
return this.assets;
|
|
}
|
|
|
|
public final Long c() {
|
|
return this.createdAt;
|
|
}
|
|
|
|
public final String d() {
|
|
return this.details;
|
|
}
|
|
|
|
public final String e() {
|
|
return this.name;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof EmbeddedActivity)) {
|
|
return false;
|
|
}
|
|
EmbeddedActivity embeddedActivity = (EmbeddedActivity) obj;
|
|
return this.applicationId == embeddedActivity.applicationId && m.areEqual(this.assets, embeddedActivity.assets) && m.areEqual(this.createdAt, embeddedActivity.createdAt) && m.areEqual(this.details, embeddedActivity.details) && m.areEqual(this.name, embeddedActivity.name) && m.areEqual(this.secrets, embeddedActivity.secrets) && m.areEqual(this.state, embeddedActivity.state) && m.areEqual(this.timestamps, embeddedActivity.timestamps) && m.areEqual(this.type, embeddedActivity.type);
|
|
}
|
|
|
|
public final ActivitySecrets f() {
|
|
return this.secrets;
|
|
}
|
|
|
|
public final String g() {
|
|
return this.state;
|
|
}
|
|
|
|
public final ActivityTimestamps h() {
|
|
return this.timestamps;
|
|
}
|
|
|
|
public int hashCode() {
|
|
long j = this.applicationId;
|
|
int i = ((int) (j ^ (j >>> 32))) * 31;
|
|
ActivityAssets activityAssets = this.assets;
|
|
int i2 = 0;
|
|
int hashCode = (i + (activityAssets != null ? activityAssets.hashCode() : 0)) * 31;
|
|
Long l = this.createdAt;
|
|
int hashCode2 = (hashCode + (l != null ? l.hashCode() : 0)) * 31;
|
|
String str = this.details;
|
|
int hashCode3 = (hashCode2 + (str != null ? str.hashCode() : 0)) * 31;
|
|
String str2 = this.name;
|
|
int hashCode4 = (hashCode3 + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
ActivitySecrets activitySecrets = this.secrets;
|
|
int hashCode5 = (hashCode4 + (activitySecrets != null ? activitySecrets.hashCode() : 0)) * 31;
|
|
String str3 = this.state;
|
|
int hashCode6 = (hashCode5 + (str3 != null ? str3.hashCode() : 0)) * 31;
|
|
ActivityTimestamps activityTimestamps = this.timestamps;
|
|
int hashCode7 = (hashCode6 + (activityTimestamps != null ? activityTimestamps.hashCode() : 0)) * 31;
|
|
ActivityType activityType = this.type;
|
|
if (activityType != null) {
|
|
i2 = activityType.hashCode();
|
|
}
|
|
return hashCode7 + i2;
|
|
}
|
|
|
|
public final ActivityType i() {
|
|
return this.type;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("EmbeddedActivity(applicationId=");
|
|
R.append(this.applicationId);
|
|
R.append(", assets=");
|
|
R.append(this.assets);
|
|
R.append(", createdAt=");
|
|
R.append(this.createdAt);
|
|
R.append(", details=");
|
|
R.append(this.details);
|
|
R.append(", name=");
|
|
R.append(this.name);
|
|
R.append(", secrets=");
|
|
R.append(this.secrets);
|
|
R.append(", state=");
|
|
R.append(this.state);
|
|
R.append(", timestamps=");
|
|
R.append(this.timestamps);
|
|
R.append(", type=");
|
|
R.append(this.type);
|
|
R.append(")");
|
|
return R.toString();
|
|
}
|
|
}
|