summaryrefslogtreecommitdiff
path: root/plugin/src/main/kotlin/moe/nea/archenemy/mojang/MojangVersionMetadata.kt
blob: 4ef3313598732866b4cf0e6c949a2100de765269 (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
30
31
package moe.nea.archenemy.mojang

import kotlinx.serialization.Serializable

@Serializable
data class MojangVersionMetadata(
    val assetIndex: AssetIndex,
    val downloads: Map<String, Download>,
    val libraries: List<Library>
) {
    @Serializable
    data class Library(
        val name: String,
    )
    @Serializable
    data class Download(
        val sha1: String,
        val size: Long,
        val url: String,
    )

    @Serializable
    data class AssetIndex(
        val id: String,
        val sha1: String,
        val size: Long,
        val totalSize: Long,
        val url: String,
    )

}