mirror of https://github.com/hykilpikonna/AquaDX
[-] Ongeki: Remove unused models
parent
685129fede
commit
3c1d3013ce
|
@ -4,7 +4,6 @@ import ext.empty
|
|||
import ext.int
|
||||
import ext.parsing
|
||||
import ext.plus
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameEventItem
|
||||
|
||||
fun OngekiController.ongekiInit() {
|
||||
fun <T> List<T>.staticLst(key: String) = mapOf("length" to size, key to this)
|
||||
|
@ -14,8 +13,9 @@ fun OngekiController.ongekiInit() {
|
|||
|
||||
// Has type, but type is always 1
|
||||
"GetGameEvent".static {
|
||||
gdb.event.findAll().map { GameEventItem(it.id, 1, "2005-01-01 00:00:00.0", "2099-01-01 05:00:00.0") }
|
||||
.staticLst("gameEventList") + mapOf("type" to 1)
|
||||
gdb.event.findAll().map {
|
||||
mapOf("id" to it.id, "type" to 1, "startDate" to "2005-01-01 00:00:00.0", "endDate" to "2099-01-01 05:00:00.0")
|
||||
}.staticLst("gameEventList") + mapOf("type" to 1)
|
||||
}
|
||||
|
||||
"GetGamePoint".static { gdb.point.findAll().staticLst("gamePointList") }
|
||||
|
|
|
@ -3,7 +3,6 @@ package icu.samnyan.aqua.sega.ongeki
|
|||
import ext.invoke
|
||||
import ext.mapApply
|
||||
import ext.minus
|
||||
import icu.samnyan.aqua.sega.ongeki.model.CodeResp
|
||||
import icu.samnyan.aqua.sega.ongeki.model.OngekiUpsertUserAll
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserData
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserGeneralData
|
||||
|
@ -187,6 +186,6 @@ fun OngekiController.initUpsertAll() {
|
|||
id = db.kop.findByUserAndKopIdAndAreaId(u, kopId, areaId)()?.id ?: 0 }) }
|
||||
}
|
||||
|
||||
CodeResp(1, "upsertUserAll")
|
||||
null
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.ongeki.model
|
||||
|
||||
class CodeResp(
|
||||
var returnCode: Int = 0,
|
||||
var apiName: String? = null,
|
||||
)
|
||||
|
||||
class OngekiFumenScore(
|
||||
var musicId: Int = 0,
|
||||
var difficultId: Int = 0,
|
||||
var romVersionCode: String? = null,
|
||||
var score: Int = 0,
|
||||
var platinumScoreMax: Int = 0,
|
||||
var platinumScoreStar: Int = 0,
|
||||
) {
|
||||
override fun toString() = "${musicId}:${difficultId}:${score}:${platinumScoreStar}:${platinumScoreMax}"
|
||||
}
|
||||
|
||||
class GameEventItem(
|
||||
var id: Long = 0,
|
||||
var type: Int = 0,
|
||||
var startDate: String = "",
|
||||
var endDate: String = "",
|
||||
)
|
|
@ -71,3 +71,14 @@ class OngekiUpsertUserAll {
|
|||
var userNewRatingBaseNextBestNewList: List<OngekiFumenScore>? = null
|
||||
var userEventMap: UserEventMap? = null
|
||||
}
|
||||
|
||||
class OngekiFumenScore(
|
||||
var musicId: Int = 0,
|
||||
var difficultId: Int = 0,
|
||||
var romVersionCode: String? = null,
|
||||
var score: Int = 0,
|
||||
var platinumScoreMax: Int = 0,
|
||||
var platinumScoreStar: Int = 0,
|
||||
) {
|
||||
override fun toString() = "${musicId}:${difficultId}:${score}:${platinumScoreStar}:${platinumScoreMax}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue