feat: add minecraft wiki content query
This commit is contained in:
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,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user