feat: add minecraft wiki content query

This commit is contained in:
2024-10-10 11:57:53 +08:00
parent ac7910d20c
commit af6f580583
6 files changed
+112 -25

No files matched your search

@@ -0,0 +1,31 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/10/10
*/
package cn.rtast.fancybot.entity.mc
import com.google.gson.annotations.SerializedName
data class MCWikiPageResponse(
@SerializedName("redirect_target")
val redirectTarget: String?,
val httpCode: Int?,
val id: Int,
val title: String,
val latest: Latest,
val source: String,
val license: License
) {
data class Latest(
val id: Int,
val timestamp: String,
)
data class License(
val url: String,
val title: String,
)
}