mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 12:02:40 +00:00
[O] Baseless
This commit is contained in:
parent
7e90aec55d
commit
8fc2a74f95
@ -259,6 +259,7 @@ operator fun <E> List<E>.component13(): E = get(12)
|
||||
|
||||
inline operator fun <reified E> List<Any?>.invoke(i: Int) = get(i) as E
|
||||
val empty = emptyList<Any>()
|
||||
val emptyMap = emptyMap<Any, Any>()
|
||||
|
||||
val <F> Pair<F, *>.l get() = component1()
|
||||
val <S> Pair<*, S>.r get() = component2()
|
||||
|
||||
@ -2,11 +2,15 @@ package icu.samnyan.aqua.sega.diva
|
||||
|
||||
import ext.JDict
|
||||
import ext.MutJDict
|
||||
import ext.emptyMap
|
||||
import ext.logger
|
||||
import icu.samnyan.aqua.sega.diva.handler.AttendHandler
|
||||
import icu.samnyan.aqua.sega.diva.handler.GameInitHandler
|
||||
import icu.samnyan.aqua.sega.diva.handler.PingHandler
|
||||
import icu.samnyan.aqua.sega.diva.handler.card.*
|
||||
import icu.samnyan.aqua.sega.diva.handler.card.CardProcedureHandler
|
||||
import icu.samnyan.aqua.sega.diva.handler.card.ChangeNameHandler
|
||||
import icu.samnyan.aqua.sega.diva.handler.card.ChangePasswdHandler
|
||||
import icu.samnyan.aqua.sega.diva.handler.card.RegistrationHandler
|
||||
import icu.samnyan.aqua.sega.diva.handler.databank.*
|
||||
import icu.samnyan.aqua.sega.diva.handler.ingame.*
|
||||
import icu.samnyan.aqua.sega.diva.handler.user.*
|
||||
@ -35,6 +39,9 @@ import org.springframework.web.multipart.MultipartFile
|
||||
import java.net.URLDecoder
|
||||
import java.nio.charset.StandardCharsets
|
||||
|
||||
val DIVA_BAD = mapOf("stat" to "0")
|
||||
val DIVA_OK = emptyMap
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@ -47,16 +54,13 @@ class DivaController(
|
||||
val cardProcedureHandler: CardProcedureHandler,
|
||||
val changeNameHandler: ChangeNameHandler,
|
||||
val changePasswdHandler: ChangePasswdHandler,
|
||||
val initPasswdHandler: InitPasswdHandler,
|
||||
val registrationHandler: RegistrationHandler,
|
||||
val bannerInfoHandler: BannerInfoHandler,
|
||||
val bannerDataHandler: BannerDataHandler,
|
||||
val cmPlyInfoHandler: CmPlyInfoHandler,
|
||||
val contestInfoHandler: ContestInfoHandler,
|
||||
val cstmzItmCtlgHandler: CstmzItmCtlgHandler,
|
||||
val cstmzItmNgMdlListHandler: CstmzItmNgMdlListHandler,
|
||||
val festaInfoHandler: FestaInfoHandler,
|
||||
val ngWordHandler: NgWordHandler,
|
||||
val nvRankingHandler: NvRankingHandler,
|
||||
val psRankingHandler: PsRankingHandler,
|
||||
val pstdHCtrlHandler: PstdHCtrlHandler,
|
||||
@ -104,7 +108,7 @@ class DivaController(
|
||||
"ps_ranking" -> psRankingHandler.handle(mapper.convert(body, PsRankingRequest::class.java))
|
||||
|
||||
"pv_list" -> pvListHandler.handle(mapper.convert(body, BaseRequest::class.java))
|
||||
"ng_word" -> ngWordHandler.handle(mapper.convert(body, BaseRequest::class.java))
|
||||
"ng_word" -> DIVA_OK
|
||||
"rmt_wp_list" -> rmtWpLstHandler.handle(mapper.convert(body, BaseRequest::class.java))
|
||||
"festa_info" -> festaInfoHandler.handle(mapper.convert(body, BaseRequest::class.java))
|
||||
"contest_info" -> contestInfoHandler.handle(mapper.convert(body, BaseRequest::class.java))
|
||||
@ -115,7 +119,7 @@ class DivaController(
|
||||
"banner_info" -> bannerInfoHandler.handle(mapper.convert(body, BaseRequest::class.java))
|
||||
"banner_data" -> bannerDataHandler.handle(mapper.convert(body, BannerDataRequest::class.java))
|
||||
|
||||
"cm_ply_info" -> cmPlyInfoHandler.handle(mapper.convert(body, BaseRequest::class.java))
|
||||
"cm_ply_info" -> emptyMap
|
||||
"qst_inf" -> qstInfHandler.handle(mapper.convert(body, BaseRequest::class.java))
|
||||
"pstd_h_ctrl" -> pstdHCtrlHandler.handle(mapper.convert(body, BaseRequest::class.java))
|
||||
"pstd_item_ng_lst" -> pstdItemNgLstHandler.handle(mapper.convert(body, BaseRequest::class.java))
|
||||
@ -126,7 +130,7 @@ class DivaController(
|
||||
|
||||
"registration" -> registrationHandler.handle(mapper.convert(body, RegistrationRequest::class.java))
|
||||
|
||||
"init_passwd" -> initPasswdHandler.handle(mapper.convert(body, GameInitRequest::class.java))
|
||||
"init_passwd" -> DIVA_BAD
|
||||
|
||||
"change_passwd" -> changePasswdHandler.handle(mapper.convert(body, ChangePasswdRequest::class.java))
|
||||
|
||||
@ -150,9 +154,10 @@ class DivaController(
|
||||
"stage_result" -> stageResultHandler.handle(mapper.convert(body, StageResultRequest::class.java))
|
||||
|
||||
"store_ss" -> gameInitHandler.handle(mapper.convert(body, GameInitRequest::class.java))
|
||||
else -> "stat=0"
|
||||
else -> DIVA_BAD
|
||||
}
|
||||
val resp = respObj as? String ?: buildResultMap(mapper.toMap(respObj))
|
||||
val resp = respObj as? String
|
||||
?: buildResultMap(mapOf("cmd" to command, "req_id" to body["req_id"], "stat" to "ok") + mapper.toMap(respObj))
|
||||
logger.info("Response: {}", resp)
|
||||
return resp
|
||||
}
|
||||
|
||||
@ -15,9 +15,6 @@ import java.time.LocalDateTime
|
||||
@Component
|
||||
class GameInitHandler {
|
||||
fun handle(request: BaseRequest) = GameInitResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
"0,0",
|
||||
"FFFF"
|
||||
)
|
||||
@ -26,9 +23,6 @@ class GameInitHandler {
|
||||
@Component
|
||||
class AttendHandler {
|
||||
fun handle(request: BaseRequest) = AttendResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
EtcParameter().toInternal(),
|
||||
DispersalParameter().toInternal(),
|
||||
GameBalanceParameter().toInternal(),
|
||||
@ -43,9 +37,6 @@ class PingHandler(val rp: PropertyEntryRepository) {
|
||||
val warning: PropertyEntry = rp.findByPropertyKey("diva_warning") ?: PropertyEntry("diva_warning", "xxx")
|
||||
|
||||
return PingResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
news.propertyValue,
|
||||
warning.propertyValue
|
||||
)
|
||||
|
||||
@ -19,9 +19,6 @@ class CardProcedureHandler(val db: DivaRepos) {
|
||||
val profileOptional = db.profile.findByPdId(request.aime_id)
|
||||
if (profileOptional.isEmpty) {
|
||||
return CardProcedureResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.FAILED
|
||||
)
|
||||
} else {
|
||||
@ -34,9 +31,6 @@ class CardProcedureHandler(val db: DivaRepos) {
|
||||
db.gameSession.delete(session)
|
||||
}
|
||||
return CardProcedureResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.FAILED
|
||||
)
|
||||
} else {
|
||||
@ -58,9 +52,6 @@ class CardProcedureHandler(val db: DivaRepos) {
|
||||
|
||||
db.gameSession.save(session)
|
||||
return CardProcedureResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.SUCCESS,
|
||||
100,
|
||||
session.acceptId,
|
||||
|
||||
@ -19,9 +19,6 @@ class ChangeNameHandler(val db: DivaRepos) {
|
||||
db.gameSession.delete(session)
|
||||
|
||||
return ChangeNameResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.SUCCESS,
|
||||
session.acceptId,
|
||||
profile.pdId,
|
||||
|
||||
@ -21,9 +21,6 @@ class ChangePasswdHandler(val db: DivaRepos) {
|
||||
db.gameSession.delete(session)
|
||||
|
||||
return ChangePasswdResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.SUCCESS,
|
||||
session.acceptId,
|
||||
profile.pdId
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
package icu.samnyan.aqua.sega.diva.handler.card
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse
|
||||
import org.springframework.stereotype.Component
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
class InitPasswdHandler {
|
||||
fun handle(request: BaseRequest) = BaseResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"0"
|
||||
)
|
||||
}
|
||||
@ -14,18 +14,12 @@ class RegistrationHandler(val service: PlayerProfileService) {
|
||||
fun handle(request: RegistrationRequest) =
|
||||
if (service.findByPdId(request.aime_id).isPresent) {
|
||||
RegistrationResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.FAILED,
|
||||
-1
|
||||
)
|
||||
} else {
|
||||
val profile = service.register(request)
|
||||
RegistrationResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.SUCCESS,
|
||||
profile.pdId
|
||||
)
|
||||
|
||||
@ -11,9 +11,6 @@ import java.time.LocalDateTime
|
||||
@Component
|
||||
class BannerDataHandler {
|
||||
fun handle(request: BannerDataRequest) = BannerDataResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
LocalDateTime.now(),
|
||||
"***",
|
||||
"***",
|
||||
|
||||
@ -10,9 +10,6 @@ import org.springframework.stereotype.Component
|
||||
@Component
|
||||
class BannerInfoHandler {
|
||||
fun handle(request: BaseRequest) = BannerInfoResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
package icu.samnyan.aqua.sega.diva.handler.databank
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse
|
||||
import org.springframework.stereotype.Component
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
class CmPlyInfoHandler {
|
||||
fun handle(request: BaseRequest) = BaseResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok"
|
||||
)
|
||||
}
|
||||
@ -26,9 +26,6 @@ class ContestInfoHandler(val db: DivaRepos) {
|
||||
ci_str = sb.toString()
|
||||
}
|
||||
return ContestInfoResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
LocalDateTime.now(),
|
||||
ci_str
|
||||
)
|
||||
|
||||
@ -17,9 +17,6 @@ class CstmzItmCtlgHandler(private val customizeRepository: DivaCustomizeReposito
|
||||
val customizeList = customizeRepository.findAll()
|
||||
|
||||
return CstmzItmCtlgResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
DivaDateTimeUtil.getString(LocalDateTime.now()),
|
||||
encode(customizeList.map { it.toInternal() }.joinToString(",") { encode(it) })
|
||||
)
|
||||
|
||||
@ -12,9 +12,6 @@ import java.time.LocalDateTime
|
||||
@Component
|
||||
class CstmzItmNgMdlListHandler {
|
||||
fun handle(request: BaseRequest) = CstmzItmNgMdlListResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
DivaDateTimeUtil.getString(LocalDateTime.now()),
|
||||
"***"
|
||||
)
|
||||
|
||||
@ -16,9 +16,6 @@ class FestaInfoHandler(private val festaRepository: FestaRepository) {
|
||||
val collection = FestaCollection(festaList)
|
||||
|
||||
return FestaInfoResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
collection.ids,
|
||||
collection.names,
|
||||
collection.kinds,
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
package icu.samnyan.aqua.sega.diva.handler.databank
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse
|
||||
import org.springframework.stereotype.Component
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
class NgWordHandler {
|
||||
fun handle(request: BaseRequest) = BaseResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok"
|
||||
)
|
||||
}
|
||||
@ -10,9 +10,6 @@ import org.springframework.stereotype.Component
|
||||
@Component
|
||||
class NvRankingHandler {
|
||||
fun handle(request: BaseRequest) = NvRankingResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
|
||||
@ -78,9 +78,6 @@ class PsRankingHandler(val db: DivaRepos) {
|
||||
}
|
||||
|
||||
return PsRankingResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
LocalDateTime.now(),
|
||||
LocalDateTime.now(),
|
||||
request.rnk_ps_idx,
|
||||
|
||||
@ -12,9 +12,6 @@ import java.time.LocalDateTime
|
||||
@Component
|
||||
class PstdHCtrlHandler {
|
||||
fun handle(request: BaseRequest) = PstdHCtrlResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
DivaDateTimeUtil.getString(LocalDateTime.now()),
|
||||
"***,***"
|
||||
)
|
||||
|
||||
@ -12,9 +12,6 @@ import java.time.LocalDateTime
|
||||
@Component
|
||||
class PstdItemNgLstHandler {
|
||||
fun handle(request: BaseRequest) = PstdItemNgLstResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
DivaDateTimeUtil.getString(LocalDateTime.now()),
|
||||
"***",
|
||||
"***"
|
||||
|
||||
@ -12,9 +12,6 @@ import java.time.LocalDateTime
|
||||
@Component
|
||||
class PvDefChrLstHandler {
|
||||
fun handle(request: BaseRequest) = PvDefChrLstResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
DivaDateTimeUtil.getString(LocalDateTime.now()),
|
||||
"***"
|
||||
)
|
||||
|
||||
@ -33,9 +33,6 @@ class PvListHandler(val db: DivaRepos) {
|
||||
sb.append("%2A%2A%2A")
|
||||
|
||||
return PvListResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
LocalDateTime.now(),
|
||||
sb.toString()
|
||||
)
|
||||
|
||||
@ -12,9 +12,6 @@ import java.time.LocalDateTime
|
||||
@Component
|
||||
class PvNgMdlLstHandler {
|
||||
fun handle(request: BaseRequest) = PvNgMdlLstResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
DivaDateTimeUtil.getString(LocalDateTime.now()),
|
||||
"***"
|
||||
)
|
||||
|
||||
@ -12,9 +12,6 @@ import java.time.LocalDateTime
|
||||
@Component
|
||||
class QstInfHandler {
|
||||
fun handle(request: BaseRequest) = QstInfResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
DivaDateTimeUtil.getString(LocalDateTime.now()),
|
||||
null,
|
||||
null
|
||||
|
||||
@ -12,9 +12,6 @@ import java.time.LocalDateTime
|
||||
@Component
|
||||
class RmtWpLstHandler {
|
||||
fun handle(request: BaseRequest) = RmtWpLstResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
DivaDateTimeUtil.getString(LocalDateTime.now()),
|
||||
"***"
|
||||
)
|
||||
|
||||
@ -16,9 +16,6 @@ class ShopCatalogHandler(private val moduleRepository: DivaModuleRepository) {
|
||||
val moduleList = moduleRepository.findAll()
|
||||
|
||||
return ShopCatalogResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
LocalDateTime.now(),
|
||||
encode(moduleList.map { it.toInternal() }.joinToString(",") { encode(it) })
|
||||
)
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package icu.samnyan.aqua.sega.diva.handler.ingame
|
||||
|
||||
import ext.invoke
|
||||
import icu.samnyan.aqua.sega.diva.DivaRepos
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Result
|
||||
import icu.samnyan.aqua.sega.diva.model.request.ingame.BuyCstmzItmRequest
|
||||
@ -14,32 +15,20 @@ class BuyCstmzItmHandler(val db: DivaRepos) {
|
||||
fun handle(request: BuyCstmzItmRequest): Any {
|
||||
val (profile, session) = db.session(request.pd_id)
|
||||
|
||||
val customizeOptional = db.g.customize.findById(request.cstmz_itm_id)
|
||||
val customize = db.g.customize.findById(request.cstmz_itm_id)() ?: return BuyCstmzItmResponse(
|
||||
Result.FAILED
|
||||
)
|
||||
|
||||
if (customizeOptional.isEmpty) {
|
||||
if (session.vp < customize.price) {
|
||||
return BuyCstmzItmResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.FAILED
|
||||
)
|
||||
}
|
||||
if (session.vp < customizeOptional.get().price) {
|
||||
return BuyCstmzItmResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.FAILED
|
||||
)
|
||||
}
|
||||
db.s.customize.buy(profile, request.cstmz_itm_id)
|
||||
session.vp -= customizeOptional.get().price
|
||||
session.vp -= customize.price
|
||||
db.gameSession.save(session)
|
||||
|
||||
return BuyCstmzItmResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.SUCCESS,
|
||||
request.cstmz_itm_id,
|
||||
db.s.customize.getModuleHaveString(profile),
|
||||
|
||||
@ -17,17 +17,11 @@ class BuyModuleHandler(val db: DivaRepos) {
|
||||
|
||||
if (moduleOptional.isEmpty) {
|
||||
return BuyModuleResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.FAILED
|
||||
)
|
||||
}
|
||||
if (session.vp < moduleOptional.get().price) {
|
||||
return BuyModuleResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.FAILED
|
||||
)
|
||||
}
|
||||
@ -36,9 +30,6 @@ class BuyModuleHandler(val db: DivaRepos) {
|
||||
db.gameSession.save(session)
|
||||
|
||||
return BuyModuleResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.SUCCESS,
|
||||
request.mdl_id,
|
||||
db.s.module.getModuleHaveString(profile),
|
||||
|
||||
@ -91,9 +91,6 @@ class GetPvPdHandler(val db: DivaRepos) {
|
||||
|
||||
|
||||
return GetPvPdResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
pd.toString(),
|
||||
false,
|
||||
DivaDateTimeUtil.getString(LocalDateTime.now())
|
||||
|
||||
@ -36,9 +36,6 @@ class ShopExitHandler(val db: DivaRepos) {
|
||||
db.profile.save(profile)
|
||||
db.pvCustomize.save(customize)
|
||||
return ShopExitResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
Result.SUCCESS
|
||||
)
|
||||
}
|
||||
|
||||
@ -192,9 +192,6 @@ class StageResultHandler(val db: DivaRepos, val calc: DivaCalculator) {
|
||||
|
||||
|
||||
return StageResultResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
ChallengeKind.UNDEFINED.value,
|
||||
session.oldLevelNumber,
|
||||
session.oldLevelExp,
|
||||
@ -241,11 +238,7 @@ class StageResultHandler(val db: DivaRepos, val calc: DivaCalculator) {
|
||||
"-1,-1,-1,-1,-1"
|
||||
)
|
||||
} else {
|
||||
return StageResultResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok"
|
||||
)
|
||||
return StageResultResponse()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
package icu.samnyan.aqua.sega.diva.handler.ingame
|
||||
|
||||
import ext.emptyMap
|
||||
import icu.samnyan.aqua.sega.diva.DivaRepos
|
||||
import icu.samnyan.aqua.sega.diva.model.request.ingame.StageStartRequest
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse
|
||||
import org.springframework.stereotype.Component
|
||||
|
||||
/**
|
||||
@ -32,10 +32,6 @@ class StageStartHandler(val db: DivaRepos) {
|
||||
db.gameSession.save(session)
|
||||
}
|
||||
|
||||
return BaseResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok"
|
||||
)
|
||||
return emptyMap
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,9 +2,10 @@ package icu.samnyan.aqua.sega.diva.handler.ingame
|
||||
|
||||
import ext.csv
|
||||
import ext.logger
|
||||
import icu.samnyan.aqua.sega.diva.DIVA_BAD
|
||||
import icu.samnyan.aqua.sega.diva.DIVA_OK
|
||||
import icu.samnyan.aqua.sega.diva.DivaRepos
|
||||
import icu.samnyan.aqua.sega.diva.model.request.ingame.StoreSsRequest
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse
|
||||
import icu.samnyan.aqua.sega.diva.model.userdata.PlayerScreenShot
|
||||
import org.springframework.stereotype.Component
|
||||
import org.springframework.web.multipart.MultipartFile
|
||||
@ -36,19 +37,10 @@ class StoreSsHandler(val db: DivaRepos) {
|
||||
)
|
||||
db.screenShot.save(ss)
|
||||
|
||||
return BaseResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok"
|
||||
)
|
||||
return DIVA_OK
|
||||
} catch (e: IOException) {
|
||||
logger.error("Screenshot save failed", e)
|
||||
|
||||
return BaseResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"0"
|
||||
)
|
||||
return DIVA_BAD
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package icu.samnyan.aqua.sega.diva.handler.user
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.DIVA_OK
|
||||
import icu.samnyan.aqua.sega.diva.DivaRepos
|
||||
import icu.samnyan.aqua.sega.diva.model.common.ContestBorder
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Difficulty
|
||||
@ -7,7 +8,6 @@ import icu.samnyan.aqua.sega.diva.model.common.Edition
|
||||
import icu.samnyan.aqua.sega.diva.model.common.SortMode
|
||||
import icu.samnyan.aqua.sega.diva.model.gamedata.Contest
|
||||
import icu.samnyan.aqua.sega.diva.model.request.ingame.StageResultRequest
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse
|
||||
import icu.samnyan.aqua.sega.diva.model.userdata.PlayerContest
|
||||
import icu.samnyan.aqua.sega.diva.util.DivaStringUtils
|
||||
import org.springframework.stereotype.Component
|
||||
@ -71,11 +71,7 @@ class EndHandler(val db: DivaRepos) {
|
||||
db.profile.save(profile)
|
||||
db.gameSession.delete(session)
|
||||
|
||||
return BaseResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok"
|
||||
)
|
||||
return DIVA_OK
|
||||
}
|
||||
|
||||
private fun getContestRank(contest: Contest, value: Int): ContestBorder {
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
package icu.samnyan.aqua.sega.diva.handler.user
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.DIVA_OK
|
||||
import icu.samnyan.aqua.sega.diva.DivaRepos
|
||||
import icu.samnyan.aqua.sega.diva.model.request.user.PdUnlockRequest
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse
|
||||
import org.springframework.stereotype.Component
|
||||
|
||||
@Component
|
||||
@ -12,10 +12,6 @@ class PdUnlockHandler(val db: DivaRepos) {
|
||||
|
||||
db.gameSession.delete(session)
|
||||
|
||||
return BaseResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok"
|
||||
)
|
||||
return DIVA_OK
|
||||
}
|
||||
}
|
||||
|
||||
@ -21,9 +21,6 @@ class PreStartHandler(val db: DivaRepos) {
|
||||
val profileOptional = db.profile.findByPdId(request.aime_id)
|
||||
if (profileOptional.isEmpty) {
|
||||
return PreStartResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
PreStartResult.NEW_REGISTRATION
|
||||
)
|
||||
} else {
|
||||
@ -36,9 +33,6 @@ class PreStartHandler(val db: DivaRepos) {
|
||||
.isBefore(LocalDateTime.now().minusMinutes(5)) && session.startMode == StartMode.START
|
||||
) {
|
||||
return PreStartResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
PreStartResult.ALREADY_PLAYING
|
||||
)
|
||||
} else {
|
||||
@ -65,9 +59,6 @@ class PreStartHandler(val db: DivaRepos) {
|
||||
db.gameSession.save(session)
|
||||
|
||||
return PreStartResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
PreStartResult.SUCCESS,
|
||||
session.acceptId,
|
||||
profile.pdId,
|
||||
|
||||
@ -14,9 +14,6 @@ class SpendCreditHandler(val db: DivaRepos) {
|
||||
val profile = db.profile(request.pd_id)
|
||||
|
||||
return SpendCreditResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
"-1,-1,x,-1,-1,x,x,-1,x,-1,-1,x,-1,-1,x,x,-1,x,-1,-1,x,-1,-1,x,x,-1,x,-1,-1,x,-1,-1,x,x,-1,x,-1,-1,x,-1,-1,x,x,-1,x,-1,-1,x,-1,-1,x,x,-1,x",
|
||||
0,
|
||||
profile.vocaloidPoints,
|
||||
|
||||
@ -37,9 +37,6 @@ class StartHandler(val db: DivaRepos) {
|
||||
border = border or ((if (profile.isShowRivalBorder) 1 else 0) shl 2)
|
||||
|
||||
return StartResponse(
|
||||
request.cmd,
|
||||
request.req_id,
|
||||
"ok",
|
||||
profile.pdId,
|
||||
Result.SUCCESS,
|
||||
session.acceptId,
|
||||
|
||||
@ -1,19 +0,0 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class BaseResponse {
|
||||
private String cmd;
|
||||
private String req_id;
|
||||
private String stat;
|
||||
}
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.boot;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -11,14 +10,13 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class AttendResponse extends BaseResponse {
|
||||
public class AttendResponse {
|
||||
private String atnd_prm1;
|
||||
private String atnd_prm2;
|
||||
private String atnd_prm3;
|
||||
private LocalDateTime atnd_lut;
|
||||
|
||||
public AttendResponse(String cmd, String req_id, String stat, String atnd_prm1, String atnd_prm2, String atnd_prm3, LocalDateTime atnd_lut) {
|
||||
super(cmd, req_id, stat);
|
||||
public AttendResponse(String atnd_prm1, String atnd_prm2, String atnd_prm3, LocalDateTime atnd_lut) {
|
||||
this.atnd_prm1 = atnd_prm1;
|
||||
this.atnd_prm2 = atnd_prm2;
|
||||
this.atnd_prm3 = atnd_prm3;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.boot;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,12 +8,11 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class GameInitResponse extends BaseResponse {
|
||||
public class GameInitResponse {
|
||||
private String db_close;
|
||||
private String retry_time;
|
||||
|
||||
public GameInitResponse(String cmd, String req_id, String stat, String db_close, String retry_time) {
|
||||
super(cmd, req_id, stat);
|
||||
public GameInitResponse(String db_close, String retry_time) {
|
||||
this.db_close = db_close;
|
||||
this.retry_time = retry_time;
|
||||
}
|
||||
|
||||
@ -2,7 +2,6 @@ package icu.samnyan.aqua.sega.diva.model.response.card;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.common.PassStat;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Result;
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -11,7 +10,7 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class CardProcedureResponse extends BaseResponse {
|
||||
public class CardProcedureResponse {
|
||||
private Result cd_adm_result;
|
||||
private int chg_name_price = 100;
|
||||
private int accept_idx;
|
||||
@ -25,8 +24,7 @@ public class CardProcedureResponse extends BaseResponse {
|
||||
private Integer vcld_pts;
|
||||
private PassStat passwd_stat;
|
||||
|
||||
public CardProcedureResponse(String cmd, String req_id, String stat, Result cd_adm_result, int chg_name_price, int accept_idx, long pd_id, String player_name, Integer lv_num, Integer lv_pnt, String lv_str, Integer lv_efct_id, Integer lv_plt_id, Integer vcld_pts, PassStat passwd_stat) {
|
||||
super(cmd, req_id, stat);
|
||||
public CardProcedureResponse(Result cd_adm_result, int chg_name_price, int accept_idx, long pd_id, String player_name, Integer lv_num, Integer lv_pnt, String lv_str, Integer lv_efct_id, Integer lv_plt_id, Integer vcld_pts, PassStat passwd_stat) {
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
this.chg_name_price = chg_name_price;
|
||||
this.accept_idx = accept_idx;
|
||||
@ -41,8 +39,7 @@ public class CardProcedureResponse extends BaseResponse {
|
||||
this.passwd_stat = passwd_stat;
|
||||
}
|
||||
|
||||
public CardProcedureResponse(String cmd, String req_id, String stat, Result cd_adm_result) {
|
||||
super(cmd, req_id, stat);
|
||||
public CardProcedureResponse(Result cd_adm_result) {
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.card;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Result;
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -10,22 +9,20 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ChangeNameResponse extends BaseResponse {
|
||||
public class ChangeNameResponse {
|
||||
private Result cd_adm_result;
|
||||
private int accept_idx;
|
||||
private long pd_id;
|
||||
private String player_name;
|
||||
|
||||
public ChangeNameResponse(String cmd, String req_id, String stat, Result cd_adm_result, int accept_idx, long pd_id, String player_name) {
|
||||
super(cmd, req_id, stat);
|
||||
public ChangeNameResponse(Result cd_adm_result, int accept_idx, long pd_id, String player_name) {
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
this.accept_idx = accept_idx;
|
||||
this.pd_id = pd_id;
|
||||
this.player_name = player_name;
|
||||
}
|
||||
|
||||
public ChangeNameResponse(String cmd, String req_id, String stat, Result cd_adm_result) {
|
||||
super(cmd, req_id, stat);
|
||||
public ChangeNameResponse(Result cd_adm_result) {
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.card;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Result;
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -10,20 +9,18 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ChangePasswdResponse extends BaseResponse {
|
||||
public class ChangePasswdResponse {
|
||||
private Result cd_adm_result;
|
||||
private int accept_idx;
|
||||
private long pd_id;
|
||||
|
||||
public ChangePasswdResponse(String cmd, String req_id, String stat, Result cd_adm_result, int accept_idx, long pd_id) {
|
||||
super(cmd, req_id, stat);
|
||||
public ChangePasswdResponse(Result cd_adm_result, int accept_idx, long pd_id) {
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
this.accept_idx = accept_idx;
|
||||
this.pd_id = pd_id;
|
||||
}
|
||||
|
||||
public ChangePasswdResponse(String cmd, String req_id, String stat, Result cd_adm_result) {
|
||||
super(cmd, req_id, stat);
|
||||
public ChangePasswdResponse(Result cd_adm_result) {
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.card;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Result;
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -10,12 +9,11 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class RegistrationResponse extends BaseResponse {
|
||||
public class RegistrationResponse {
|
||||
private Result cd_adm_result;
|
||||
private long pd_id;
|
||||
|
||||
public RegistrationResponse(String cmd, String req_id, String stat, Result cd_adm_result, long pd_id) {
|
||||
super(cmd, req_id, stat);
|
||||
public RegistrationResponse(Result cd_adm_result, long pd_id) {
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
this.pd_id = pd_id;
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -11,14 +10,13 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BannerDataResponse extends BaseResponse {
|
||||
public class BannerDataResponse {
|
||||
private LocalDateTime bd_ut;
|
||||
private String bd_ti;
|
||||
private String bd_hs;
|
||||
private int bd_id;
|
||||
|
||||
public BannerDataResponse(String cmd, String req_id, String stat, LocalDateTime bd_ut, String bd_ti, String bd_hs, int bd_id) {
|
||||
super(cmd, req_id, stat);
|
||||
public BannerDataResponse(LocalDateTime bd_ut, String bd_ti, String bd_hs, int bd_id) {
|
||||
this.bd_ut = bd_ut;
|
||||
this.bd_ti = bd_ti;
|
||||
this.bd_hs = bd_hs;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,7 +8,7 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BannerInfoResponse extends BaseResponse {
|
||||
public class BannerInfoResponse {
|
||||
private String bi_lut;
|
||||
// Array of 10
|
||||
private String bi_id;
|
||||
@ -17,8 +16,7 @@ public class BannerInfoResponse extends BaseResponse {
|
||||
private String bi_et;
|
||||
private String bi_ut;
|
||||
|
||||
public BannerInfoResponse(String cmd, String req_id, String stat, String bi_lut, String bi_id, String bi_st, String bi_et, String bi_ut) {
|
||||
super(cmd, req_id, stat);
|
||||
public BannerInfoResponse(String bi_lut, String bi_id, String bi_st, String bi_et, String bi_ut) {
|
||||
this.bi_lut = bi_lut;
|
||||
this.bi_id = bi_id;
|
||||
this.bi_st = bi_st;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -11,12 +10,11 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ContestInfoResponse extends BaseResponse {
|
||||
public class ContestInfoResponse {
|
||||
private LocalDateTime ci_lut;
|
||||
private String ci_str;
|
||||
|
||||
public ContestInfoResponse(String cmd, String req_id, String stat, LocalDateTime ci_lut, String ci_str) {
|
||||
super(cmd, req_id, stat);
|
||||
public ContestInfoResponse(LocalDateTime ci_lut, String ci_str) {
|
||||
this.ci_lut = ci_lut;
|
||||
this.ci_str = ci_str;
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,12 +8,11 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class CstmzItmCtlgResponse extends BaseResponse {
|
||||
public class CstmzItmCtlgResponse {
|
||||
private String cstmz_itm_ctlg_lut;
|
||||
private String cstmz_itm_ctlg;
|
||||
|
||||
public CstmzItmCtlgResponse(String cmd, String req_id, String stat, String cstmz_itm_ctlg_lut, String cstmz_itm_ctlg) {
|
||||
super(cmd, req_id, stat);
|
||||
public CstmzItmCtlgResponse(String cstmz_itm_ctlg_lut, String cstmz_itm_ctlg) {
|
||||
this.cstmz_itm_ctlg_lut = cstmz_itm_ctlg_lut;
|
||||
this.cstmz_itm_ctlg = cstmz_itm_ctlg;
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,12 +8,11 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class CstmzItmNgMdlListResponse extends BaseResponse {
|
||||
public class CstmzItmNgMdlListResponse {
|
||||
private String cinml_lut;
|
||||
private String cinm_lst;
|
||||
|
||||
public CstmzItmNgMdlListResponse(String cmd, String req_id, String stat, String cinml_lut, String cinm_lst) {
|
||||
super(cmd, req_id, stat);
|
||||
public CstmzItmNgMdlListResponse(String cinml_lut, String cinm_lst) {
|
||||
this.cinml_lut = cinml_lut;
|
||||
this.cinm_lst = cinm_lst;
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,7 +8,7 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class FestaInfoResponse extends BaseResponse {
|
||||
public class FestaInfoResponse {
|
||||
private String fi_id;
|
||||
private String fi_name;
|
||||
private String fi_kind;
|
||||
@ -22,8 +21,7 @@ public class FestaInfoResponse extends BaseResponse {
|
||||
private String fi_et;
|
||||
private String fi_lut;
|
||||
|
||||
public FestaInfoResponse(String cmd, String req_id, String stat, String fi_id, String fi_name, String fi_kind, String fi_difficulty, String fi_pv_id_lst, String fi_attr, String fi_add_vp, String fi_mul_vp, String fi_st, String fi_et, String fi_lut) {
|
||||
super(cmd, req_id, stat);
|
||||
public FestaInfoResponse(String fi_id, String fi_name, String fi_kind, String fi_difficulty, String fi_pv_id_lst, String fi_attr, String fi_add_vp, String fi_mul_vp, String fi_st, String fi_et, String fi_lut) {
|
||||
this.fi_id = fi_id;
|
||||
this.fi_name = fi_name;
|
||||
this.fi_kind = fi_kind;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -11,14 +10,13 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class NvRankingResponse extends BaseResponse {
|
||||
public class NvRankingResponse {
|
||||
private String rnk_nv_tag_str;
|
||||
private LocalDateTime rnk_nv_ts;
|
||||
private String rnk_nv_data;
|
||||
private LocalDateTime rnk_nv_lut;
|
||||
|
||||
public NvRankingResponse(String cmd, String req_id, String stat, String rnk_nv_tag_str, LocalDateTime rnk_nv_ts, String rnk_nv_data, LocalDateTime rnk_nv_lut) {
|
||||
super(cmd, req_id, stat);
|
||||
public NvRankingResponse(String rnk_nv_tag_str, LocalDateTime rnk_nv_ts, String rnk_nv_data, LocalDateTime rnk_nv_lut) {
|
||||
this.rnk_nv_tag_str = rnk_nv_tag_str;
|
||||
this.rnk_nv_ts = rnk_nv_ts;
|
||||
this.rnk_nv_data = rnk_nv_data;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -11,7 +10,7 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PsRankingResponse extends BaseResponse {
|
||||
public class PsRankingResponse {
|
||||
private LocalDateTime rnk_ps_lut;
|
||||
private LocalDateTime rnk_ps_ts;
|
||||
private int rnk_ps_dffclty;
|
||||
@ -26,8 +25,7 @@ public class PsRankingResponse extends BaseResponse {
|
||||
private String rnk_ps_nm2;
|
||||
private String rnk_ps_nm3;
|
||||
|
||||
public PsRankingResponse(String cmd, String req_id, String stat, LocalDateTime rnk_ps_lut, LocalDateTime rnk_ps_ts, int rnk_ps_dffclty, String rnk_ps_pv_id, String rnk_ps_edtn1, String rnk_ps_edtn2, String rnk_ps_edtn3, String rnk_ps_scr1, String rnk_ps_scr2, String rnk_ps_scr3, String rnk_ps_nm1, String rnk_ps_nm2, String rnk_ps_nm3) {
|
||||
super(cmd, req_id, stat);
|
||||
public PsRankingResponse(LocalDateTime rnk_ps_lut, LocalDateTime rnk_ps_ts, int rnk_ps_dffclty, String rnk_ps_pv_id, String rnk_ps_edtn1, String rnk_ps_edtn2, String rnk_ps_edtn3, String rnk_ps_scr1, String rnk_ps_scr2, String rnk_ps_scr3, String rnk_ps_nm1, String rnk_ps_nm2, String rnk_ps_nm3) {
|
||||
this.rnk_ps_lut = rnk_ps_lut;
|
||||
this.rnk_ps_ts = rnk_ps_ts;
|
||||
this.rnk_ps_dffclty = rnk_ps_dffclty;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,12 +8,11 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PstdHCtrlResponse extends BaseResponse {
|
||||
public class PstdHCtrlResponse {
|
||||
private String p_std_hc_lut;
|
||||
private String p_std_hc_str;
|
||||
|
||||
public PstdHCtrlResponse(String cmd, String req_id, String stat, String p_std_hc_lut, String p_std_hc_str) {
|
||||
super(cmd, req_id, stat);
|
||||
public PstdHCtrlResponse(String p_std_hc_lut, String p_std_hc_str) {
|
||||
this.p_std_hc_lut = p_std_hc_lut;
|
||||
this.p_std_hc_str = p_std_hc_str;
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,13 +8,12 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PstdItemNgLstResponse extends BaseResponse {
|
||||
public class PstdItemNgLstResponse {
|
||||
private String p_std_i_n_lut;
|
||||
private String p_std_i_ie_n_lst;
|
||||
private String p_std_i_se_n_lst;
|
||||
|
||||
public PstdItemNgLstResponse(String cmd, String req_id, String stat, String p_std_i_n_lut, String p_std_i_ie_n_lst, String p_std_i_se_n_lst) {
|
||||
super(cmd, req_id, stat);
|
||||
public PstdItemNgLstResponse(String p_std_i_n_lut, String p_std_i_ie_n_lst, String p_std_i_se_n_lst) {
|
||||
this.p_std_i_n_lut = p_std_i_n_lut;
|
||||
this.p_std_i_ie_n_lst = p_std_i_ie_n_lst;
|
||||
this.p_std_i_se_n_lst = p_std_i_se_n_lst;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,12 +8,11 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PvDefChrLstResponse extends BaseResponse {
|
||||
public class PvDefChrLstResponse {
|
||||
private String pdcl_lut;
|
||||
private String pdc_lst;
|
||||
|
||||
public PvDefChrLstResponse(String cmd, String req_id, String stat, String pdcl_lut, String pdc_lst) {
|
||||
super(cmd, req_id, stat);
|
||||
public PvDefChrLstResponse(String pdcl_lut, String pdc_lst) {
|
||||
this.pdcl_lut = pdcl_lut;
|
||||
this.pdc_lst = pdc_lst;
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -11,12 +10,11 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PvListResponse extends BaseResponse {
|
||||
public class PvListResponse {
|
||||
private LocalDateTime pvl_lut;
|
||||
private String pv_lst;
|
||||
|
||||
public PvListResponse(String cmd, String req_id, String stat, LocalDateTime pvl_lut, String pv_lst) {
|
||||
super(cmd, req_id, stat);
|
||||
public PvListResponse(LocalDateTime pvl_lut, String pv_lst) {
|
||||
this.pvl_lut = pvl_lut;
|
||||
this.pv_lst = pv_lst;
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,12 +8,11 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PvNgMdlLstResponse extends BaseResponse {
|
||||
public class PvNgMdlLstResponse {
|
||||
private String pnml_lut;
|
||||
private String pnm_lst;
|
||||
|
||||
public PvNgMdlLstResponse(String cmd, String req_id, String stat, String pnml_lut, String pnm_lst) {
|
||||
super(cmd, req_id, stat);
|
||||
public PvNgMdlLstResponse(String pnml_lut, String pnm_lst) {
|
||||
this.pnml_lut = pnml_lut;
|
||||
this.pnm_lst = pnm_lst;
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,13 +8,12 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class QstInfResponse extends BaseResponse {
|
||||
public class QstInfResponse {
|
||||
private String qi_lut;
|
||||
private String qhi_str;
|
||||
private String qrai_str;
|
||||
|
||||
public QstInfResponse(String cmd, String req_id, String stat, String qi_lut, String qhi_str, String qrai_str) {
|
||||
super(cmd, req_id, stat);
|
||||
public QstInfResponse(String qi_lut, String qhi_str, String qrai_str) {
|
||||
this.qi_lut = qi_lut;
|
||||
this.qhi_str = qhi_str;
|
||||
this.qrai_str = qrai_str;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,12 +8,11 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class RmtWpLstResponse extends BaseResponse {
|
||||
public class RmtWpLstResponse {
|
||||
private String rwl_lut;
|
||||
private String rw_lst;
|
||||
|
||||
public RmtWpLstResponse(String cmd, String req_id, String stat, String rwl_lut, String rw_lst) {
|
||||
super(cmd, req_id, stat);
|
||||
public RmtWpLstResponse(String rwl_lut, String rw_lst) {
|
||||
this.rwl_lut = rwl_lut;
|
||||
this.rw_lst = rw_lst;
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -11,12 +10,11 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ShopCatalogResponse extends BaseResponse {
|
||||
public class ShopCatalogResponse {
|
||||
private LocalDateTime shp_ctlg_lut;
|
||||
private String shp_ctlg;
|
||||
|
||||
public ShopCatalogResponse(String cmd, String req_id, String stat, LocalDateTime shp_ctlg_lut, String shp_ctlg) {
|
||||
super(cmd, req_id, stat);
|
||||
public ShopCatalogResponse(LocalDateTime shp_ctlg_lut, String shp_ctlg) {
|
||||
this.shp_ctlg_lut = shp_ctlg_lut;
|
||||
this.shp_ctlg = shp_ctlg;
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Result;
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -10,22 +9,20 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BuyCstmzItmResponse extends BaseResponse {
|
||||
public class BuyCstmzItmResponse {
|
||||
private Result shp_rslt;
|
||||
private int cstmz_itm_id;
|
||||
private String cstmz_itm_have;
|
||||
private int vcld_pts;
|
||||
|
||||
public BuyCstmzItmResponse(String cmd, String req_id, String stat, Result shp_rslt, int cstmz_itm_id, String cstmz_itm_have, int vcld_pts) {
|
||||
super(cmd, req_id, stat);
|
||||
public BuyCstmzItmResponse(Result shp_rslt, int cstmz_itm_id, String cstmz_itm_have, int vcld_pts) {
|
||||
this.shp_rslt = shp_rslt;
|
||||
this.cstmz_itm_id = cstmz_itm_id;
|
||||
this.cstmz_itm_have = cstmz_itm_have;
|
||||
this.vcld_pts = vcld_pts;
|
||||
}
|
||||
|
||||
public BuyCstmzItmResponse(String cmd, String req_id, String stat, Result shp_rslt) {
|
||||
super(cmd, req_id, stat);
|
||||
public BuyCstmzItmResponse(Result shp_rslt) {
|
||||
this.shp_rslt = shp_rslt;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Result;
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -10,22 +9,20 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BuyModuleResponse extends BaseResponse {
|
||||
public class BuyModuleResponse {
|
||||
private Result shp_rslt;
|
||||
private int mdl_id;
|
||||
private String mdl_have;
|
||||
private int vcld_pts;
|
||||
|
||||
public BuyModuleResponse(String cmd, String req_id, String stat, Result shp_rslt, int mdl_id, String mdl_have, int vcld_pts) {
|
||||
super(cmd, req_id, stat);
|
||||
public BuyModuleResponse(Result shp_rslt, int mdl_id, String mdl_have, int vcld_pts) {
|
||||
this.shp_rslt = shp_rslt;
|
||||
this.mdl_id = mdl_id;
|
||||
this.mdl_have = mdl_have;
|
||||
this.vcld_pts = vcld_pts;
|
||||
}
|
||||
|
||||
public BuyModuleResponse(String cmd, String req_id, String stat, Result shp_rslt) {
|
||||
super(cmd, req_id, stat);
|
||||
public BuyModuleResponse(Result shp_rslt) {
|
||||
this.shp_rslt = shp_rslt;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,13 +8,12 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class GetPvPdResponse extends BaseResponse {
|
||||
public class GetPvPdResponse {
|
||||
private String pd_by_pv_id;
|
||||
private Boolean pdddt_flg;
|
||||
private String pdddt_tm;
|
||||
|
||||
public GetPvPdResponse(String cmd, String req_id, String stat, String pd_by_pv_id, Boolean pdddt_flg, String pdddt_tm) {
|
||||
super(cmd, req_id, stat);
|
||||
public GetPvPdResponse(String pd_by_pv_id, Boolean pdddt_flg, String pdddt_tm) {
|
||||
this.pd_by_pv_id = pd_by_pv_id;
|
||||
this.pdddt_flg = pdddt_flg;
|
||||
this.pdddt_tm = pdddt_tm;
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Result;
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -10,11 +9,10 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ShopExitResponse extends BaseResponse {
|
||||
public class ShopExitResponse {
|
||||
private Result shp_rslt;
|
||||
|
||||
public ShopExitResponse(String cmd, String req_id, String stat, Result shp_rslt) {
|
||||
super(cmd, req_id, stat);
|
||||
public ShopExitResponse(Result shp_rslt) {
|
||||
this.shp_rslt = shp_rslt;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -11,7 +10,7 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class StageResultResponse extends BaseResponse {
|
||||
public class StageResultResponse {
|
||||
|
||||
private int chllng_kind;
|
||||
private int lv_num_old;
|
||||
@ -58,12 +57,9 @@ public class StageResultResponse extends BaseResponse {
|
||||
private String my_ccd_r_hnd;
|
||||
private String my_ccd_r_vp;
|
||||
|
||||
public StageResultResponse(String cmd, String req_id, String stat) {
|
||||
super(cmd, req_id, stat);
|
||||
}
|
||||
public StageResultResponse() {}
|
||||
|
||||
public StageResultResponse(String cmd, String req_id, String stat, int chllng_kind, int lv_num_old, int lv_pnt_old, int lv_num, int lv_pnt, String lv_str, int lv_efct_id, int lv_plt_id, int vcld_pts, int prsnt_vcld_pts, int cnp_cid, int cnp_val, String cnp_sp, String crwd_kind, String crwd_value, String crwd_str_0, String crwd_str_1, int cerwd_kind, int cerwd_value, String cerwd_str_0, String cerwd_str_1, String ttl_str_ary, String ttl_plt_id_ary, String ttl_desc_ary, String skin_id_ary, String skin_name_ary, String skin_illust_ary, String skin_desc_ary, int pdddt_flg, LocalDateTime pdddt_tm, int nblss_ltt_stts, int nblss_ltt_tckt, int nblss_ltt_is_opn, int nblss_ltt_prz, int nblss_ltt_nxt_stts, int nblss_ltt_nxt_tckt, String my_qst_id, String my_qst_r_qid, String my_qst_r_knd, String my_qst_r_vl, String my_qst_r_nflg, String my_ccd_r_qid, String my_ccd_r_hnd, String my_ccd_r_vp) {
|
||||
super(cmd, req_id, stat);
|
||||
public StageResultResponse(int chllng_kind, int lv_num_old, int lv_pnt_old, int lv_num, int lv_pnt, String lv_str, int lv_efct_id, int lv_plt_id, int vcld_pts, int prsnt_vcld_pts, int cnp_cid, int cnp_val, String cnp_sp, String crwd_kind, String crwd_value, String crwd_str_0, String crwd_str_1, int cerwd_kind, int cerwd_value, String cerwd_str_0, String cerwd_str_1, String ttl_str_ary, String ttl_plt_id_ary, String ttl_desc_ary, String skin_id_ary, String skin_name_ary, String skin_illust_ary, String skin_desc_ary, int pdddt_flg, LocalDateTime pdddt_tm, int nblss_ltt_stts, int nblss_ltt_tckt, int nblss_ltt_is_opn, int nblss_ltt_prz, int nblss_ltt_nxt_stts, int nblss_ltt_nxt_tckt, String my_qst_id, String my_qst_r_qid, String my_qst_r_knd, String my_qst_r_vl, String my_qst_r_nflg, String my_ccd_r_qid, String my_ccd_r_hnd, String my_ccd_r_vp) {
|
||||
this.chllng_kind = chllng_kind;
|
||||
this.lv_num_old = lv_num_old;
|
||||
this.lv_pnt_old = lv_pnt_old;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.operation;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import icu.samnyan.aqua.sega.diva.util.URIEncoder;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@ -10,7 +9,7 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PingResponse extends BaseResponse {
|
||||
public class PingResponse {
|
||||
private String ping_b_msg = URIEncoder.encode("Server Running No other news");
|
||||
private String ping_m_msg = URIEncoder.encode("Network Service Running");
|
||||
private String atnd_lut;
|
||||
@ -50,12 +49,9 @@ public class PingResponse extends BaseResponse {
|
||||
private String nblss_ltt_st_tm;
|
||||
private String nblss_ltt_ed_tm;
|
||||
|
||||
public PingResponse(String cmd, String req_id, String stat) {
|
||||
super(cmd, req_id, stat);
|
||||
}
|
||||
|
||||
|
||||
public PingResponse(String cmd, String req_id, String stat, String ping_b_msg, String ping_m_msg) {
|
||||
super(cmd, req_id, stat);
|
||||
public PingResponse(String ping_b_msg, String ping_m_msg) {
|
||||
this.ping_b_msg = ping_b_msg;
|
||||
this.ping_m_msg = ping_m_msg;
|
||||
}
|
||||
|
||||
@ -3,7 +3,6 @@ package icu.samnyan.aqua.sega.diva.model.response.user;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.PassStat;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.PreStartResult;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.SortMode;
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -14,7 +13,7 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PreStartResponse extends BaseResponse {
|
||||
public class PreStartResponse {
|
||||
|
||||
private PreStartResult ps_result;
|
||||
private Integer accept_idx;
|
||||
@ -40,13 +39,11 @@ public class PreStartResponse extends BaseResponse {
|
||||
private Integer vcld_pts;
|
||||
private PassStat passwd_stat;
|
||||
|
||||
public PreStartResponse(String cmd, String req_id, String stat, PreStartResult ps_result) {
|
||||
super(cmd, req_id, stat);
|
||||
public PreStartResponse(PreStartResult ps_result) {
|
||||
this.ps_result = ps_result;
|
||||
}
|
||||
|
||||
public PreStartResponse(String cmd, String req_id, String stat, PreStartResult ps_result, Integer accept_idx, long pd_id, String player_name, SortMode sort_kind, Integer lv_num, Integer lv_pnt, String lv_str, Integer lv_efct_id, Integer lv_plt_id, String mdl_eqp_ary, LocalDateTime mdl_eqp_tm, Integer skn_eqp, Integer btn_se_eqp, Integer sld_se_eqp, Integer chn_sld_se_eqp, Integer sldr_tch_se_eqp, Integer vcld_pts, PassStat passwd_stat) {
|
||||
super(cmd, req_id, stat);
|
||||
public PreStartResponse(PreStartResult ps_result, Integer accept_idx, long pd_id, String player_name, SortMode sort_kind, Integer lv_num, Integer lv_pnt, String lv_str, Integer lv_efct_id, Integer lv_plt_id, String mdl_eqp_ary, LocalDateTime mdl_eqp_tm, Integer skn_eqp, Integer btn_se_eqp, Integer sld_se_eqp, Integer chn_sld_se_eqp, Integer sldr_tch_se_eqp, Integer vcld_pts, PassStat passwd_stat) {
|
||||
this.ps_result = ps_result;
|
||||
this.accept_idx = accept_idx;
|
||||
this.nblss_ltt_stts = -1;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.user;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -9,7 +8,7 @@ import lombok.Setter;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class SpendCreditResponse extends BaseResponse {
|
||||
public class SpendCreditResponse {
|
||||
private String cmpgn_rslt;
|
||||
private int cmpgn_rslt_num;
|
||||
private int vcld_pts;
|
||||
@ -17,8 +16,7 @@ public class SpendCreditResponse extends BaseResponse {
|
||||
private int lv_efct_id;
|
||||
private int lv_plt_id;
|
||||
|
||||
public SpendCreditResponse(String cmd, String req_id, String stat, String cmpgn_rslt, int cmpgn_rslt_num, int vcld_pts, String lv_str, int lv_efct_id, int lv_plt_id) {
|
||||
super(cmd, req_id, stat);
|
||||
public SpendCreditResponse(String cmpgn_rslt, int cmpgn_rslt_num, int vcld_pts, String lv_str, int lv_efct_id, int lv_plt_id) {
|
||||
this.cmpgn_rslt = cmpgn_rslt;
|
||||
this.cmpgn_rslt_num = cmpgn_rslt_num;
|
||||
this.vcld_pts = vcld_pts;
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.user;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.common.*;
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -15,7 +14,7 @@ import static icu.samnyan.aqua.sega.diva.model.common.Const.ALL_NOT_HAVE;
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class StartResponse extends BaseResponse {
|
||||
public class StartResponse {
|
||||
|
||||
private long pd_id;
|
||||
private Result start_result = Result.SUCCESS;
|
||||
@ -85,8 +84,7 @@ public class StartResponse extends BaseResponse {
|
||||
private String p_std_ie_have = ALL_NOT_HAVE;
|
||||
private String p_std_se_have = ALL_NOT_HAVE;
|
||||
|
||||
public StartResponse(String cmd, String req_id, String stat, long pd_id, Result start_result, int accept_idx, int start_idx, String player_name, int hp_vol, boolean btn_se_vol, int btn_se_vol2, int sldr_se_vol2, SortMode sort_kind, int lv_num, int lv_pnt, String lv_str, int lv_efct_id, int lv_plt_id, String mdl_eqp_ary, String c_itm_eqp_ary, String ms_itm_flg_ary, LocalDateTime mdl_eqp_tm, String mdl_have, String cstmz_itm_have, boolean use_pv_mdl_eqp, boolean use_mdl_pri, boolean use_pv_skn_eqp, boolean use_pv_btn_se_eqp, boolean use_pv_sld_se_eqp, boolean use_pv_chn_sld_se_eqp, boolean use_pv_sldr_tch_se_eqp, int vcld_pts, int nxt_pv_id, Difficulty nxt_dffclty, Edition nxt_edtn, String cv_cid, String cv_sc, String cv_rr, String cv_bv, String cv_bf, int cnp_cid, int cnp_val, ContestBorder cnp_rr, String cnp_sp, String my_lst_0, String my_lst_1, String my_lst_2, String my_lst_3, String my_lst_4, String dsp_clr_brdr, boolean dsp_intrm_rnk, boolean dsp_clr_sts, String clr_sts, boolean rgo_sts, String my_qst_id, String my_qst_sts, String my_qst_prgrs, String my_qst_et, String p_std_ie_have, String p_std_se_have) {
|
||||
super(cmd, req_id, stat);
|
||||
public StartResponse(long pd_id, Result start_result, int accept_idx, int start_idx, String player_name, int hp_vol, boolean btn_se_vol, int btn_se_vol2, int sldr_se_vol2, SortMode sort_kind, int lv_num, int lv_pnt, String lv_str, int lv_efct_id, int lv_plt_id, String mdl_eqp_ary, String c_itm_eqp_ary, String ms_itm_flg_ary, LocalDateTime mdl_eqp_tm, String mdl_have, String cstmz_itm_have, boolean use_pv_mdl_eqp, boolean use_mdl_pri, boolean use_pv_skn_eqp, boolean use_pv_btn_se_eqp, boolean use_pv_sld_se_eqp, boolean use_pv_chn_sld_se_eqp, boolean use_pv_sldr_tch_se_eqp, int vcld_pts, int nxt_pv_id, Difficulty nxt_dffclty, Edition nxt_edtn, String cv_cid, String cv_sc, String cv_rr, String cv_bv, String cv_bf, int cnp_cid, int cnp_val, ContestBorder cnp_rr, String cnp_sp, String my_lst_0, String my_lst_1, String my_lst_2, String my_lst_3, String my_lst_4, String dsp_clr_brdr, boolean dsp_intrm_rnk, boolean dsp_clr_sts, String clr_sts, boolean rgo_sts, String my_qst_id, String my_qst_sts, String my_qst_prgrs, String my_qst_et, String p_std_ie_have, String p_std_se_have) {
|
||||
this.pd_id = pd_id;
|
||||
this.start_result = start_result;
|
||||
this.accept_idx = accept_idx;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user