153 lines
5.2 KiB
Java
153 lines
5.2 KiB
Java
package com.discord.api.application;
|
|
|
|
import b.d.b.a.a;
|
|
import com.discord.widgets.chat.input.autocomplete.AutocompleteViewModel;
|
|
import d0.g0.w;
|
|
import d0.t.n;
|
|
import d0.z.d.m;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
/* compiled from: Application.kt */
|
|
public final class Application {
|
|
private final String coverImage;
|
|
private final String deeplinkUri;
|
|
private final String description;
|
|
private final Long guildId;
|
|
private final String icon;
|
|
|
|
/* renamed from: id reason: collision with root package name */
|
|
private final long f2014id;
|
|
private final String name;
|
|
private final String splash;
|
|
private final Team team;
|
|
private final List<ThirdPartySku> thirdPartySkus;
|
|
private final ApplicationType type;
|
|
|
|
public final String a() {
|
|
String removeSuffix;
|
|
String v;
|
|
String str = this.deeplinkUri;
|
|
return (str == null || (removeSuffix = w.removeSuffix(str, AutocompleteViewModel.COMMAND_DISCOVER_TOKEN)) == null || (v = a.v(removeSuffix, "/_discord")) == null) ? a.B(a.R("dscd"), this.f2014id, "://connect/_discord") : v;
|
|
}
|
|
|
|
public final String b() {
|
|
return this.coverImage;
|
|
}
|
|
|
|
public final String c() {
|
|
return this.description;
|
|
}
|
|
|
|
public final List<String> d() {
|
|
List<ThirdPartySku> list = this.thirdPartySkus;
|
|
if (list == null) {
|
|
return n.emptyList();
|
|
}
|
|
ArrayList<ThirdPartySku> arrayList = new ArrayList();
|
|
for (Object obj : list) {
|
|
if (m.areEqual(((ThirdPartySku) obj).a(), "google_play")) {
|
|
arrayList.add(obj);
|
|
}
|
|
}
|
|
ArrayList arrayList2 = new ArrayList();
|
|
for (ThirdPartySku thirdPartySku : arrayList) {
|
|
String b2 = thirdPartySku.b();
|
|
if (b2 != null) {
|
|
arrayList2.add(b2);
|
|
}
|
|
}
|
|
return arrayList2;
|
|
}
|
|
|
|
public final Long e() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof Application)) {
|
|
return false;
|
|
}
|
|
Application application = (Application) obj;
|
|
return this.f2014id == application.f2014id && m.areEqual(this.name, application.name) && m.areEqual(this.description, application.description) && m.areEqual(this.splash, application.splash) && m.areEqual(this.coverImage, application.coverImage) && m.areEqual(this.icon, application.icon) && m.areEqual(this.thirdPartySkus, application.thirdPartySkus) && m.areEqual(this.deeplinkUri, application.deeplinkUri) && m.areEqual(this.type, application.type) && m.areEqual(this.guildId, application.guildId) && m.areEqual(this.team, application.team);
|
|
}
|
|
|
|
public final String f() {
|
|
return this.icon;
|
|
}
|
|
|
|
public final long g() {
|
|
return this.f2014id;
|
|
}
|
|
|
|
public final String h() {
|
|
return this.name;
|
|
}
|
|
|
|
public int hashCode() {
|
|
long j = this.f2014id;
|
|
int i = ((int) (j ^ (j >>> 32))) * 31;
|
|
String str = this.name;
|
|
int i2 = 0;
|
|
int hashCode = (i + (str != null ? str.hashCode() : 0)) * 31;
|
|
String str2 = this.description;
|
|
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
String str3 = this.splash;
|
|
int hashCode3 = (hashCode2 + (str3 != null ? str3.hashCode() : 0)) * 31;
|
|
String str4 = this.coverImage;
|
|
int hashCode4 = (hashCode3 + (str4 != null ? str4.hashCode() : 0)) * 31;
|
|
String str5 = this.icon;
|
|
int hashCode5 = (hashCode4 + (str5 != null ? str5.hashCode() : 0)) * 31;
|
|
List<ThirdPartySku> list = this.thirdPartySkus;
|
|
int hashCode6 = (hashCode5 + (list != null ? list.hashCode() : 0)) * 31;
|
|
String str6 = this.deeplinkUri;
|
|
int hashCode7 = (hashCode6 + (str6 != null ? str6.hashCode() : 0)) * 31;
|
|
ApplicationType applicationType = this.type;
|
|
int hashCode8 = (hashCode7 + (applicationType != null ? applicationType.hashCode() : 0)) * 31;
|
|
Long l = this.guildId;
|
|
int hashCode9 = (hashCode8 + (l != null ? l.hashCode() : 0)) * 31;
|
|
Team team = this.team;
|
|
if (team != null) {
|
|
i2 = team.hashCode();
|
|
}
|
|
return hashCode9 + i2;
|
|
}
|
|
|
|
public final String i() {
|
|
return this.splash;
|
|
}
|
|
|
|
public final ApplicationType j() {
|
|
return this.type;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("Application(id=");
|
|
R.append(this.f2014id);
|
|
R.append(", name=");
|
|
R.append(this.name);
|
|
R.append(", description=");
|
|
R.append(this.description);
|
|
R.append(", splash=");
|
|
R.append(this.splash);
|
|
R.append(", coverImage=");
|
|
R.append(this.coverImage);
|
|
R.append(", icon=");
|
|
R.append(this.icon);
|
|
R.append(", thirdPartySkus=");
|
|
R.append(this.thirdPartySkus);
|
|
R.append(", deeplinkUri=");
|
|
R.append(this.deeplinkUri);
|
|
R.append(", type=");
|
|
R.append(this.type);
|
|
R.append(", guildId=");
|
|
R.append(this.guildId);
|
|
R.append(", team=");
|
|
R.append(this.team);
|
|
R.append(")");
|
|
return R.toString();
|
|
}
|
|
}
|