mirror of https://github.com/hykilpikonna/AquaDX
[O] Ongeki: Response models
parent
8a35cf002f
commit
e58e84da35
|
@ -0,0 +1,13 @@
|
|||
```regexp
|
||||
(var \w+) = 0
|
||||
$1: Int = 0
|
||||
|
||||
\= false
|
||||
: Bool = false
|
||||
|
||||
(var [\w: =?"]+[^,])\n
|
||||
$1,\n
|
||||
|
||||
(var \w+) \= \"\"
|
||||
$1: String = ""
|
||||
```
|
|
@ -9,7 +9,7 @@ import icu.samnyan.aqua.sega.maimai2.model.request.Mai2UserAll
|
|||
import icu.samnyan.aqua.sega.maimai2.model.userdata.Mai2UserFavorite
|
||||
import icu.samnyan.aqua.sega.maimai2.model.userdata.Mai2UserItem
|
||||
import icu.samnyan.aqua.sega.maimai2.model.userdata.Mai2UserMusicDetail
|
||||
import icu.samnyan.aqua.sega.ongeki.model.request.UpsertUserAll
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UpsertUserAll
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserItem
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper
|
||||
import icu.samnyan.aqua.sega.util.jackson.IMapper
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|||
import icu.samnyan.aqua.sega.ongeki.OgkGameEventRepo;
|
||||
import icu.samnyan.aqua.sega.general.BaseHandler;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameEvent;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.GameEventItem;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameEventItem;
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|||
import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository;
|
||||
import icu.samnyan.aqua.sega.general.model.PropertyEntry;
|
||||
import icu.samnyan.aqua.sega.general.BaseHandler;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.GameIdListItem;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameIdListItem;
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|||
import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository;
|
||||
import icu.samnyan.aqua.sega.general.model.PropertyEntry;
|
||||
import icu.samnyan.aqua.sega.general.BaseHandler;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.GameRankingItem;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameRankingItem;
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -4,8 +4,8 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|||
import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository;
|
||||
import icu.samnyan.aqua.sega.general.model.PropertyEntry;
|
||||
import icu.samnyan.aqua.sega.general.BaseHandler;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.GetGameSettingResp;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.GameSetting;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GetGameSettingResp;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GameSetting;
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -3,7 +3,7 @@ package icu.samnyan.aqua.sega.ongeki.handler.impl;
|
|||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import icu.samnyan.aqua.sega.ongeki.OgkUserEventPointRepo;
|
||||
import icu.samnyan.aqua.sega.general.BaseHandler;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.UserEventRankingItem;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserEventRankingItem;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserEventPoint;
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -3,7 +3,7 @@ package icu.samnyan.aqua.sega.ongeki.handler.impl;
|
|||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import icu.samnyan.aqua.sega.ongeki.OgkUserMusicDetailRepo;
|
||||
import icu.samnyan.aqua.sega.general.BaseHandler;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.UserMusicListItem;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserMusicListItem;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserMusicDetail;
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
|
||||
import icu.samnyan.aqua.spring.data.OffsetPageRequest;
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|||
import icu.samnyan.aqua.sega.ongeki.OgkUserDataRepo;
|
||||
import icu.samnyan.aqua.sega.ongeki.OgkUserOptionRepo;
|
||||
import icu.samnyan.aqua.sega.general.BaseHandler;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.GetUserPreviewResp;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.GetUserPreviewResp;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserData;
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|||
import icu.samnyan.aqua.sega.ongeki.OgkUserDataRepo;
|
||||
import icu.samnyan.aqua.sega.ongeki.OgkUserRivalDataRepo;
|
||||
import icu.samnyan.aqua.sega.general.BaseHandler;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.UserRivalData;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserRivalData;
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -3,7 +3,7 @@ package icu.samnyan.aqua.sega.ongeki.handler.impl;
|
|||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import icu.samnyan.aqua.sega.ongeki.OgkUserMusicDetailRepo;
|
||||
import icu.samnyan.aqua.sega.general.BaseHandler;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.UserRivalMusic;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserRivalMusic;
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
|
||||
import icu.samnyan.aqua.spring.data.OffsetPageRequest;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|||
|
||||
import icu.samnyan.aqua.sega.ongeki.OgkUserTechEventRepo;
|
||||
import icu.samnyan.aqua.sega.general.BaseHandler;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.UserTechEventRankingItem;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserTechEventRankingItem;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserTechEvent;
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -6,8 +6,6 @@ import icu.samnyan.aqua.sega.general.model.response.UserRecentRating
|
|||
import icu.samnyan.aqua.sega.general.service.CardService
|
||||
import icu.samnyan.aqua.sega.ongeki.*
|
||||
import icu.samnyan.aqua.sega.ongeki.model.*
|
||||
import icu.samnyan.aqua.sega.ongeki.model.request.UpsertUserAll
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.CodeResp
|
||||
import icu.samnyan.aqua.sega.util.jackson.BasicMapper
|
||||
import org.springframework.beans.factory.annotation.Autowired
|
||||
import org.springframework.stereotype.Component
|
||||
|
@ -61,7 +59,7 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userOptional = userDataRepository.findByCard_ExtId(userId)
|
||||
|
||||
// UserData might be empty on later runs
|
||||
if (userOptional.isEmpty && upsertUserAll.userData.isEmpty()) {
|
||||
if (userOptional.isEmpty && upsertUserAll.userData.isNullOrEmpty()) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
@ -74,7 +72,7 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
}
|
||||
|
||||
// If new data exists, use new data. Otherwise, use old data
|
||||
u = if (!upsertUserAll.userData.isEmpty()) upsertUserAll.userData[0] else userData
|
||||
u = if (!upsertUserAll.userData.isNullOrEmpty()) upsertUserAll.userData!![0] else userData
|
||||
|
||||
u.id = userData.id
|
||||
u.card = userData.card
|
||||
|
@ -82,12 +80,12 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
// Set eventWatchedDate with lastPlayDate, because client doesn't update it
|
||||
u.eventWatchedDate = userData.lastPlayDate
|
||||
u.cmEventWatchedDate = userData.lastPlayDate
|
||||
userDataRepository.save<UserData>(u)
|
||||
userDataRepository.save(u)
|
||||
}
|
||||
|
||||
|
||||
// UserOption
|
||||
val newUserOption = upsertUserAll.userOption[0]
|
||||
val newUserOption = upsertUserAll.userOption!![0]
|
||||
|
||||
val userOptionOptional = userOptionRepository.findSingleByUser(u)
|
||||
val userOption = userOptionOptional.orElseGet { UserOption().apply { user = u } }
|
||||
|
@ -102,9 +100,11 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userPlaylogList = upsertUserAll.userPlaylogList
|
||||
val newUserPlaylogList: MutableList<UserPlaylog> = ArrayList()
|
||||
|
||||
for (newUserPlaylog in userPlaylogList) {
|
||||
newUserPlaylog.user = u
|
||||
newUserPlaylogList.add(newUserPlaylog)
|
||||
if (userPlaylogList != null) {
|
||||
for (newUserPlaylog in userPlaylogList) {
|
||||
newUserPlaylog.user = u
|
||||
newUserPlaylogList.add(newUserPlaylog)
|
||||
}
|
||||
}
|
||||
|
||||
userPlaylogRepository.saveAll(newUserPlaylogList)
|
||||
|
@ -117,19 +117,21 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userActivityList = upsertUserAll.userActivityList
|
||||
val newUserActivityList: MutableList<UserActivity> = ArrayList()
|
||||
|
||||
for (newUserActivity in userActivityList) {
|
||||
val kind = newUserActivity.kind
|
||||
val id = newUserActivity.activityId
|
||||
if (userActivityList != null) {
|
||||
for (newUserActivity in userActivityList) {
|
||||
val kind = newUserActivity.kind
|
||||
val id = newUserActivity.activityId
|
||||
|
||||
if (kind != 0 && id != 0) {
|
||||
val activityOptional = userActivityRepository.findByUserAndKindAndActivityId(u, kind, id)
|
||||
val userActivity = activityOptional.orElseGet {
|
||||
UserActivity().apply { user = u }
|
||||
if (kind != 0 && id != 0) {
|
||||
val activityOptional = userActivityRepository.findByUserAndKindAndActivityId(u, kind, id)
|
||||
val userActivity = activityOptional.orElseGet {
|
||||
UserActivity().apply { user = u }
|
||||
}
|
||||
|
||||
newUserActivity.id = userActivity.id
|
||||
newUserActivity.user = u
|
||||
newUserActivityList.add(newUserActivity)
|
||||
}
|
||||
|
||||
newUserActivity.id = userActivity.id
|
||||
newUserActivity.user = u
|
||||
newUserActivityList.add(newUserActivity)
|
||||
}
|
||||
}
|
||||
newUserActivityList.sortWith { a, b -> b.sortNumber.compareTo(a.sortNumber) }
|
||||
|
@ -138,8 +140,7 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
|
||||
// UserRecentRatingList
|
||||
// This thing still need to save to solve the rating drop
|
||||
this.saveGeneralData(upsertUserAll.userRecentRatingList, u, "recent_rating_list")
|
||||
|
||||
upsertUserAll.userRecentRatingList?.let { this.saveGeneralData(it, u, "recent_rating_list") }
|
||||
|
||||
/*
|
||||
* The rating and battle point calculation is little bit complex.
|
||||
|
@ -147,51 +148,52 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
* into a csv format for convenience
|
||||
*/
|
||||
// UserBpBaseList (For calculating Battle point)
|
||||
this.saveGeneralData(upsertUserAll.userBpBaseList, u, "battle_point_base")
|
||||
upsertUserAll.userBpBaseList?.let { this.saveGeneralData(it, u, "battle_point_base") }
|
||||
|
||||
|
||||
// This is the best rating of all charts. Best 30 + 10 after that.
|
||||
// userRatingBaseBestList
|
||||
this.saveGeneralData(upsertUserAll.userRatingBaseBestList, u, "rating_base_best")
|
||||
upsertUserAll.userRatingBaseBestList?.let { this.saveGeneralData(it, u, "rating_base_best") }
|
||||
|
||||
|
||||
// userRatingBaseNextList
|
||||
this.saveGeneralData(upsertUserAll.userRatingBaseNextList, u, "rating_base_next")
|
||||
|
||||
upsertUserAll.userRatingBaseNextList?.let { this.saveGeneralData(it, u, "rating_base_next") }
|
||||
|
||||
// This is the best rating of new charts. Best 15 + 10 after that.
|
||||
// New chart means same version
|
||||
// userRatingBaseBestNewList
|
||||
this.saveGeneralData(upsertUserAll.userRatingBaseBestNewList, u, "rating_base_new_best")
|
||||
upsertUserAll.userRatingBaseBestNewList?.let { this.saveGeneralData(it, u, "rating_base_new_best") }
|
||||
|
||||
// userRatingBaseNextNewList
|
||||
this.saveGeneralData(upsertUserAll.userRatingBaseNextNewList, u, "rating_base_new_next")
|
||||
upsertUserAll.userRatingBaseNextNewList?.let { this.saveGeneralData(it, u, "rating_base_new_next") }
|
||||
|
||||
// This is the recent best
|
||||
// userRatingBaseHotList
|
||||
this.saveGeneralData(upsertUserAll.userRatingBaseHotList, u, "rating_base_hot_best")
|
||||
upsertUserAll.userRatingBaseHotList?.let { this.saveGeneralData(it, u, "rating_base_hot_best") }
|
||||
|
||||
// userRatingBaseHotNextList
|
||||
this.saveGeneralData(upsertUserAll.userRatingBaseHotNextList, u, "rating_base_hot_next")
|
||||
upsertUserAll.userRatingBaseHotNextList?.let { this.saveGeneralData(it, u, "rating_base_hot_next") }
|
||||
|
||||
|
||||
// UserMusicDetailList
|
||||
val userMusicDetailList = upsertUserAll.userMusicDetailList
|
||||
val newUserMusicDetailList: MutableList<UserMusicDetail> = ArrayList()
|
||||
|
||||
for (newUserMusicDetail in userMusicDetailList) {
|
||||
val musicId = newUserMusicDetail.musicId
|
||||
val level = newUserMusicDetail.level
|
||||
if (userMusicDetailList != null) {
|
||||
for (newUserMusicDetail in userMusicDetailList) {
|
||||
val musicId = newUserMusicDetail.musicId
|
||||
val level = newUserMusicDetail.level
|
||||
|
||||
val musicDetailOptional =
|
||||
userMusicDetailRepository.findByUserAndMusicIdAndLevel(u, musicId, level)
|
||||
val userMusicDetail = musicDetailOptional.orElseGet {
|
||||
UserMusicDetail().apply { user = u }
|
||||
val musicDetailOptional =
|
||||
userMusicDetailRepository.findByUserAndMusicIdAndLevel(u, musicId, level)
|
||||
val userMusicDetail = musicDetailOptional.orElseGet {
|
||||
UserMusicDetail().apply { user = u }
|
||||
}
|
||||
|
||||
newUserMusicDetail.id = userMusicDetail.id
|
||||
newUserMusicDetail.user = u
|
||||
newUserMusicDetailList.add(newUserMusicDetail)
|
||||
}
|
||||
|
||||
newUserMusicDetail.id = userMusicDetail.id
|
||||
newUserMusicDetail.user = u
|
||||
newUserMusicDetailList.add(newUserMusicDetail)
|
||||
}
|
||||
userMusicDetailRepository.saveAll(newUserMusicDetailList)
|
||||
|
||||
|
@ -200,17 +202,19 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userCharacterList = upsertUserAll.userCharacterList
|
||||
val newUserCharacterList: MutableList<UserCharacter> = ArrayList()
|
||||
|
||||
for (newUserCharacter in userCharacterList) {
|
||||
val characterId = newUserCharacter.characterId
|
||||
if (userCharacterList != null) {
|
||||
for (newUserCharacter in userCharacterList) {
|
||||
val characterId = newUserCharacter.characterId
|
||||
|
||||
val characterOptional = userCharacterRepository.findByUserAndCharacterId(u, characterId)
|
||||
val userCharacter = characterOptional.orElseGet {
|
||||
UserCharacter().apply { user = u }
|
||||
val characterOptional = userCharacterRepository.findByUserAndCharacterId(u, characterId)
|
||||
val userCharacter = characterOptional.orElseGet {
|
||||
UserCharacter().apply { user = u }
|
||||
}
|
||||
|
||||
newUserCharacter.id = userCharacter.id
|
||||
newUserCharacter.user = u
|
||||
newUserCharacterList.add(newUserCharacter)
|
||||
}
|
||||
|
||||
newUserCharacter.id = userCharacter.id
|
||||
newUserCharacter.user = u
|
||||
newUserCharacterList.add(newUserCharacter)
|
||||
}
|
||||
userCharacterRepository.saveAll(newUserCharacterList)
|
||||
|
||||
|
@ -218,15 +222,17 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userCardList = upsertUserAll.userCardList
|
||||
val newUserCardList: MutableList<UserCard> = ArrayList()
|
||||
|
||||
for (newUserCard in userCardList) {
|
||||
val cardId = newUserCard.cardId
|
||||
if (userCardList != null) {
|
||||
for (newUserCard in userCardList) {
|
||||
val cardId = newUserCard.cardId
|
||||
|
||||
val cardOptional = userCardRepository.findByUserAndCardId(u, cardId)
|
||||
val userCard = cardOptional.orElseGet { UserCard().apply { user = u } }
|
||||
val cardOptional = userCardRepository.findByUserAndCardId(u, cardId)
|
||||
val userCard = cardOptional.orElseGet { UserCard().apply { user = u } }
|
||||
|
||||
newUserCard.id = userCard.id
|
||||
newUserCard.user = u
|
||||
newUserCardList.add(newUserCard)
|
||||
newUserCard.id = userCard.id
|
||||
newUserCard.user = u
|
||||
newUserCardList.add(newUserCard)
|
||||
}
|
||||
}
|
||||
userCardRepository.saveAll(newUserCardList)
|
||||
|
||||
|
@ -235,15 +241,17 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userDeckList = upsertUserAll.userDeckList
|
||||
val newUserDeckList: MutableList<UserDeck> = ArrayList()
|
||||
|
||||
for (newUserDeck in userDeckList) {
|
||||
val deckId = newUserDeck.deckId
|
||||
if (userDeckList != null) {
|
||||
for (newUserDeck in userDeckList) {
|
||||
val deckId = newUserDeck.deckId
|
||||
|
||||
val deckOptional = userDeckRepository.findByUserAndDeckId(u, deckId)
|
||||
val userDeck = deckOptional.orElseGet { UserDeck().apply { user = u } }
|
||||
val deckOptional = userDeckRepository.findByUserAndDeckId(u, deckId)
|
||||
val userDeck = deckOptional.orElseGet { UserDeck().apply { user = u } }
|
||||
|
||||
newUserDeck.id = userDeck.id
|
||||
newUserDeck.user = u
|
||||
newUserDeckList.add(newUserDeck)
|
||||
newUserDeck.id = userDeck.id
|
||||
newUserDeck.user = u
|
||||
newUserDeckList.add(newUserDeck)
|
||||
}
|
||||
}
|
||||
userDeckRepository.saveAll(newUserDeckList)
|
||||
|
||||
|
@ -252,15 +260,17 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userTrainingRoomList = upsertUserAll.userTrainingRoomList
|
||||
val newUserTrainingRoomList: MutableList<UserTrainingRoom> = ArrayList()
|
||||
|
||||
for (newUserTrainingRoom in userTrainingRoomList) {
|
||||
val roomId = newUserTrainingRoom.roomId
|
||||
if (userTrainingRoomList != null) {
|
||||
for (newUserTrainingRoom in userTrainingRoomList) {
|
||||
val roomId = newUserTrainingRoom.roomId
|
||||
|
||||
val trainingRoomOptional = userTrainingRoomRepository.findByUserAndRoomId(u, roomId)
|
||||
val trainingRoom = trainingRoomOptional.orElseGet { UserTrainingRoom().apply { user = u } }
|
||||
val trainingRoomOptional = userTrainingRoomRepository.findByUserAndRoomId(u, roomId)
|
||||
val trainingRoom = trainingRoomOptional.orElseGet { UserTrainingRoom().apply { user = u } }
|
||||
|
||||
newUserTrainingRoom.id = trainingRoom.id
|
||||
newUserTrainingRoom.user = u
|
||||
newUserTrainingRoomList.add(newUserTrainingRoom)
|
||||
newUserTrainingRoom.id = trainingRoom.id
|
||||
newUserTrainingRoom.user = u
|
||||
newUserTrainingRoomList.add(newUserTrainingRoom)
|
||||
}
|
||||
}
|
||||
userTrainingRoomRepository.saveAll(newUserTrainingRoomList)
|
||||
|
||||
|
@ -269,15 +279,17 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userStoryList = upsertUserAll.userStoryList
|
||||
val newUserStoryList: MutableList<UserStory> = ArrayList()
|
||||
|
||||
for (newUserStory in userStoryList) {
|
||||
val storyId = newUserStory.storyId
|
||||
if (userStoryList != null) {
|
||||
for (newUserStory in userStoryList) {
|
||||
val storyId = newUserStory.storyId
|
||||
|
||||
val storyOptional = userStoryRepository.findByUserAndStoryId(u, storyId)
|
||||
val userStory = storyOptional.orElseGet { UserStory().apply { user = u } }
|
||||
val storyOptional = userStoryRepository.findByUserAndStoryId(u, storyId)
|
||||
val userStory = storyOptional.orElseGet { UserStory().apply { user = u } }
|
||||
|
||||
newUserStory.id = userStory.id
|
||||
newUserStory.user = u
|
||||
newUserStoryList.add(newUserStory)
|
||||
newUserStory.id = userStory.id
|
||||
newUserStory.user = u
|
||||
newUserStoryList.add(newUserStory)
|
||||
}
|
||||
}
|
||||
userStoryRepository.saveAll(newUserStoryList)
|
||||
|
||||
|
@ -286,15 +298,17 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userChapterList = upsertUserAll.userChapterList
|
||||
val newUserChapterList: MutableList<UserChapter> = ArrayList()
|
||||
|
||||
for (newUserChapter in userChapterList) {
|
||||
val chapterId = newUserChapter.chapterId
|
||||
if (userChapterList != null) {
|
||||
for (newUserChapter in userChapterList) {
|
||||
val chapterId = newUserChapter.chapterId
|
||||
|
||||
val chapterOptional = userChapterRepository.findByUserAndChapterId(u, chapterId)
|
||||
val userChapter = chapterOptional.orElseGet { UserChapter().apply { user = u } }
|
||||
val chapterOptional = userChapterRepository.findByUserAndChapterId(u, chapterId)
|
||||
val userChapter = chapterOptional.orElseGet { UserChapter().apply { user = u } }
|
||||
|
||||
newUserChapter.id = userChapter.id
|
||||
newUserChapter.user = u
|
||||
newUserChapterList.add(newUserChapter)
|
||||
newUserChapter.id = userChapter.id
|
||||
newUserChapter.user = u
|
||||
newUserChapterList.add(newUserChapter)
|
||||
}
|
||||
}
|
||||
userChapterRepository.saveAll(newUserChapterList)
|
||||
|
||||
|
@ -322,16 +336,18 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userItemList = upsertUserAll.userItemList
|
||||
val newUserItemList: MutableList<UserItem> = ArrayList()
|
||||
|
||||
for (newUserItem in userItemList) {
|
||||
val itemKind = newUserItem.itemKind
|
||||
val itemId = newUserItem.itemId
|
||||
if (userItemList != null) {
|
||||
for (newUserItem in userItemList) {
|
||||
val itemKind = newUserItem.itemKind
|
||||
val itemId = newUserItem.itemId
|
||||
|
||||
val itemOptional = userItemRepository.findByUserAndItemKindAndItemId(u, itemKind, itemId)
|
||||
val userItem = itemOptional.orElseGet { UserItem().apply { user = u } }
|
||||
val itemOptional = userItemRepository.findByUserAndItemKindAndItemId(u, itemKind, itemId)
|
||||
val userItem = itemOptional.orElseGet { UserItem().apply { user = u } }
|
||||
|
||||
newUserItem.id = userItem.id
|
||||
newUserItem.user = u
|
||||
newUserItemList.add(newUserItem)
|
||||
newUserItem.id = userItem.id
|
||||
newUserItem.user = u
|
||||
newUserItemList.add(newUserItem)
|
||||
}
|
||||
}
|
||||
userItemRepository.saveAll(newUserItemList)
|
||||
|
||||
|
@ -339,15 +355,17 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userMusicItemList = upsertUserAll.userMusicItemList
|
||||
val newUserMusicItemList: MutableList<UserMusicItem> = ArrayList()
|
||||
|
||||
for (newUserMusicItem in userMusicItemList) {
|
||||
val musicId = newUserMusicItem.musicId
|
||||
if (userMusicItemList != null) {
|
||||
for (newUserMusicItem in userMusicItemList) {
|
||||
val musicId = newUserMusicItem.musicId
|
||||
|
||||
val musicItemOptional = userMusicItemRepository.findByUserAndMusicId(u, musicId)
|
||||
val userMusicItem = musicItemOptional.orElseGet { UserMusicItem().apply { user = u } }
|
||||
val musicItemOptional = userMusicItemRepository.findByUserAndMusicId(u, musicId)
|
||||
val userMusicItem = musicItemOptional.orElseGet { UserMusicItem().apply { user = u } }
|
||||
|
||||
newUserMusicItem.id = userMusicItem.id
|
||||
newUserMusicItem.user = u
|
||||
newUserMusicItemList.add(newUserMusicItem)
|
||||
newUserMusicItem.id = userMusicItem.id
|
||||
newUserMusicItem.user = u
|
||||
newUserMusicItemList.add(newUserMusicItem)
|
||||
}
|
||||
}
|
||||
userMusicItemRepository.saveAll(newUserMusicItemList)
|
||||
|
||||
|
@ -356,17 +374,19 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userLoginBonusList = upsertUserAll.userLoginBonusList
|
||||
val newUserLoginBonusList: MutableList<UserLoginBonus> = ArrayList()
|
||||
|
||||
for (newUserLoginBonus in userLoginBonusList) {
|
||||
val bonusId = newUserLoginBonus.bonusId
|
||||
if (userLoginBonusList != null) {
|
||||
for (newUserLoginBonus in userLoginBonusList) {
|
||||
val bonusId = newUserLoginBonus.bonusId
|
||||
|
||||
val loginBonusOptional = userLoginBonusRepository.findByUserAndBonusId(u, bonusId)
|
||||
val userLoginBonus = loginBonusOptional.orElseGet {
|
||||
UserLoginBonus().apply { user = u }
|
||||
val loginBonusOptional = userLoginBonusRepository.findByUserAndBonusId(u, bonusId)
|
||||
val userLoginBonus = loginBonusOptional.orElseGet {
|
||||
UserLoginBonus().apply { user = u }
|
||||
}
|
||||
|
||||
newUserLoginBonus.id = userLoginBonus.id
|
||||
newUserLoginBonus.user = u
|
||||
newUserLoginBonusList.add(newUserLoginBonus)
|
||||
}
|
||||
|
||||
newUserLoginBonus.id = userLoginBonus.id
|
||||
newUserLoginBonus.user = u
|
||||
newUserLoginBonusList.add(newUserLoginBonus)
|
||||
}
|
||||
userLoginBonusRepository.saveAll(newUserLoginBonusList)
|
||||
|
||||
|
@ -375,15 +395,17 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userEventPointList = upsertUserAll.userEventPointList
|
||||
val newUserEventPointList: MutableList<UserEventPoint> = ArrayList()
|
||||
|
||||
for (newUserEventPoint in userEventPointList) {
|
||||
val eventId = newUserEventPoint.eventId
|
||||
if (userEventPointList != null) {
|
||||
for (newUserEventPoint in userEventPointList) {
|
||||
val eventId = newUserEventPoint.eventId
|
||||
|
||||
val eventPointOptional = userEventPointRepository.findByUserAndEventId(u, eventId)
|
||||
val userEventPoint = eventPointOptional.orElseGet { UserEventPoint().apply { user = u } }
|
||||
val eventPointOptional = userEventPointRepository.findByUserAndEventId(u, eventId)
|
||||
val userEventPoint = eventPointOptional.orElseGet { UserEventPoint().apply { user = u } }
|
||||
|
||||
newUserEventPoint.id = userEventPoint.id
|
||||
newUserEventPoint.user = u
|
||||
newUserEventPointList.add(newUserEventPoint)
|
||||
newUserEventPoint.id = userEventPoint.id
|
||||
newUserEventPoint.user = u
|
||||
newUserEventPointList.add(newUserEventPoint)
|
||||
}
|
||||
}
|
||||
userEventPointRepository.saveAll(newUserEventPointList)
|
||||
|
||||
|
@ -392,15 +414,17 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userMissionPointList = upsertUserAll.userMissionPointList
|
||||
val newUserMissionPointList: MutableList<UserMissionPoint> = ArrayList()
|
||||
|
||||
for (newUserMissionPoint in userMissionPointList) {
|
||||
val eventId = newUserMissionPoint.eventId
|
||||
if (userMissionPointList != null) {
|
||||
for (newUserMissionPoint in userMissionPointList) {
|
||||
val eventId = newUserMissionPoint.eventId
|
||||
|
||||
val userMissionPointOptional = userMissionPointRepository.findByUserAndEventId(u, eventId)
|
||||
val userMissionPoint = userMissionPointOptional.orElseGet { UserMissionPoint().apply { user = u } }
|
||||
val userMissionPointOptional = userMissionPointRepository.findByUserAndEventId(u, eventId)
|
||||
val userMissionPoint = userMissionPointOptional.orElseGet { UserMissionPoint().apply { user = u } }
|
||||
|
||||
newUserMissionPoint.id = userMissionPoint.id
|
||||
newUserMissionPoint.user = u
|
||||
newUserMissionPointList.add(newUserMissionPoint)
|
||||
newUserMissionPoint.id = userMissionPoint.id
|
||||
newUserMissionPoint.user = u
|
||||
newUserMissionPointList.add(newUserMissionPoint)
|
||||
}
|
||||
}
|
||||
userMissionPointRepository.saveAll(newUserMissionPointList)
|
||||
|
||||
|
@ -463,17 +487,19 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userTradeItemList = upsertUserAll.userTradeItemList
|
||||
val newUserTradeItemList: MutableList<UserTradeItem> = ArrayList()
|
||||
|
||||
for (newUserTradeItem in userTradeItemList) {
|
||||
val chapterId = newUserTradeItem.chapterId
|
||||
val tradeItemId = newUserTradeItem.tradeItemId
|
||||
if (userTradeItemList != null) {
|
||||
for (newUserTradeItem in userTradeItemList) {
|
||||
val chapterId = newUserTradeItem.chapterId
|
||||
val tradeItemId = newUserTradeItem.tradeItemId
|
||||
|
||||
val tradeItemOptional =
|
||||
userTradeItemRepository.findByUserAndChapterIdAndTradeItemId(u, chapterId, tradeItemId)
|
||||
val userTradeItem = tradeItemOptional.orElseGet { UserTradeItem().apply { user = u } }
|
||||
val tradeItemOptional =
|
||||
userTradeItemRepository.findByUserAndChapterIdAndTradeItemId(u, chapterId, tradeItemId)
|
||||
val userTradeItem = tradeItemOptional.orElseGet { UserTradeItem().apply { user = u } }
|
||||
|
||||
newUserTradeItem.id = userTradeItem.id
|
||||
newUserTradeItem.user = u
|
||||
newUserTradeItemList.add(newUserTradeItem)
|
||||
newUserTradeItem.id = userTradeItem.id
|
||||
newUserTradeItem.user = u
|
||||
newUserTradeItemList.add(newUserTradeItem)
|
||||
}
|
||||
}
|
||||
userTradeItemRepository.saveAll(newUserTradeItemList)
|
||||
|
||||
|
@ -481,18 +507,20 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userEventMusicList = upsertUserAll.userEventMusicList
|
||||
val newUserEventMusicList: MutableList<UserEventMusic> = ArrayList()
|
||||
|
||||
for (newUserEventMusic in userEventMusicList) {
|
||||
val eventId = newUserEventMusic.eventId
|
||||
val type = newUserEventMusic.type
|
||||
val musicId = newUserEventMusic.musicId
|
||||
if (userEventMusicList != null) {
|
||||
for (newUserEventMusic in userEventMusicList) {
|
||||
val eventId = newUserEventMusic.eventId
|
||||
val type = newUserEventMusic.type
|
||||
val musicId = newUserEventMusic.musicId
|
||||
|
||||
val eventMusicOptional =
|
||||
userEventMusicRepository.findByUserAndEventIdAndTypeAndMusicId(u, eventId, type, musicId)
|
||||
val userEventMusic = eventMusicOptional.orElseGet { UserEventMusic().apply { user = u } }
|
||||
val eventMusicOptional =
|
||||
userEventMusicRepository.findByUserAndEventIdAndTypeAndMusicId(u, eventId, type, musicId)
|
||||
val userEventMusic = eventMusicOptional.orElseGet { UserEventMusic().apply { user = u } }
|
||||
|
||||
newUserEventMusic.id = userEventMusic.id
|
||||
newUserEventMusic.user = u
|
||||
newUserEventMusicList.add(newUserEventMusic)
|
||||
newUserEventMusic.id = userEventMusic.id
|
||||
newUserEventMusic.user = u
|
||||
newUserEventMusicList.add(newUserEventMusic)
|
||||
}
|
||||
}
|
||||
userEventMusicRepository.saveAll(newUserEventMusicList)
|
||||
|
||||
|
@ -500,15 +528,17 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userTechEventList = upsertUserAll.userTechEventList
|
||||
val newUserTechEventList: MutableList<UserTechEvent> = ArrayList()
|
||||
|
||||
for (newUserTechEvent in userTechEventList) {
|
||||
val eventId = newUserTechEvent.eventId
|
||||
if (userTechEventList != null) {
|
||||
for (newUserTechEvent in userTechEventList) {
|
||||
val eventId = newUserTechEvent.eventId
|
||||
|
||||
val techEventOptional = userTechEventRepository.findByUserAndEventId(u, eventId)
|
||||
val userTechEvent = techEventOptional.orElseGet { UserTechEvent().apply { user = u } }
|
||||
val techEventOptional = userTechEventRepository.findByUserAndEventId(u, eventId)
|
||||
val userTechEvent = techEventOptional.orElseGet { UserTechEvent().apply { user = u } }
|
||||
|
||||
newUserTechEvent.id = userTechEvent.id
|
||||
newUserTechEvent.user = u
|
||||
newUserTechEventList.add(newUserTechEvent)
|
||||
newUserTechEvent.id = userTechEvent.id
|
||||
newUserTechEvent.user = u
|
||||
newUserTechEventList.add(newUserTechEvent)
|
||||
}
|
||||
}
|
||||
userTechEventRepository.saveAll(newUserTechEventList)
|
||||
|
||||
|
@ -516,16 +546,18 @@ class UpsertUserAllHandler @Autowired constructor(
|
|||
val userKopList = upsertUserAll.userKopList
|
||||
val newUserKopList: MutableList<UserKop> = ArrayList()
|
||||
|
||||
for (newUserKop in userKopList) {
|
||||
val kopId = newUserKop.kopId
|
||||
val areaId = newUserKop.areaId
|
||||
if (userKopList != null) {
|
||||
for (newUserKop in userKopList) {
|
||||
val kopId = newUserKop.kopId
|
||||
val areaId = newUserKop.areaId
|
||||
|
||||
val kopOptional = userKopRepository.findByUserAndKopIdAndAreaId(u, kopId, areaId)
|
||||
val userKop = kopOptional.orElseGet { UserKop().apply { user = u } }
|
||||
val kopOptional = userKopRepository.findByUserAndKopIdAndAreaId(u, kopId, areaId)
|
||||
val userKop = kopOptional.orElseGet { UserKop().apply { user = u } }
|
||||
|
||||
newUserKop.id = userKop.id
|
||||
newUserKop.user = u
|
||||
newUserKopList.add(newUserKop)
|
||||
newUserKop.id = userKop.id
|
||||
newUserKop.user = u
|
||||
newUserKopList.add(newUserKop)
|
||||
}
|
||||
}
|
||||
userKopRepository.saveAll(newUserKopList)
|
||||
|
||||
|
|
|
@ -1,7 +1,43 @@
|
|||
package icu.samnyan.aqua.sega.ongeki.model.response.data
|
||||
package icu.samnyan.aqua.sega.ongeki.model
|
||||
|
||||
import ext.Bool
|
||||
import icu.samnyan.aqua.sega.ongeki.model.UserMusicDetail
|
||||
|
||||
class CodeResp(
|
||||
var returnCode: Int = 0,
|
||||
var apiName: String? = null,
|
||||
)
|
||||
|
||||
class GetGameSettingResp(
|
||||
var gameSetting: GameSetting? = null,
|
||||
var isDumpUpload: Bool = false,
|
||||
var isAou: Bool = false,
|
||||
)
|
||||
|
||||
class GetUserPreviewResp(
|
||||
var userId: Long = 0,
|
||||
var isLogin: Bool = false,
|
||||
var lastLoginDate: String? = null,
|
||||
var userName: String = "",
|
||||
var reincarnationNum: Int = 0,
|
||||
var level: Int = 0,
|
||||
var exp: Long = 0,
|
||||
var playerRating: Long = 0,
|
||||
var lastGameId: String = "",
|
||||
var lastRomVersion: String = "",
|
||||
var lastDataVersion: String = "",
|
||||
var lastPlayDate: String? = null,
|
||||
var nameplateId: Int = 0,
|
||||
var trophyId: Int = 0,
|
||||
var cardId: Int = 0,
|
||||
var dispPlayerLv: Int = 0,
|
||||
var dispRating: Int = 0,
|
||||
var dispBP: Int = 0,
|
||||
var headphone: Int = 0,
|
||||
var banStatus: Int = 0,
|
||||
var isWarningConfirmed: Bool = false,
|
||||
var lastEmoneyBrand: Int = 0,
|
||||
var lastEmoneyCredit: Int = 0,
|
||||
)
|
||||
|
||||
class GameEventItem(
|
||||
var id: Long = 0,
|
|
@ -0,0 +1,62 @@
|
|||
package icu.samnyan.aqua.sega.ongeki.model
|
||||
import icu.samnyan.aqua.sega.general.model.response.UserRecentRating
|
||||
|
||||
class UpsertUserAll {
|
||||
var userData: List<UserData>? = null
|
||||
var userOption: List<UserOption>? = null
|
||||
var userPlaylogList: List<UserPlaylog>? = null
|
||||
var userJewelboostlogList: List<Map<String, Any>>? = null
|
||||
var userSessionlogList: List<Map<String, Any>>? = null
|
||||
var userActivityList: List<UserActivity>? = null
|
||||
var userRecentRatingList: List<UserRecentRating>? = null
|
||||
var userBpBaseList: List<UserRecentRating>? = null
|
||||
var userRatingBaseBestNewList: List<UserRecentRating>? = null
|
||||
var userRatingBaseBestList: List<UserRecentRating>? = null
|
||||
var userRatingBaseHotList: List<UserRecentRating>? = null
|
||||
var userRatingBaseNextNewList: List<UserRecentRating>? = null
|
||||
var userRatingBaseNextList: List<UserRecentRating>? = null
|
||||
var userRatingBaseHotNextList: List<UserRecentRating>? = null
|
||||
var userMusicDetailList: List<UserMusicDetail>? = null
|
||||
var userCharacterList: List<UserCharacter>? = null
|
||||
var userCardList: List<UserCard>? = null
|
||||
var userDeckList: List<UserDeck>? = null
|
||||
var userTrainingRoomList: List<UserTrainingRoom>? = null
|
||||
var userStoryList: List<UserStory>? = null
|
||||
var userChapterList: List<UserChapter>? = null
|
||||
var userMemoryChapterList: List<UserMemoryChapter>? = null
|
||||
var userItemList: List<UserItem>? = null
|
||||
var userMusicItemList: List<UserMusicItem>? = null
|
||||
var userLoginBonusList: List<UserLoginBonus>? = null
|
||||
var userEventPointList: List<UserEventPoint>? = null
|
||||
var userMissionPointList: List<UserMissionPoint>? = null
|
||||
var userRatinglogList: List<Map<String, Any>>? = null
|
||||
var userBossList: List<UserBoss>? = null
|
||||
var userTechCountList: List<UserTechCount>? = null
|
||||
var userScenarioList: List<UserScenario>? = null
|
||||
var userTradeItemList: List<UserTradeItem>? = null
|
||||
var userEventMusicList: List<UserEventMusic>? = null
|
||||
var userTechEventList: List<UserTechEvent>? = null
|
||||
var userKopList: List<UserKop>? = null
|
||||
var clientSystemInfo: Map<String, Any>? = null
|
||||
var isNewMusicDetailList: String? = null
|
||||
var isNewCharacterList: String? = null
|
||||
var isNewCardList: String? = null
|
||||
var isNewDeckList: String? = null
|
||||
var isNewTrainingRoomList: String? = null
|
||||
var isNewStoryList: String? = null
|
||||
var isNewChapterList: String? = null
|
||||
var isNewMemoryChapterList: String? = null
|
||||
var isNewItemList: String? = null
|
||||
var isNewMusicItemList: String? = null
|
||||
var isNewLoginBonusList: String? = null
|
||||
var isNewEventPointList: String? = null
|
||||
var isNewMissionPointList: String? = null
|
||||
var isNewRatinglogList: String? = null
|
||||
var isNewBossList: String? = null
|
||||
var isNewTechCountList: String? = null
|
||||
var isNewScenarioList: String? = null
|
||||
var isNewTradeItemList: String? = null
|
||||
var isNewEventMusicList: String? = null
|
||||
var isNewTechEventList: String? = null
|
||||
var isNewKopList: String? = null
|
||||
}
|
|
@ -1,157 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.ongeki.model.request;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import icu.samnyan.aqua.sega.general.model.response.UserRecentRating;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class UpsertUserAll implements Serializable {
|
||||
|
||||
private List<UserData> userData;
|
||||
|
||||
private List<UserOption> userOption;
|
||||
|
||||
private List<UserPlaylog> userPlaylogList;
|
||||
|
||||
private List<Map<String, Object>> userJewelboostlogList;
|
||||
|
||||
private List<Map<String, Object>> userSessionlogList;
|
||||
|
||||
private List<UserActivity> userActivityList;
|
||||
|
||||
private List<UserRecentRating> userRecentRatingList;
|
||||
|
||||
private List<UserRecentRating> userBpBaseList;
|
||||
|
||||
private List<UserRecentRating> userRatingBaseBestNewList;
|
||||
|
||||
private List<UserRecentRating> userRatingBaseBestList;
|
||||
|
||||
private List<UserRecentRating> userRatingBaseHotList;
|
||||
|
||||
private List<UserRecentRating> userRatingBaseNextNewList;
|
||||
|
||||
private List<UserRecentRating> userRatingBaseNextList;
|
||||
|
||||
private List<UserRecentRating> userRatingBaseHotNextList;
|
||||
|
||||
private List<UserMusicDetail> userMusicDetailList;
|
||||
|
||||
private List<UserCharacter> userCharacterList;
|
||||
|
||||
private List<UserCard> userCardList;
|
||||
|
||||
private List<UserDeck> userDeckList;
|
||||
|
||||
private List<UserTrainingRoom> userTrainingRoomList;
|
||||
|
||||
private List<UserStory> userStoryList;
|
||||
|
||||
private List<UserChapter> userChapterList;
|
||||
|
||||
private List<UserMemoryChapter> userMemoryChapterList;
|
||||
|
||||
private List<UserItem> userItemList;
|
||||
|
||||
private List<UserMusicItem> userMusicItemList;
|
||||
|
||||
private List<UserLoginBonus> userLoginBonusList;
|
||||
|
||||
private List<UserEventPoint> userEventPointList;
|
||||
|
||||
private List<UserMissionPoint> userMissionPointList;
|
||||
|
||||
private List<Map<String, Object>> userRatinglogList;
|
||||
|
||||
private List<UserBoss> userBossList;
|
||||
|
||||
private List<UserTechCount> userTechCountList;
|
||||
|
||||
private List<UserScenario> userScenarioList;
|
||||
|
||||
private List<UserTradeItem> userTradeItemList;
|
||||
|
||||
private List<UserEventMusic> userEventMusicList;
|
||||
|
||||
private List<UserTechEvent> userTechEventList;
|
||||
|
||||
private List<UserKop> userKopList;
|
||||
|
||||
private Map<String, Object> clientSystemInfo;
|
||||
|
||||
@JsonProperty("isNewMusicDetailList")
|
||||
private String isNewMusicDetailList;
|
||||
|
||||
@JsonProperty("isNewCharacterList")
|
||||
private String isNewCharacterList;
|
||||
|
||||
@JsonProperty("isNewCardList")
|
||||
private String isNewCardList;
|
||||
|
||||
@JsonProperty("isNewDeckList")
|
||||
private String isNewDeckList;
|
||||
|
||||
@JsonProperty("isNewTrainingRoomList")
|
||||
private String isNewTrainingRoomList;
|
||||
|
||||
@JsonProperty("isNewStoryList")
|
||||
private String isNewStoryList;
|
||||
|
||||
@JsonProperty("isNewChapterList")
|
||||
private String isNewChapterList;
|
||||
|
||||
@JsonProperty("isNewMemoryChapterList")
|
||||
private String isNewMemoryChapterList;
|
||||
|
||||
@JsonProperty("isNewItemList")
|
||||
private String isNewItemList;
|
||||
|
||||
@JsonProperty("isNewMusicItemList")
|
||||
private String isNewMusicItemList;
|
||||
|
||||
@JsonProperty("isNewLoginBonusList")
|
||||
private String isNewLoginBonusList;
|
||||
|
||||
@JsonProperty("isNewEventPointList")
|
||||
private String isNewEventPointList;
|
||||
|
||||
@JsonProperty("isNewMissionPointList")
|
||||
private String isNewMissionPointList;
|
||||
|
||||
@JsonProperty("isNewRatinglogList")
|
||||
private String isNewRatinglogList;
|
||||
|
||||
@JsonProperty("isNewBossList")
|
||||
private String isNewBossList;
|
||||
|
||||
@JsonProperty("isNewTechCountList")
|
||||
private String isNewTechCountList;
|
||||
|
||||
@JsonProperty("isNewScenarioList")
|
||||
private String isNewScenarioList;
|
||||
|
||||
@JsonProperty("isNewTradeItemList")
|
||||
private String isNewTradeItemList;
|
||||
|
||||
@JsonProperty("isNewEventMusicList")
|
||||
private String isNewEventMusicList;
|
||||
|
||||
@JsonProperty("isNewTechEventList")
|
||||
private String isNewTechEventList;
|
||||
|
||||
@JsonProperty("isNewKopList")
|
||||
private String isNewKopList;
|
||||
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.ongeki.model.response;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class CodeResp {
|
||||
private int returnCode;
|
||||
private String apiName;
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.ongeki.model.response;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import icu.samnyan.aqua.sega.ongeki.model.response.data.GameSetting;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class GetGameSettingResp {
|
||||
private GameSetting gameSetting;
|
||||
@JsonProperty("isDumpUpload")
|
||||
private boolean isDumpUpload;
|
||||
@JsonProperty("isAou")
|
||||
private boolean isAou;
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.ongeki.model.response;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class GetUserPreviewResp {
|
||||
|
||||
private long userId = 0;
|
||||
@JsonProperty("isLogin")
|
||||
private boolean isLogin = false;
|
||||
private String lastLoginDate = null;
|
||||
private String userName = "";
|
||||
private int reincarnationNum = 0;
|
||||
private int level = 0;
|
||||
private long exp = 0;
|
||||
private long playerRating = 0;
|
||||
private String lastGameId = "";
|
||||
private String lastRomVersion = "";
|
||||
private String lastDataVersion = "";
|
||||
private String lastPlayDate = null;
|
||||
private int nameplateId = 0;
|
||||
private int trophyId = 0;
|
||||
private int cardId = 0;
|
||||
private int dispPlayerLv = 0;
|
||||
private int dispRating = 0;
|
||||
private int dispBP = 0;
|
||||
private int headphone = 0;
|
||||
private int banStatus = 0;
|
||||
@JsonProperty("isWarningConfirmed")
|
||||
private boolean isWarningConfirmed = false;
|
||||
private int lastEmoneyBrand = 0;
|
||||
private int lastEmoneyCredit = 0;
|
||||
}
|
Loading…
Reference in New Issue