407 lines
16 KiB
Java
407 lines
16 KiB
Java
package com.discord.widgets.voice.feedback;
|
|
|
|
import a0.a.a.b;
|
|
import c.d.b.a.a;
|
|
import com.discord.models.domain.ModelApplicationStream;
|
|
import d0.z.d.m;
|
|
import java.io.Serializable;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: PendingFeedback.kt */
|
|
public abstract class PendingFeedback implements Serializable {
|
|
|
|
/* compiled from: PendingFeedback.kt */
|
|
public static final class CallFeedback extends PendingFeedback {
|
|
private final long channelId;
|
|
private final Long durationMs;
|
|
private final FeedbackRating feedbackRating;
|
|
private final String issueDetails;
|
|
private final String mediaSessionId;
|
|
private final Integer reasonCode;
|
|
private final String reasonDescription;
|
|
private final String rtcConnectionId;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public CallFeedback(long j, String str, Long l, String str2, FeedbackRating feedbackRating, Integer num, String str3, String str4) {
|
|
super(null);
|
|
m.checkNotNullParameter(feedbackRating, "feedbackRating");
|
|
this.channelId = j;
|
|
this.rtcConnectionId = str;
|
|
this.durationMs = l;
|
|
this.mediaSessionId = str2;
|
|
this.feedbackRating = feedbackRating;
|
|
this.reasonCode = num;
|
|
this.reasonDescription = str3;
|
|
this.issueDetails = str4;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ CallFeedback(long j, String str, Long l, String str2, FeedbackRating feedbackRating, Integer num, String str3, String str4, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(j, (i & 2) != 0 ? null : str, (i & 4) != 0 ? null : l, (i & 8) != 0 ? null : str2, (i & 16) != 0 ? FeedbackRating.NO_RESPONSE : feedbackRating, (i & 32) != 0 ? null : num, (i & 64) != 0 ? null : str3, (i & 128) != 0 ? null : str4);
|
|
}
|
|
|
|
public static /* synthetic */ CallFeedback copy$default(CallFeedback callFeedback, long j, String str, Long l, String str2, FeedbackRating feedbackRating, Integer num, String str3, String str4, int i, Object obj) {
|
|
return callFeedback.copy((i & 1) != 0 ? callFeedback.channelId : j, (i & 2) != 0 ? callFeedback.rtcConnectionId : str, (i & 4) != 0 ? callFeedback.durationMs : l, (i & 8) != 0 ? callFeedback.mediaSessionId : str2, (i & 16) != 0 ? callFeedback.feedbackRating : feedbackRating, (i & 32) != 0 ? callFeedback.reasonCode : num, (i & 64) != 0 ? callFeedback.reasonDescription : str3, (i & 128) != 0 ? callFeedback.issueDetails : str4);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.rtcConnectionId;
|
|
}
|
|
|
|
public final Long component3() {
|
|
return this.durationMs;
|
|
}
|
|
|
|
public final String component4() {
|
|
return this.mediaSessionId;
|
|
}
|
|
|
|
public final FeedbackRating component5() {
|
|
return this.feedbackRating;
|
|
}
|
|
|
|
public final Integer component6() {
|
|
return this.reasonCode;
|
|
}
|
|
|
|
public final String component7() {
|
|
return this.reasonDescription;
|
|
}
|
|
|
|
public final String component8() {
|
|
return this.issueDetails;
|
|
}
|
|
|
|
public final CallFeedback copy(long j, String str, Long l, String str2, FeedbackRating feedbackRating, Integer num, String str3, String str4) {
|
|
m.checkNotNullParameter(feedbackRating, "feedbackRating");
|
|
return new CallFeedback(j, str, l, str2, feedbackRating, num, str3, str4);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof CallFeedback)) {
|
|
return false;
|
|
}
|
|
CallFeedback callFeedback = (CallFeedback) obj;
|
|
return this.channelId == callFeedback.channelId && m.areEqual(this.rtcConnectionId, callFeedback.rtcConnectionId) && m.areEqual(this.durationMs, callFeedback.durationMs) && m.areEqual(this.mediaSessionId, callFeedback.mediaSessionId) && m.areEqual(this.feedbackRating, callFeedback.feedbackRating) && m.areEqual(this.reasonCode, callFeedback.reasonCode) && m.areEqual(this.reasonDescription, callFeedback.reasonDescription) && m.areEqual(this.issueDetails, callFeedback.issueDetails);
|
|
}
|
|
|
|
public final long getChannelId() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final Long getDurationMs() {
|
|
return this.durationMs;
|
|
}
|
|
|
|
public final FeedbackRating getFeedbackRating() {
|
|
return this.feedbackRating;
|
|
}
|
|
|
|
public final String getIssueDetails() {
|
|
return this.issueDetails;
|
|
}
|
|
|
|
public final String getMediaSessionId() {
|
|
return this.mediaSessionId;
|
|
}
|
|
|
|
public final Integer getReasonCode() {
|
|
return this.reasonCode;
|
|
}
|
|
|
|
public final String getReasonDescription() {
|
|
return this.reasonDescription;
|
|
}
|
|
|
|
public final String getRtcConnectionId() {
|
|
return this.rtcConnectionId;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
int a = b.a(this.channelId) * 31;
|
|
String str = this.rtcConnectionId;
|
|
int i = 0;
|
|
int hashCode = (a + (str != null ? str.hashCode() : 0)) * 31;
|
|
Long l = this.durationMs;
|
|
int hashCode2 = (hashCode + (l != null ? l.hashCode() : 0)) * 31;
|
|
String str2 = this.mediaSessionId;
|
|
int hashCode3 = (hashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
FeedbackRating feedbackRating = this.feedbackRating;
|
|
int hashCode4 = (hashCode3 + (feedbackRating != null ? feedbackRating.hashCode() : 0)) * 31;
|
|
Integer num = this.reasonCode;
|
|
int hashCode5 = (hashCode4 + (num != null ? num.hashCode() : 0)) * 31;
|
|
String str3 = this.reasonDescription;
|
|
int hashCode6 = (hashCode5 + (str3 != null ? str3.hashCode() : 0)) * 31;
|
|
String str4 = this.issueDetails;
|
|
if (str4 != null) {
|
|
i = str4.hashCode();
|
|
}
|
|
return hashCode6 + i;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder L = a.L("CallFeedback(channelId=");
|
|
L.append(this.channelId);
|
|
L.append(", rtcConnectionId=");
|
|
L.append(this.rtcConnectionId);
|
|
L.append(", durationMs=");
|
|
L.append(this.durationMs);
|
|
L.append(", mediaSessionId=");
|
|
L.append(this.mediaSessionId);
|
|
L.append(", feedbackRating=");
|
|
L.append(this.feedbackRating);
|
|
L.append(", reasonCode=");
|
|
L.append(this.reasonCode);
|
|
L.append(", reasonDescription=");
|
|
L.append(this.reasonDescription);
|
|
L.append(", issueDetails=");
|
|
return a.D(L, this.issueDetails, ")");
|
|
}
|
|
}
|
|
|
|
/* compiled from: PendingFeedback.kt */
|
|
public static final class GuildDeleteFeedback extends PendingFeedback {
|
|
private final long guildId;
|
|
private final String issueDetails;
|
|
private final FeedbackIssue reason;
|
|
|
|
public GuildDeleteFeedback(long j, FeedbackIssue feedbackIssue, String str) {
|
|
super(null);
|
|
this.guildId = j;
|
|
this.reason = feedbackIssue;
|
|
this.issueDetails = str;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ GuildDeleteFeedback(long j, FeedbackIssue feedbackIssue, String str, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(j, (i & 2) != 0 ? null : feedbackIssue, (i & 4) != 0 ? null : str);
|
|
}
|
|
|
|
public static /* synthetic */ GuildDeleteFeedback copy$default(GuildDeleteFeedback guildDeleteFeedback, long j, FeedbackIssue feedbackIssue, String str, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
j = guildDeleteFeedback.guildId;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
feedbackIssue = guildDeleteFeedback.reason;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
str = guildDeleteFeedback.issueDetails;
|
|
}
|
|
return guildDeleteFeedback.copy(j, feedbackIssue, str);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final FeedbackIssue component2() {
|
|
return this.reason;
|
|
}
|
|
|
|
public final String component3() {
|
|
return this.issueDetails;
|
|
}
|
|
|
|
public final GuildDeleteFeedback copy(long j, FeedbackIssue feedbackIssue, String str) {
|
|
return new GuildDeleteFeedback(j, feedbackIssue, str);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof GuildDeleteFeedback)) {
|
|
return false;
|
|
}
|
|
GuildDeleteFeedback guildDeleteFeedback = (GuildDeleteFeedback) obj;
|
|
return this.guildId == guildDeleteFeedback.guildId && m.areEqual(this.reason, guildDeleteFeedback.reason) && m.areEqual(this.issueDetails, guildDeleteFeedback.issueDetails);
|
|
}
|
|
|
|
public final long getGuildId() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final String getIssueDetails() {
|
|
return this.issueDetails;
|
|
}
|
|
|
|
public final FeedbackIssue getReason() {
|
|
return this.reason;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
int a = b.a(this.guildId) * 31;
|
|
FeedbackIssue feedbackIssue = this.reason;
|
|
int i = 0;
|
|
int hashCode = (a + (feedbackIssue != null ? feedbackIssue.hashCode() : 0)) * 31;
|
|
String str = this.issueDetails;
|
|
if (str != null) {
|
|
i = str.hashCode();
|
|
}
|
|
return hashCode + i;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder L = a.L("GuildDeleteFeedback(guildId=");
|
|
L.append(this.guildId);
|
|
L.append(", reason=");
|
|
L.append(this.reason);
|
|
L.append(", issueDetails=");
|
|
return a.D(L, this.issueDetails, ")");
|
|
}
|
|
}
|
|
|
|
/* compiled from: PendingFeedback.kt */
|
|
public static final class StreamFeedback extends PendingFeedback {
|
|
private final FeedbackRating feedbackRating;
|
|
private final FeedbackIssue issue;
|
|
private final String issueDetails;
|
|
private final String mediaSessionId;
|
|
private final ModelApplicationStream stream;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StreamFeedback(ModelApplicationStream modelApplicationStream, FeedbackRating feedbackRating, FeedbackIssue feedbackIssue, String str, String str2) {
|
|
super(null);
|
|
m.checkNotNullParameter(modelApplicationStream, "stream");
|
|
m.checkNotNullParameter(feedbackRating, "feedbackRating");
|
|
this.stream = modelApplicationStream;
|
|
this.feedbackRating = feedbackRating;
|
|
this.issue = feedbackIssue;
|
|
this.mediaSessionId = str;
|
|
this.issueDetails = str2;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ StreamFeedback(ModelApplicationStream modelApplicationStream, FeedbackRating feedbackRating, FeedbackIssue feedbackIssue, String str, String str2, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(modelApplicationStream, (i & 2) != 0 ? FeedbackRating.NO_RESPONSE : feedbackRating, (i & 4) != 0 ? null : feedbackIssue, (i & 8) != 0 ? null : str, (i & 16) != 0 ? null : str2);
|
|
}
|
|
|
|
public static /* synthetic */ StreamFeedback copy$default(StreamFeedback streamFeedback, ModelApplicationStream modelApplicationStream, FeedbackRating feedbackRating, FeedbackIssue feedbackIssue, String str, String str2, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
modelApplicationStream = streamFeedback.stream;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
feedbackRating = streamFeedback.feedbackRating;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
feedbackIssue = streamFeedback.issue;
|
|
}
|
|
if ((i & 8) != 0) {
|
|
str = streamFeedback.mediaSessionId;
|
|
}
|
|
if ((i & 16) != 0) {
|
|
str2 = streamFeedback.issueDetails;
|
|
}
|
|
return streamFeedback.copy(modelApplicationStream, feedbackRating, feedbackIssue, str, str2);
|
|
}
|
|
|
|
public final ModelApplicationStream component1() {
|
|
return this.stream;
|
|
}
|
|
|
|
public final FeedbackRating component2() {
|
|
return this.feedbackRating;
|
|
}
|
|
|
|
public final FeedbackIssue component3() {
|
|
return this.issue;
|
|
}
|
|
|
|
public final String component4() {
|
|
return this.mediaSessionId;
|
|
}
|
|
|
|
public final String component5() {
|
|
return this.issueDetails;
|
|
}
|
|
|
|
public final StreamFeedback copy(ModelApplicationStream modelApplicationStream, FeedbackRating feedbackRating, FeedbackIssue feedbackIssue, String str, String str2) {
|
|
m.checkNotNullParameter(modelApplicationStream, "stream");
|
|
m.checkNotNullParameter(feedbackRating, "feedbackRating");
|
|
return new StreamFeedback(modelApplicationStream, feedbackRating, feedbackIssue, str, str2);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof StreamFeedback)) {
|
|
return false;
|
|
}
|
|
StreamFeedback streamFeedback = (StreamFeedback) obj;
|
|
return m.areEqual(this.stream, streamFeedback.stream) && m.areEqual(this.feedbackRating, streamFeedback.feedbackRating) && m.areEqual(this.issue, streamFeedback.issue) && m.areEqual(this.mediaSessionId, streamFeedback.mediaSessionId) && m.areEqual(this.issueDetails, streamFeedback.issueDetails);
|
|
}
|
|
|
|
public final FeedbackRating getFeedbackRating() {
|
|
return this.feedbackRating;
|
|
}
|
|
|
|
public final FeedbackIssue getIssue() {
|
|
return this.issue;
|
|
}
|
|
|
|
public final String getIssueDetails() {
|
|
return this.issueDetails;
|
|
}
|
|
|
|
public final String getMediaSessionId() {
|
|
return this.mediaSessionId;
|
|
}
|
|
|
|
public final ModelApplicationStream getStream() {
|
|
return this.stream;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
ModelApplicationStream modelApplicationStream = this.stream;
|
|
int i = 0;
|
|
int hashCode = (modelApplicationStream != null ? modelApplicationStream.hashCode() : 0) * 31;
|
|
FeedbackRating feedbackRating = this.feedbackRating;
|
|
int hashCode2 = (hashCode + (feedbackRating != null ? feedbackRating.hashCode() : 0)) * 31;
|
|
FeedbackIssue feedbackIssue = this.issue;
|
|
int hashCode3 = (hashCode2 + (feedbackIssue != null ? feedbackIssue.hashCode() : 0)) * 31;
|
|
String str = this.mediaSessionId;
|
|
int hashCode4 = (hashCode3 + (str != null ? str.hashCode() : 0)) * 31;
|
|
String str2 = this.issueDetails;
|
|
if (str2 != null) {
|
|
i = str2.hashCode();
|
|
}
|
|
return hashCode4 + i;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder L = a.L("StreamFeedback(stream=");
|
|
L.append(this.stream);
|
|
L.append(", feedbackRating=");
|
|
L.append(this.feedbackRating);
|
|
L.append(", issue=");
|
|
L.append(this.issue);
|
|
L.append(", mediaSessionId=");
|
|
L.append(this.mediaSessionId);
|
|
L.append(", issueDetails=");
|
|
return a.D(L, this.issueDetails, ")");
|
|
}
|
|
}
|
|
|
|
private PendingFeedback() {
|
|
}
|
|
|
|
public /* synthetic */ PendingFeedback(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
}
|