blob: b3daa48b9fd0a3d10bbe0ae95b2f4acff0f7a7bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
@file:UseSerializers(InstantSerializer::class)
package moe.nea.archenemy.mojang
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import moe.nea.archenemy.util.InstantSerializer
import java.time.Instant
@Serializable
data class MojangVersionManifest(
val latest: Promotions,
val versions: List<VersionReference>
) {
@Serializable
data class VersionReference(
val id: String,
val type: String,
val url: String,
val time: Instant,
val releaseTime: Instant,
)
@Serializable
data class Promotions(
val release: String,
val snapshot: String,
)
}
|