discord-jadx/app/src/main/java/com/discord/api/message/embed/MessageEmbed.java

148 lines
5.1 KiB
Java

package com.discord.api.message.embed;
import c.d.b.a.a;
import com.discord.api.utcdatetime.UtcDateTime;
import d0.z.d.m;
import java.util.List;
/* compiled from: MessageEmbed.kt */
public final class MessageEmbed {
private final EmbedAuthor author;
private final Integer color;
private final String description;
private final List<EmbedField> fields;
private final EmbedFooter footer;
private final EmbedImage image;
private final EmbedProvider provider;
private final EmbedThumbnail thumbnail;
private final UtcDateTime timestamp;
private final String title;
private final EmbedType type;
private final String url;
private final EmbedVideo video;
public final EmbedAuthor a() {
return this.author;
}
public final Integer b() {
return this.color;
}
public final String c() {
return this.description;
}
public final List<EmbedField> d() {
return this.fields;
}
public final EmbedFooter e() {
return this.footer;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof MessageEmbed)) {
return false;
}
MessageEmbed messageEmbed = (MessageEmbed) obj;
return m.areEqual(this.title, messageEmbed.title) && m.areEqual(this.type, messageEmbed.type) && m.areEqual(this.description, messageEmbed.description) && m.areEqual(this.url, messageEmbed.url) && m.areEqual(this.timestamp, messageEmbed.timestamp) && m.areEqual(this.color, messageEmbed.color) && m.areEqual(this.footer, messageEmbed.footer) && m.areEqual(this.image, messageEmbed.image) && m.areEqual(this.thumbnail, messageEmbed.thumbnail) && m.areEqual(this.video, messageEmbed.video) && m.areEqual(this.provider, messageEmbed.provider) && m.areEqual(this.author, messageEmbed.author) && m.areEqual(this.fields, messageEmbed.fields);
}
public final EmbedImage f() {
return this.image;
}
public final EmbedProvider g() {
return this.provider;
}
public final EmbedThumbnail h() {
return this.thumbnail;
}
public int hashCode() {
String str = this.title;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
EmbedType embedType = this.type;
int hashCode2 = (hashCode + (embedType != null ? embedType.hashCode() : 0)) * 31;
String str2 = this.description;
int hashCode3 = (hashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31;
String str3 = this.url;
int hashCode4 = (hashCode3 + (str3 != null ? str3.hashCode() : 0)) * 31;
UtcDateTime utcDateTime = this.timestamp;
int hashCode5 = (hashCode4 + (utcDateTime != null ? utcDateTime.hashCode() : 0)) * 31;
Integer num = this.color;
int hashCode6 = (hashCode5 + (num != null ? num.hashCode() : 0)) * 31;
EmbedFooter embedFooter = this.footer;
int hashCode7 = (hashCode6 + (embedFooter != null ? embedFooter.hashCode() : 0)) * 31;
EmbedImage embedImage = this.image;
int hashCode8 = (hashCode7 + (embedImage != null ? embedImage.hashCode() : 0)) * 31;
EmbedThumbnail embedThumbnail = this.thumbnail;
int hashCode9 = (hashCode8 + (embedThumbnail != null ? embedThumbnail.hashCode() : 0)) * 31;
EmbedVideo embedVideo = this.video;
int hashCode10 = (hashCode9 + (embedVideo != null ? embedVideo.hashCode() : 0)) * 31;
EmbedProvider embedProvider = this.provider;
int hashCode11 = (hashCode10 + (embedProvider != null ? embedProvider.hashCode() : 0)) * 31;
EmbedAuthor embedAuthor = this.author;
int hashCode12 = (hashCode11 + (embedAuthor != null ? embedAuthor.hashCode() : 0)) * 31;
List<EmbedField> list = this.fields;
if (list != null) {
i = list.hashCode();
}
return hashCode12 + i;
}
public final UtcDateTime i() {
return this.timestamp;
}
public final String j() {
return this.title;
}
public final EmbedType k() {
return this.type;
}
public final String l() {
return this.url;
}
public final EmbedVideo m() {
return this.video;
}
public String toString() {
StringBuilder L = a.L("MessageEmbed(title=");
L.append(this.title);
L.append(", type=");
L.append(this.type);
L.append(", description=");
L.append(this.description);
L.append(", url=");
L.append(this.url);
L.append(", timestamp=");
L.append(this.timestamp);
L.append(", color=");
L.append(this.color);
L.append(", footer=");
L.append(this.footer);
L.append(", image=");
L.append(this.image);
L.append(", thumbnail=");
L.append(this.thumbnail);
L.append(", video=");
L.append(this.video);
L.append(", provider=");
L.append(this.provider);
L.append(", author=");
L.append(this.author);
L.append(", fields=");
return a.E(L, this.fields, ")");
}
}