forked from Juby210/discord-jadx
317 lines
10 KiB
Java
317 lines
10 KiB
Java
package com.discord.widgets.mobile_reports;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import c.d.b.a.a;
|
|
import c0.z.d.m;
|
|
import com.discord.api.report.ReportType;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import z.a.a.b;
|
|
/* compiled from: WidgetMobileReports.kt */
|
|
public abstract class MobileReportArgs implements Parcelable {
|
|
private final long channelId;
|
|
private final ReportType reportType;
|
|
|
|
/* compiled from: WidgetMobileReports.kt */
|
|
public static final class DirectoryServer extends MobileReportArgs {
|
|
public static final Parcelable.Creator<DirectoryServer> CREATOR = new Creator();
|
|
private final long channelId;
|
|
private final long guildId;
|
|
private final long hubId;
|
|
|
|
public static class Creator implements Parcelable.Creator<DirectoryServer> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final DirectoryServer createFromParcel(Parcel parcel) {
|
|
m.checkNotNullParameter(parcel, "in");
|
|
return new DirectoryServer(parcel.readLong(), parcel.readLong(), parcel.readLong());
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final DirectoryServer[] newArray(int i) {
|
|
return new DirectoryServer[i];
|
|
}
|
|
}
|
|
|
|
public DirectoryServer(long j, long j2, long j3) {
|
|
super(ReportType.DirectoryServer, j3, null);
|
|
this.guildId = j;
|
|
this.hubId = j2;
|
|
this.channelId = j3;
|
|
}
|
|
|
|
public static /* synthetic */ DirectoryServer copy$default(DirectoryServer directoryServer, long j, long j2, long j3, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
j = directoryServer.guildId;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
j2 = directoryServer.hubId;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
j3 = directoryServer.getChannelId();
|
|
}
|
|
return directoryServer.copy(j, j2, j3);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final long component2() {
|
|
return this.hubId;
|
|
}
|
|
|
|
public final long component3() {
|
|
return getChannelId();
|
|
}
|
|
|
|
public final DirectoryServer copy(long j, long j2, long j3) {
|
|
return new DirectoryServer(j, j2, j3);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof DirectoryServer)) {
|
|
return false;
|
|
}
|
|
DirectoryServer directoryServer = (DirectoryServer) obj;
|
|
return this.guildId == directoryServer.guildId && this.hubId == directoryServer.hubId && getChannelId() == directoryServer.getChannelId();
|
|
}
|
|
|
|
@Override // com.discord.widgets.mobile_reports.MobileReportArgs
|
|
public long getChannelId() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final long getGuildId() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final long getHubId() {
|
|
return this.hubId;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
int a = b.a(this.hubId);
|
|
return b.a(getChannelId()) + ((a + (b.a(this.guildId) * 31)) * 31);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder O = a.O("DirectoryServer(guildId=");
|
|
O.append(this.guildId);
|
|
O.append(", hubId=");
|
|
O.append(this.hubId);
|
|
O.append(", channelId=");
|
|
O.append(getChannelId());
|
|
O.append(")");
|
|
return O.toString();
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
m.checkNotNullParameter(parcel, "parcel");
|
|
parcel.writeLong(this.guildId);
|
|
parcel.writeLong(this.hubId);
|
|
parcel.writeLong(this.channelId);
|
|
}
|
|
}
|
|
|
|
/* compiled from: WidgetMobileReports.kt */
|
|
public static final class Message extends MobileReportArgs {
|
|
public static final Parcelable.Creator<Message> CREATOR = new Creator();
|
|
private final long channelId;
|
|
private final long messageId;
|
|
|
|
public static class Creator implements Parcelable.Creator<Message> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final Message createFromParcel(Parcel parcel) {
|
|
m.checkNotNullParameter(parcel, "in");
|
|
return new Message(parcel.readLong(), parcel.readLong());
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final Message[] newArray(int i) {
|
|
return new Message[i];
|
|
}
|
|
}
|
|
|
|
public Message(long j, long j2) {
|
|
super(ReportType.Message, j2, null);
|
|
this.messageId = j;
|
|
this.channelId = j2;
|
|
}
|
|
|
|
public static /* synthetic */ Message copy$default(Message message, long j, long j2, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
j = message.messageId;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
j2 = message.getChannelId();
|
|
}
|
|
return message.copy(j, j2);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.messageId;
|
|
}
|
|
|
|
public final long component2() {
|
|
return getChannelId();
|
|
}
|
|
|
|
public final Message copy(long j, long j2) {
|
|
return new Message(j, j2);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof Message)) {
|
|
return false;
|
|
}
|
|
Message message = (Message) obj;
|
|
return this.messageId == message.messageId && getChannelId() == message.getChannelId();
|
|
}
|
|
|
|
@Override // com.discord.widgets.mobile_reports.MobileReportArgs
|
|
public long getChannelId() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final long getMessageId() {
|
|
return this.messageId;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
return b.a(getChannelId()) + (b.a(this.messageId) * 31);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder O = a.O("Message(messageId=");
|
|
O.append(this.messageId);
|
|
O.append(", channelId=");
|
|
O.append(getChannelId());
|
|
O.append(")");
|
|
return O.toString();
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
m.checkNotNullParameter(parcel, "parcel");
|
|
parcel.writeLong(this.messageId);
|
|
parcel.writeLong(this.channelId);
|
|
}
|
|
}
|
|
|
|
/* compiled from: WidgetMobileReports.kt */
|
|
public static final class StageChannel extends MobileReportArgs {
|
|
public static final Parcelable.Creator<StageChannel> CREATOR = new Creator();
|
|
private final long channelId;
|
|
|
|
public static class Creator implements Parcelable.Creator<StageChannel> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final StageChannel createFromParcel(Parcel parcel) {
|
|
m.checkNotNullParameter(parcel, "in");
|
|
return new StageChannel(parcel.readLong());
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final StageChannel[] newArray(int i) {
|
|
return new StageChannel[i];
|
|
}
|
|
}
|
|
|
|
public StageChannel(long j) {
|
|
super(ReportType.StageChannel, j, null);
|
|
this.channelId = j;
|
|
}
|
|
|
|
public static /* synthetic */ StageChannel copy$default(StageChannel stageChannel, long j, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
j = stageChannel.getChannelId();
|
|
}
|
|
return stageChannel.copy(j);
|
|
}
|
|
|
|
public final long component1() {
|
|
return getChannelId();
|
|
}
|
|
|
|
public final StageChannel copy(long j) {
|
|
return new StageChannel(j);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this != obj) {
|
|
return (obj instanceof StageChannel) && getChannelId() == ((StageChannel) obj).getChannelId();
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // com.discord.widgets.mobile_reports.MobileReportArgs
|
|
public long getChannelId() {
|
|
return this.channelId;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
return b.a(getChannelId());
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder O = a.O("StageChannel(channelId=");
|
|
O.append(getChannelId());
|
|
O.append(")");
|
|
return O.toString();
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
m.checkNotNullParameter(parcel, "parcel");
|
|
parcel.writeLong(this.channelId);
|
|
}
|
|
}
|
|
|
|
private MobileReportArgs(ReportType reportType, long j) {
|
|
this.reportType = reportType;
|
|
this.channelId = j;
|
|
}
|
|
|
|
public /* synthetic */ MobileReportArgs(ReportType reportType, long j, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(reportType, j);
|
|
}
|
|
|
|
public long getChannelId() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final ReportType getReportType() {
|
|
return this.reportType;
|
|
}
|
|
}
|