151 lines
4.6 KiB
Java
151 lines
4.6 KiB
Java
package com.discord.api.connectedaccounts;
|
|
|
|
import b.d.b.a.a;
|
|
import com.discord.models.domain.ModelAuditLogEntry;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: ConnectedAccount.kt */
|
|
public final class ConnectedAccount {
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final int HIDDEN = 0;
|
|
public static final int VISIBLE = 1;
|
|
private final boolean friendSync = false;
|
|
|
|
/* renamed from: id reason: collision with root package name */
|
|
private final String f2014id = "";
|
|
private final List<ConnectedAccountIntegration> integrations = null;
|
|
private final String name = "";
|
|
private final boolean revoked = false;
|
|
private final boolean showActivity = false;
|
|
private final String type = "";
|
|
private final boolean verified = false;
|
|
private final int visibility = 0;
|
|
|
|
/* compiled from: ConnectedAccount.kt */
|
|
public static final class Companion {
|
|
public Companion() {
|
|
}
|
|
|
|
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
}
|
|
}
|
|
|
|
public ConnectedAccount() {
|
|
a.n0("", ModelAuditLogEntry.CHANGE_KEY_ID, "", ModelAuditLogEntry.CHANGE_KEY_NAME, "", "type");
|
|
}
|
|
|
|
public final boolean a() {
|
|
return this.friendSync;
|
|
}
|
|
|
|
public final String b() {
|
|
return this.f2014id;
|
|
}
|
|
|
|
public final List<ConnectedAccountIntegration> c() {
|
|
return this.integrations;
|
|
}
|
|
|
|
public final String d() {
|
|
return this.name;
|
|
}
|
|
|
|
public final boolean e() {
|
|
return this.revoked;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof ConnectedAccount)) {
|
|
return false;
|
|
}
|
|
ConnectedAccount connectedAccount = (ConnectedAccount) obj;
|
|
return m.areEqual(this.f2014id, connectedAccount.f2014id) && m.areEqual(this.name, connectedAccount.name) && this.visibility == connectedAccount.visibility && this.friendSync == connectedAccount.friendSync && this.showActivity == connectedAccount.showActivity && this.revoked == connectedAccount.revoked && this.verified == connectedAccount.verified && m.areEqual(this.integrations, connectedAccount.integrations) && m.areEqual(this.type, connectedAccount.type);
|
|
}
|
|
|
|
public final boolean f() {
|
|
return this.showActivity;
|
|
}
|
|
|
|
public final String g() {
|
|
return this.type;
|
|
}
|
|
|
|
public final boolean h() {
|
|
return this.verified;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.f2014id;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
String str2 = this.name;
|
|
int hashCode2 = (((hashCode + (str2 != null ? str2.hashCode() : 0)) * 31) + this.visibility) * 31;
|
|
boolean z2 = this.friendSync;
|
|
int i2 = 1;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i3 = z2 ? 1 : 0;
|
|
int i4 = z2 ? 1 : 0;
|
|
int i5 = z2 ? 1 : 0;
|
|
int i6 = (hashCode2 + i3) * 31;
|
|
boolean z3 = this.showActivity;
|
|
if (z3) {
|
|
z3 = true;
|
|
}
|
|
int i7 = z3 ? 1 : 0;
|
|
int i8 = z3 ? 1 : 0;
|
|
int i9 = z3 ? 1 : 0;
|
|
int i10 = (i6 + i7) * 31;
|
|
boolean z4 = this.revoked;
|
|
if (z4) {
|
|
z4 = true;
|
|
}
|
|
int i11 = z4 ? 1 : 0;
|
|
int i12 = z4 ? 1 : 0;
|
|
int i13 = z4 ? 1 : 0;
|
|
int i14 = (i10 + i11) * 31;
|
|
boolean z5 = this.verified;
|
|
if (!z5) {
|
|
i2 = z5 ? 1 : 0;
|
|
}
|
|
int i15 = (i14 + i2) * 31;
|
|
List<ConnectedAccountIntegration> list = this.integrations;
|
|
int hashCode3 = (i15 + (list != null ? list.hashCode() : 0)) * 31;
|
|
String str3 = this.type;
|
|
if (str3 != null) {
|
|
i = str3.hashCode();
|
|
}
|
|
return hashCode3 + i;
|
|
}
|
|
|
|
public final int i() {
|
|
return this.visibility;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("ConnectedAccount(id=");
|
|
R.append(this.f2014id);
|
|
R.append(", name=");
|
|
R.append(this.name);
|
|
R.append(", visibility=");
|
|
R.append(this.visibility);
|
|
R.append(", friendSync=");
|
|
R.append(this.friendSync);
|
|
R.append(", showActivity=");
|
|
R.append(this.showActivity);
|
|
R.append(", revoked=");
|
|
R.append(this.revoked);
|
|
R.append(", verified=");
|
|
R.append(this.verified);
|
|
R.append(", integrations=");
|
|
R.append(this.integrations);
|
|
R.append(", type=");
|
|
return a.H(R, this.type, ")");
|
|
}
|
|
}
|