discord-jadx/app/src/main/java/com/discord/utilities/messagesend/MessageResult.java

129 lines
3.6 KiB
Java

package com.discord.utilities.messagesend;
import com.discord.api.message.Message;
import com.discord.utilities.error.Error;
import d0.z.d.m;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: MessageQueue.kt */
public abstract class MessageResult {
/* compiled from: MessageQueue.kt */
public static final class NetworkFailure extends MessageResult {
public static final NetworkFailure INSTANCE = new NetworkFailure();
private NetworkFailure() {
super(null);
}
}
/* compiled from: MessageQueue.kt */
public static final class NoValidContent extends MessageResult {
public static final NoValidContent INSTANCE = new NoValidContent();
private NoValidContent() {
super(null);
}
}
/* compiled from: MessageQueue.kt */
public static final class RateLimited extends MessageResult {
private final long retryAfterMs;
public RateLimited(long j) {
super(null);
this.retryAfterMs = j;
}
public final long getRetryAfterMs() {
return this.retryAfterMs;
}
}
/* compiled from: MessageQueue.kt */
public static final class Slowmode extends MessageResult {
private final long cooldownMs;
public Slowmode(long j) {
super(null);
this.cooldownMs = j;
}
public final long getCooldownMs() {
return this.cooldownMs;
}
}
/* compiled from: MessageQueue.kt */
public static final class Success extends MessageResult {
private final Message message;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public Success(Message message) {
super(null);
m.checkNotNullParameter(message, "message");
this.message = message;
}
public final Message getMessage() {
return this.message;
}
}
/* compiled from: MessageQueue.kt */
public static final class Timeout extends MessageResult {
public static final Timeout INSTANCE = new Timeout();
private Timeout() {
super(null);
}
}
/* compiled from: MessageQueue.kt */
public static final class UnknownFailure extends MessageResult {
private final Error error;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public UnknownFailure(Error error) {
super(null);
m.checkNotNullParameter(error, "error");
this.error = error;
}
public final Error getError() {
return this.error;
}
}
/* compiled from: MessageQueue.kt */
public static final class UserCancelled extends MessageResult {
public static final UserCancelled INSTANCE = new UserCancelled();
private UserCancelled() {
super(null);
}
}
/* compiled from: MessageQueue.kt */
public static final class ValidationError extends MessageResult {
private final String message;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public ValidationError(String str) {
super(null);
m.checkNotNullParameter(str, "message");
this.message = str;
}
public final String getMessage() {
return this.message;
}
}
private MessageResult() {
}
public /* synthetic */ MessageResult(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}