blob: 370e8f3f844a4035ab2fe2f300d5c2d5786a4602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package moe.ymc.acron.s2c.response;
import com.google.gson.annotations.SerializedName;
import moe.ymc.acron.s2c.Event;
import org.jetbrains.annotations.Nullable;
public record EventError(@SerializedName("id") int id,
@SerializedName("code") int code,
@SerializedName("message") @Nullable String message)
implements Event {
public enum Code {
SERVER_ERROR(500),
BAD_REQUEST(400),
FORBIDDEN(403)
;
public final int value;
Code(int value) {
this.value = value;
}
}
}
|