66 lines
1.8 KiB
Java
66 lines
1.8 KiB
Java
package com.discord.api.message;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
/* compiled from: LocalAttachment.kt */
|
|
public final class LocalAttachment {
|
|
private final String displayName;
|
|
|
|
/* renamed from: id reason: collision with root package name */
|
|
private final long f1563id;
|
|
private final String uriString;
|
|
|
|
public LocalAttachment(long j, String str, String str2) {
|
|
m.checkNotNullParameter(str, "uriString");
|
|
m.checkNotNullParameter(str2, "displayName");
|
|
this.f1563id = j;
|
|
this.uriString = str;
|
|
this.displayName = str2;
|
|
}
|
|
|
|
public final String a() {
|
|
return this.displayName;
|
|
}
|
|
|
|
public final long b() {
|
|
return this.f1563id;
|
|
}
|
|
|
|
public final String c() {
|
|
return this.uriString;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof LocalAttachment)) {
|
|
return false;
|
|
}
|
|
LocalAttachment localAttachment = (LocalAttachment) obj;
|
|
return this.f1563id == localAttachment.f1563id && m.areEqual(this.uriString, localAttachment.uriString) && m.areEqual(this.displayName, localAttachment.displayName);
|
|
}
|
|
|
|
public int hashCode() {
|
|
long j = this.f1563id;
|
|
int i = ((int) (j ^ (j >>> 32))) * 31;
|
|
String str = this.uriString;
|
|
int i2 = 0;
|
|
int hashCode = (i + (str != null ? str.hashCode() : 0)) * 31;
|
|
String str2 = this.displayName;
|
|
if (str2 != null) {
|
|
i2 = str2.hashCode();
|
|
}
|
|
return hashCode + i2;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("LocalAttachment(id=");
|
|
L.append(this.f1563id);
|
|
L.append(", uriString=");
|
|
L.append(this.uriString);
|
|
L.append(", displayName=");
|
|
return a.D(L, this.displayName, ")");
|
|
}
|
|
}
|