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

400 lines
16 KiB
Java

package com.discord.api.message;
import c.d.b.a.a;
import com.discord.api.application.Application;
import com.discord.api.botuikit.Component;
import com.discord.api.channel.Channel;
import com.discord.api.guildmember.GuildMember;
import com.discord.api.interaction.Interaction;
import com.discord.api.message.activity.MessageActivity;
import com.discord.api.message.attachment.MessageAttachment;
import com.discord.api.message.call.MessageCall;
import com.discord.api.message.embed.MessageEmbed;
import com.discord.api.message.reaction.MessageReaction;
import com.discord.api.sticker.Sticker;
import com.discord.api.sticker.StickerPartial;
import com.discord.api.user.User;
import com.discord.api.utcdatetime.UtcDateTime;
import d0.z.d.m;
import java.util.List;
/* compiled from: Message.kt */
public final class Message {
private final MessageActivity activity;
private final Application application;
private final Long applicationId;
private final List<MessageAttachment> attachments;
private final User author;
private final MessageCall call;
private final long channelId;
private final List<Component> components;
private final String content;
private final UtcDateTime editedTimestamp;
private final List<MessageEmbed> embeds;
private final Long flags;
private final Long guildId;
private final Boolean hit;
/* renamed from: id reason: collision with root package name */
private final long f1564id;
private final Interaction interaction;
private final GuildMember member;
private final Boolean mentionEveryone;
private final List<Long> mentionRoles;
private final List<User> mentions;
private final MessageReference messageReference;
private final String nonce;
private final Boolean pinned;
private final List<MessageReaction> reactions;
private final Message referencedMessage;
private final List<StickerPartial> stickerItems;
private final List<Sticker> stickers;
private final Channel thread;
private final UtcDateTime timestamp;
private final Boolean tts;
private final Integer type;
private final Long webhookId;
public Message(long j, long j2, User user, String str, UtcDateTime utcDateTime, UtcDateTime utcDateTime2, Boolean bool, Boolean bool2, List list, List list2, List list3, List list4, List list5, String str2, Boolean bool3, Long l, Integer num, MessageActivity messageActivity, Application application, Long l2, MessageReference messageReference, Long l3, List list6, List list7, Message message, Interaction interaction, Channel channel, List list8, MessageCall messageCall, Long l4, GuildMember guildMember, Boolean bool4, int i) {
User user2 = (i & 4) != 0 ? null : user;
String str3 = (i & 8) != 0 ? null : str;
UtcDateTime utcDateTime3 = (i & 16) != 0 ? null : utcDateTime;
UtcDateTime utcDateTime4 = (i & 32) != 0 ? null : utcDateTime2;
Boolean bool5 = (i & 64) != 0 ? null : bool;
Boolean bool6 = (i & 128) != 0 ? null : bool2;
List list9 = (i & 256) != 0 ? null : list;
List list10 = (i & 512) != 0 ? null : list2;
List list11 = (i & 1024) != 0 ? null : list3;
List list12 = (i & 2048) != 0 ? null : list4;
List list13 = (i & 4096) != 0 ? null : list5;
String str4 = (i & 8192) != 0 ? null : str2;
Boolean bool7 = (i & 16384) != 0 ? null : bool3;
Long l5 = (i & 32768) != 0 ? null : l;
Integer num2 = (i & 65536) != 0 ? null : num;
MessageActivity messageActivity2 = (i & 131072) != 0 ? null : messageActivity;
Application application2 = (i & 262144) != 0 ? null : application;
Long l6 = (i & 524288) != 0 ? null : l2;
MessageReference messageReference2 = (i & 1048576) != 0 ? null : messageReference;
Long l7 = (i & 2097152) != 0 ? null : l3;
List list14 = (i & 4194304) != 0 ? null : list6;
List list15 = (i & 8388608) != 0 ? null : list7;
Message message2 = (i & 16777216) != 0 ? null : message;
Interaction interaction2 = (i & 33554432) != 0 ? null : interaction;
Channel channel2 = (i & 67108864) != 0 ? null : channel;
List list16 = (i & 134217728) != 0 ? null : list8;
MessageCall messageCall2 = (i & 268435456) != 0 ? null : messageCall;
Long l8 = (i & 536870912) != 0 ? null : l4;
int i2 = i & 1073741824;
int i3 = i & Integer.MIN_VALUE;
this.f1564id = j;
this.channelId = j2;
this.author = user2;
this.content = str3;
this.timestamp = utcDateTime3;
this.editedTimestamp = utcDateTime4;
this.tts = bool5;
this.mentionEveryone = bool6;
this.mentions = list9;
this.mentionRoles = list10;
this.attachments = list11;
this.embeds = list12;
this.reactions = list13;
this.nonce = str4;
this.pinned = bool7;
this.webhookId = l5;
this.type = num2;
this.activity = messageActivity2;
this.application = application2;
this.applicationId = l6;
this.messageReference = messageReference2;
this.flags = l7;
this.stickers = list14;
this.stickerItems = list15;
this.referencedMessage = message2;
this.interaction = interaction2;
this.thread = channel2;
this.components = list16;
this.call = messageCall2;
this.guildId = l8;
this.member = null;
this.hit = null;
}
public final List<Sticker> A() {
return this.stickers;
}
public final Channel B() {
return this.thread;
}
public final UtcDateTime C() {
return this.timestamp;
}
public final Boolean D() {
return this.tts;
}
public final Integer E() {
return this.type;
}
public final Long F() {
return this.webhookId;
}
public final MessageActivity a() {
return this.activity;
}
public final Application b() {
return this.application;
}
public final Long c() {
return this.applicationId;
}
public final List<MessageAttachment> d() {
return this.attachments;
}
public final User e() {
return this.author;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Message)) {
return false;
}
Message message = (Message) obj;
return this.f1564id == message.f1564id && this.channelId == message.channelId && m.areEqual(this.author, message.author) && m.areEqual(this.content, message.content) && m.areEqual(this.timestamp, message.timestamp) && m.areEqual(this.editedTimestamp, message.editedTimestamp) && m.areEqual(this.tts, message.tts) && m.areEqual(this.mentionEveryone, message.mentionEveryone) && m.areEqual(this.mentions, message.mentions) && m.areEqual(this.mentionRoles, message.mentionRoles) && m.areEqual(this.attachments, message.attachments) && m.areEqual(this.embeds, message.embeds) && m.areEqual(this.reactions, message.reactions) && m.areEqual(this.nonce, message.nonce) && m.areEqual(this.pinned, message.pinned) && m.areEqual(this.webhookId, message.webhookId) && m.areEqual(this.type, message.type) && m.areEqual(this.activity, message.activity) && m.areEqual(this.application, message.application) && m.areEqual(this.applicationId, message.applicationId) && m.areEqual(this.messageReference, message.messageReference) && m.areEqual(this.flags, message.flags) && m.areEqual(this.stickers, message.stickers) && m.areEqual(this.stickerItems, message.stickerItems) && m.areEqual(this.referencedMessage, message.referencedMessage) && m.areEqual(this.interaction, message.interaction) && m.areEqual(this.thread, message.thread) && m.areEqual(this.components, message.components) && m.areEqual(this.call, message.call) && m.areEqual(this.guildId, message.guildId) && m.areEqual(this.member, message.member) && m.areEqual(this.hit, message.hit);
}
public final MessageCall f() {
return this.call;
}
public final long g() {
return this.channelId;
}
public final List<Component> h() {
return this.components;
}
public int hashCode() {
long j = this.f1564id;
long j2 = this.channelId;
int i = ((((int) (j ^ (j >>> 32))) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31;
User user = this.author;
int i2 = 0;
int hashCode = (i + (user != null ? user.hashCode() : 0)) * 31;
String str = this.content;
int hashCode2 = (hashCode + (str != null ? str.hashCode() : 0)) * 31;
UtcDateTime utcDateTime = this.timestamp;
int hashCode3 = (hashCode2 + (utcDateTime != null ? utcDateTime.hashCode() : 0)) * 31;
UtcDateTime utcDateTime2 = this.editedTimestamp;
int hashCode4 = (hashCode3 + (utcDateTime2 != null ? utcDateTime2.hashCode() : 0)) * 31;
Boolean bool = this.tts;
int hashCode5 = (hashCode4 + (bool != null ? bool.hashCode() : 0)) * 31;
Boolean bool2 = this.mentionEveryone;
int hashCode6 = (hashCode5 + (bool2 != null ? bool2.hashCode() : 0)) * 31;
List<User> list = this.mentions;
int hashCode7 = (hashCode6 + (list != null ? list.hashCode() : 0)) * 31;
List<Long> list2 = this.mentionRoles;
int hashCode8 = (hashCode7 + (list2 != null ? list2.hashCode() : 0)) * 31;
List<MessageAttachment> list3 = this.attachments;
int hashCode9 = (hashCode8 + (list3 != null ? list3.hashCode() : 0)) * 31;
List<MessageEmbed> list4 = this.embeds;
int hashCode10 = (hashCode9 + (list4 != null ? list4.hashCode() : 0)) * 31;
List<MessageReaction> list5 = this.reactions;
int hashCode11 = (hashCode10 + (list5 != null ? list5.hashCode() : 0)) * 31;
String str2 = this.nonce;
int hashCode12 = (hashCode11 + (str2 != null ? str2.hashCode() : 0)) * 31;
Boolean bool3 = this.pinned;
int hashCode13 = (hashCode12 + (bool3 != null ? bool3.hashCode() : 0)) * 31;
Long l = this.webhookId;
int hashCode14 = (hashCode13 + (l != null ? l.hashCode() : 0)) * 31;
Integer num = this.type;
int hashCode15 = (hashCode14 + (num != null ? num.hashCode() : 0)) * 31;
MessageActivity messageActivity = this.activity;
int hashCode16 = (hashCode15 + (messageActivity != null ? messageActivity.hashCode() : 0)) * 31;
Application application = this.application;
int hashCode17 = (hashCode16 + (application != null ? application.hashCode() : 0)) * 31;
Long l2 = this.applicationId;
int hashCode18 = (hashCode17 + (l2 != null ? l2.hashCode() : 0)) * 31;
MessageReference messageReference = this.messageReference;
int hashCode19 = (hashCode18 + (messageReference != null ? messageReference.hashCode() : 0)) * 31;
Long l3 = this.flags;
int hashCode20 = (hashCode19 + (l3 != null ? l3.hashCode() : 0)) * 31;
List<Sticker> list6 = this.stickers;
int hashCode21 = (hashCode20 + (list6 != null ? list6.hashCode() : 0)) * 31;
List<StickerPartial> list7 = this.stickerItems;
int hashCode22 = (hashCode21 + (list7 != null ? list7.hashCode() : 0)) * 31;
Message message = this.referencedMessage;
int hashCode23 = (hashCode22 + (message != null ? message.hashCode() : 0)) * 31;
Interaction interaction = this.interaction;
int hashCode24 = (hashCode23 + (interaction != null ? interaction.hashCode() : 0)) * 31;
Channel channel = this.thread;
int hashCode25 = (hashCode24 + (channel != null ? channel.hashCode() : 0)) * 31;
List<Component> list8 = this.components;
int hashCode26 = (hashCode25 + (list8 != null ? list8.hashCode() : 0)) * 31;
MessageCall messageCall = this.call;
int hashCode27 = (hashCode26 + (messageCall != null ? messageCall.hashCode() : 0)) * 31;
Long l4 = this.guildId;
int hashCode28 = (hashCode27 + (l4 != null ? l4.hashCode() : 0)) * 31;
GuildMember guildMember = this.member;
int hashCode29 = (hashCode28 + (guildMember != null ? guildMember.hashCode() : 0)) * 31;
Boolean bool4 = this.hit;
if (bool4 != null) {
i2 = bool4.hashCode();
}
return hashCode29 + i2;
}
public final String i() {
return this.content;
}
public final UtcDateTime j() {
return this.editedTimestamp;
}
public final List<MessageEmbed> k() {
return this.embeds;
}
public final Long l() {
return this.flags;
}
public final Long m() {
return this.guildId;
}
public final Boolean n() {
return this.hit;
}
public final long o() {
return this.f1564id;
}
public final Interaction p() {
return this.interaction;
}
public final GuildMember q() {
return this.member;
}
public final Boolean r() {
return this.mentionEveryone;
}
public final List<Long> s() {
return this.mentionRoles;
}
public final List<User> t() {
return this.mentions;
}
public String toString() {
StringBuilder L = a.L("Message(id=");
L.append(this.f1564id);
L.append(", channelId=");
L.append(this.channelId);
L.append(", author=");
L.append(this.author);
L.append(", content=");
L.append(this.content);
L.append(", timestamp=");
L.append(this.timestamp);
L.append(", editedTimestamp=");
L.append(this.editedTimestamp);
L.append(", tts=");
L.append(this.tts);
L.append(", mentionEveryone=");
L.append(this.mentionEveryone);
L.append(", mentions=");
L.append(this.mentions);
L.append(", mentionRoles=");
L.append(this.mentionRoles);
L.append(", attachments=");
L.append(this.attachments);
L.append(", embeds=");
L.append(this.embeds);
L.append(", reactions=");
L.append(this.reactions);
L.append(", nonce=");
L.append(this.nonce);
L.append(", pinned=");
L.append(this.pinned);
L.append(", webhookId=");
L.append(this.webhookId);
L.append(", type=");
L.append(this.type);
L.append(", activity=");
L.append(this.activity);
L.append(", application=");
L.append(this.application);
L.append(", applicationId=");
L.append(this.applicationId);
L.append(", messageReference=");
L.append(this.messageReference);
L.append(", flags=");
L.append(this.flags);
L.append(", stickers=");
L.append(this.stickers);
L.append(", stickerItems=");
L.append(this.stickerItems);
L.append(", referencedMessage=");
L.append(this.referencedMessage);
L.append(", interaction=");
L.append(this.interaction);
L.append(", thread=");
L.append(this.thread);
L.append(", components=");
L.append(this.components);
L.append(", call=");
L.append(this.call);
L.append(", guildId=");
L.append(this.guildId);
L.append(", member=");
L.append(this.member);
L.append(", hit=");
L.append(this.hit);
L.append(")");
return L.toString();
}
public final MessageReference u() {
return this.messageReference;
}
public final String v() {
return this.nonce;
}
public final Boolean w() {
return this.pinned;
}
public final List<MessageReaction> x() {
return this.reactions;
}
public final Message y() {
return this.referencedMessage;
}
public final List<StickerPartial> z() {
return this.stickerItems;
}
}