[O] Ongeki: Response models

This commit is contained in:
Azalea
2025-03-26 19:23:30 -04:00
parent 8a35cf002f
commit e58e84da35
19 changed files with 314 additions and 406 deletions

13
docs/dev/kt.md Normal file
View File

@@ -0,0 +1,13 @@
```regexp
(var \w+) = 0
$1: Int = 0
\= false
: Bool = false
(var [\w: =?"]+[^,])\n
$1,\n
(var \w+) \= \"\"
$1: String = ""
```

View File

@@ -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.Mai2UserFavorite
import icu.samnyan.aqua.sega.maimai2.model.userdata.Mai2UserItem import icu.samnyan.aqua.sega.maimai2.model.userdata.Mai2UserItem
import icu.samnyan.aqua.sega.maimai2.model.userdata.Mai2UserMusicDetail 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.ongeki.model.UserItem
import icu.samnyan.aqua.sega.util.jackson.BasicMapper import icu.samnyan.aqua.sega.util.jackson.BasicMapper
import icu.samnyan.aqua.sega.util.jackson.IMapper import icu.samnyan.aqua.sega.util.jackson.IMapper

View File

@@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import icu.samnyan.aqua.sega.ongeki.OgkGameEventRepo; import icu.samnyan.aqua.sega.ongeki.OgkGameEventRepo;
import icu.samnyan.aqua.sega.general.BaseHandler; import icu.samnyan.aqua.sega.general.BaseHandler;
import icu.samnyan.aqua.sega.ongeki.model.GameEvent; 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 icu.samnyan.aqua.sega.util.jackson.BasicMapper;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository; import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository;
import icu.samnyan.aqua.sega.general.model.PropertyEntry; import icu.samnyan.aqua.sega.general.model.PropertyEntry;
import icu.samnyan.aqua.sega.general.BaseHandler; 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 icu.samnyan.aqua.sega.util.jackson.BasicMapper;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;

View File

@@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository; import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository;
import icu.samnyan.aqua.sega.general.model.PropertyEntry; import icu.samnyan.aqua.sega.general.model.PropertyEntry;
import icu.samnyan.aqua.sega.general.BaseHandler; 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 icu.samnyan.aqua.sega.util.jackson.BasicMapper;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;

View File

@@ -4,8 +4,8 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository; import icu.samnyan.aqua.sega.general.dao.PropertyEntryRepository;
import icu.samnyan.aqua.sega.general.model.PropertyEntry; import icu.samnyan.aqua.sega.general.model.PropertyEntry;
import icu.samnyan.aqua.sega.general.BaseHandler; import icu.samnyan.aqua.sega.general.BaseHandler;
import icu.samnyan.aqua.sega.ongeki.model.response.GetGameSettingResp; import icu.samnyan.aqua.sega.ongeki.model.GetGameSettingResp;
import icu.samnyan.aqua.sega.ongeki.model.response.data.GameSetting; import icu.samnyan.aqua.sega.ongeki.model.GameSetting;
import icu.samnyan.aqua.sega.util.jackson.BasicMapper; import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@@ -3,7 +3,7 @@ package icu.samnyan.aqua.sega.ongeki.handler.impl;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import icu.samnyan.aqua.sega.ongeki.OgkUserEventPointRepo; import icu.samnyan.aqua.sega.ongeki.OgkUserEventPointRepo;
import icu.samnyan.aqua.sega.general.BaseHandler; 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.ongeki.model.UserEventPoint;
import icu.samnyan.aqua.sega.util.jackson.BasicMapper; import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
import org.slf4j.Logger; import org.slf4j.Logger;

View File

@@ -3,7 +3,7 @@ package icu.samnyan.aqua.sega.ongeki.handler.impl;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import icu.samnyan.aqua.sega.ongeki.OgkUserMusicDetailRepo; import icu.samnyan.aqua.sega.ongeki.OgkUserMusicDetailRepo;
import icu.samnyan.aqua.sega.general.BaseHandler; 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.ongeki.model.UserMusicDetail;
import icu.samnyan.aqua.sega.util.jackson.BasicMapper; import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
import icu.samnyan.aqua.spring.data.OffsetPageRequest; import icu.samnyan.aqua.spring.data.OffsetPageRequest;

View File

@@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import icu.samnyan.aqua.sega.ongeki.OgkUserDataRepo; import icu.samnyan.aqua.sega.ongeki.OgkUserDataRepo;
import icu.samnyan.aqua.sega.ongeki.OgkUserOptionRepo; import icu.samnyan.aqua.sega.ongeki.OgkUserOptionRepo;
import icu.samnyan.aqua.sega.general.BaseHandler; 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.ongeki.model.UserData;
import icu.samnyan.aqua.sega.util.jackson.BasicMapper; import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
import org.slf4j.Logger; import org.slf4j.Logger;

View File

@@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import icu.samnyan.aqua.sega.ongeki.OgkUserDataRepo; import icu.samnyan.aqua.sega.ongeki.OgkUserDataRepo;
import icu.samnyan.aqua.sega.ongeki.OgkUserRivalDataRepo; import icu.samnyan.aqua.sega.ongeki.OgkUserRivalDataRepo;
import icu.samnyan.aqua.sega.general.BaseHandler; 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 icu.samnyan.aqua.sega.util.jackson.BasicMapper;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@@ -3,7 +3,7 @@ package icu.samnyan.aqua.sega.ongeki.handler.impl;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import icu.samnyan.aqua.sega.ongeki.OgkUserMusicDetailRepo; import icu.samnyan.aqua.sega.ongeki.OgkUserMusicDetailRepo;
import icu.samnyan.aqua.sega.general.BaseHandler; 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.sega.util.jackson.BasicMapper;
import icu.samnyan.aqua.spring.data.OffsetPageRequest; import icu.samnyan.aqua.spring.data.OffsetPageRequest;
import org.slf4j.Logger; import org.slf4j.Logger;

View File

@@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import icu.samnyan.aqua.sega.ongeki.OgkUserTechEventRepo; import icu.samnyan.aqua.sega.ongeki.OgkUserTechEventRepo;
import icu.samnyan.aqua.sega.general.BaseHandler; 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.ongeki.model.UserTechEvent;
import icu.samnyan.aqua.sega.util.jackson.BasicMapper; import icu.samnyan.aqua.sega.util.jackson.BasicMapper;
import org.slf4j.Logger; import org.slf4j.Logger;

View File

@@ -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.general.service.CardService
import icu.samnyan.aqua.sega.ongeki.* import icu.samnyan.aqua.sega.ongeki.*
import icu.samnyan.aqua.sega.ongeki.model.* 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 icu.samnyan.aqua.sega.util.jackson.BasicMapper
import org.springframework.beans.factory.annotation.Autowired import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component import org.springframework.stereotype.Component
@@ -61,7 +59,7 @@ class UpsertUserAllHandler @Autowired constructor(
val userOptional = userDataRepository.findByCard_ExtId(userId) val userOptional = userDataRepository.findByCard_ExtId(userId)
// UserData might be empty on later runs // UserData might be empty on later runs
if (userOptional.isEmpty && upsertUserAll.userData.isEmpty()) { if (userOptional.isEmpty && upsertUserAll.userData.isNullOrEmpty()) {
return null return null
} }
@@ -74,7 +72,7 @@ class UpsertUserAllHandler @Autowired constructor(
} }
// If new data exists, use new data. Otherwise, use old data // 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.id = userData.id
u.card = userData.card u.card = userData.card
@@ -82,12 +80,12 @@ class UpsertUserAllHandler @Autowired constructor(
// Set eventWatchedDate with lastPlayDate, because client doesn't update it // Set eventWatchedDate with lastPlayDate, because client doesn't update it
u.eventWatchedDate = userData.lastPlayDate u.eventWatchedDate = userData.lastPlayDate
u.cmEventWatchedDate = userData.lastPlayDate u.cmEventWatchedDate = userData.lastPlayDate
userDataRepository.save<UserData>(u) userDataRepository.save(u)
} }
// UserOption // UserOption
val newUserOption = upsertUserAll.userOption[0] val newUserOption = upsertUserAll.userOption!![0]
val userOptionOptional = userOptionRepository.findSingleByUser(u) val userOptionOptional = userOptionRepository.findSingleByUser(u)
val userOption = userOptionOptional.orElseGet { UserOption().apply { user = u } } val userOption = userOptionOptional.orElseGet { UserOption().apply { user = u } }
@@ -102,9 +100,11 @@ class UpsertUserAllHandler @Autowired constructor(
val userPlaylogList = upsertUserAll.userPlaylogList val userPlaylogList = upsertUserAll.userPlaylogList
val newUserPlaylogList: MutableList<UserPlaylog> = ArrayList() val newUserPlaylogList: MutableList<UserPlaylog> = ArrayList()
for (newUserPlaylog in userPlaylogList) { if (userPlaylogList != null) {
newUserPlaylog.user = u for (newUserPlaylog in userPlaylogList) {
newUserPlaylogList.add(newUserPlaylog) newUserPlaylog.user = u
newUserPlaylogList.add(newUserPlaylog)
}
} }
userPlaylogRepository.saveAll(newUserPlaylogList) userPlaylogRepository.saveAll(newUserPlaylogList)
@@ -117,19 +117,21 @@ class UpsertUserAllHandler @Autowired constructor(
val userActivityList = upsertUserAll.userActivityList val userActivityList = upsertUserAll.userActivityList
val newUserActivityList: MutableList<UserActivity> = ArrayList() val newUserActivityList: MutableList<UserActivity> = ArrayList()
for (newUserActivity in userActivityList) { if (userActivityList != null) {
val kind = newUserActivity.kind for (newUserActivity in userActivityList) {
val id = newUserActivity.activityId val kind = newUserActivity.kind
val id = newUserActivity.activityId
if (kind != 0 && id != 0) { if (kind != 0 && id != 0) {
val activityOptional = userActivityRepository.findByUserAndKindAndActivityId(u, kind, id) val activityOptional = userActivityRepository.findByUserAndKindAndActivityId(u, kind, id)
val userActivity = activityOptional.orElseGet { val userActivity = activityOptional.orElseGet {
UserActivity().apply { user = u } 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) } newUserActivityList.sortWith { a, b -> b.sortNumber.compareTo(a.sortNumber) }
@@ -138,8 +140,7 @@ class UpsertUserAllHandler @Autowired constructor(
// UserRecentRatingList // UserRecentRatingList
// This thing still need to save to solve the rating drop // 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. * The rating and battle point calculation is little bit complex.
@@ -147,51 +148,52 @@ class UpsertUserAllHandler @Autowired constructor(
* into a csv format for convenience * into a csv format for convenience
*/ */
// UserBpBaseList (For calculating Battle point) // 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. // This is the best rating of all charts. Best 30 + 10 after that.
// userRatingBaseBestList // userRatingBaseBestList
this.saveGeneralData(upsertUserAll.userRatingBaseBestList, u, "rating_base_best") upsertUserAll.userRatingBaseBestList?.let { this.saveGeneralData(it, u, "rating_base_best") }
// userRatingBaseNextList // 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. // This is the best rating of new charts. Best 15 + 10 after that.
// New chart means same version // New chart means same version
// userRatingBaseBestNewList // userRatingBaseBestNewList
this.saveGeneralData(upsertUserAll.userRatingBaseBestNewList, u, "rating_base_new_best") upsertUserAll.userRatingBaseBestNewList?.let { this.saveGeneralData(it, u, "rating_base_new_best") }
// userRatingBaseNextNewList // 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 // This is the recent best
// userRatingBaseHotList // userRatingBaseHotList
this.saveGeneralData(upsertUserAll.userRatingBaseHotList, u, "rating_base_hot_best") upsertUserAll.userRatingBaseHotList?.let { this.saveGeneralData(it, u, "rating_base_hot_best") }
// userRatingBaseHotNextList // userRatingBaseHotNextList
this.saveGeneralData(upsertUserAll.userRatingBaseHotNextList, u, "rating_base_hot_next") upsertUserAll.userRatingBaseHotNextList?.let { this.saveGeneralData(it, u, "rating_base_hot_next") }
// UserMusicDetailList // UserMusicDetailList
val userMusicDetailList = upsertUserAll.userMusicDetailList val userMusicDetailList = upsertUserAll.userMusicDetailList
val newUserMusicDetailList: MutableList<UserMusicDetail> = ArrayList() val newUserMusicDetailList: MutableList<UserMusicDetail> = ArrayList()
for (newUserMusicDetail in userMusicDetailList) { if (userMusicDetailList != null) {
val musicId = newUserMusicDetail.musicId for (newUserMusicDetail in userMusicDetailList) {
val level = newUserMusicDetail.level val musicId = newUserMusicDetail.musicId
val level = newUserMusicDetail.level
val musicDetailOptional = val musicDetailOptional =
userMusicDetailRepository.findByUserAndMusicIdAndLevel(u, musicId, level) userMusicDetailRepository.findByUserAndMusicIdAndLevel(u, musicId, level)
val userMusicDetail = musicDetailOptional.orElseGet { val userMusicDetail = musicDetailOptional.orElseGet {
UserMusicDetail().apply { user = u } 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) userMusicDetailRepository.saveAll(newUserMusicDetailList)
@@ -200,17 +202,19 @@ class UpsertUserAllHandler @Autowired constructor(
val userCharacterList = upsertUserAll.userCharacterList val userCharacterList = upsertUserAll.userCharacterList
val newUserCharacterList: MutableList<UserCharacter> = ArrayList() val newUserCharacterList: MutableList<UserCharacter> = ArrayList()
for (newUserCharacter in userCharacterList) { if (userCharacterList != null) {
val characterId = newUserCharacter.characterId for (newUserCharacter in userCharacterList) {
val characterId = newUserCharacter.characterId
val characterOptional = userCharacterRepository.findByUserAndCharacterId(u, characterId) val characterOptional = userCharacterRepository.findByUserAndCharacterId(u, characterId)
val userCharacter = characterOptional.orElseGet { val userCharacter = characterOptional.orElseGet {
UserCharacter().apply { user = u } 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) userCharacterRepository.saveAll(newUserCharacterList)
@@ -218,15 +222,17 @@ class UpsertUserAllHandler @Autowired constructor(
val userCardList = upsertUserAll.userCardList val userCardList = upsertUserAll.userCardList
val newUserCardList: MutableList<UserCard> = ArrayList() val newUserCardList: MutableList<UserCard> = ArrayList()
for (newUserCard in userCardList) { if (userCardList != null) {
val cardId = newUserCard.cardId for (newUserCard in userCardList) {
val cardId = newUserCard.cardId
val cardOptional = userCardRepository.findByUserAndCardId(u, cardId) val cardOptional = userCardRepository.findByUserAndCardId(u, cardId)
val userCard = cardOptional.orElseGet { UserCard().apply { user = u } } val userCard = cardOptional.orElseGet { UserCard().apply { user = u } }
newUserCard.id = userCard.id newUserCard.id = userCard.id
newUserCard.user = u newUserCard.user = u
newUserCardList.add(newUserCard) newUserCardList.add(newUserCard)
}
} }
userCardRepository.saveAll(newUserCardList) userCardRepository.saveAll(newUserCardList)
@@ -235,15 +241,17 @@ class UpsertUserAllHandler @Autowired constructor(
val userDeckList = upsertUserAll.userDeckList val userDeckList = upsertUserAll.userDeckList
val newUserDeckList: MutableList<UserDeck> = ArrayList() val newUserDeckList: MutableList<UserDeck> = ArrayList()
for (newUserDeck in userDeckList) { if (userDeckList != null) {
val deckId = newUserDeck.deckId for (newUserDeck in userDeckList) {
val deckId = newUserDeck.deckId
val deckOptional = userDeckRepository.findByUserAndDeckId(u, deckId) val deckOptional = userDeckRepository.findByUserAndDeckId(u, deckId)
val userDeck = deckOptional.orElseGet { UserDeck().apply { user = u } } val userDeck = deckOptional.orElseGet { UserDeck().apply { user = u } }
newUserDeck.id = userDeck.id newUserDeck.id = userDeck.id
newUserDeck.user = u newUserDeck.user = u
newUserDeckList.add(newUserDeck) newUserDeckList.add(newUserDeck)
}
} }
userDeckRepository.saveAll(newUserDeckList) userDeckRepository.saveAll(newUserDeckList)
@@ -252,15 +260,17 @@ class UpsertUserAllHandler @Autowired constructor(
val userTrainingRoomList = upsertUserAll.userTrainingRoomList val userTrainingRoomList = upsertUserAll.userTrainingRoomList
val newUserTrainingRoomList: MutableList<UserTrainingRoom> = ArrayList() val newUserTrainingRoomList: MutableList<UserTrainingRoom> = ArrayList()
for (newUserTrainingRoom in userTrainingRoomList) { if (userTrainingRoomList != null) {
val roomId = newUserTrainingRoom.roomId for (newUserTrainingRoom in userTrainingRoomList) {
val roomId = newUserTrainingRoom.roomId
val trainingRoomOptional = userTrainingRoomRepository.findByUserAndRoomId(u, roomId) val trainingRoomOptional = userTrainingRoomRepository.findByUserAndRoomId(u, roomId)
val trainingRoom = trainingRoomOptional.orElseGet { UserTrainingRoom().apply { user = u } } val trainingRoom = trainingRoomOptional.orElseGet { UserTrainingRoom().apply { user = u } }
newUserTrainingRoom.id = trainingRoom.id newUserTrainingRoom.id = trainingRoom.id
newUserTrainingRoom.user = u newUserTrainingRoom.user = u
newUserTrainingRoomList.add(newUserTrainingRoom) newUserTrainingRoomList.add(newUserTrainingRoom)
}
} }
userTrainingRoomRepository.saveAll(newUserTrainingRoomList) userTrainingRoomRepository.saveAll(newUserTrainingRoomList)
@@ -269,15 +279,17 @@ class UpsertUserAllHandler @Autowired constructor(
val userStoryList = upsertUserAll.userStoryList val userStoryList = upsertUserAll.userStoryList
val newUserStoryList: MutableList<UserStory> = ArrayList() val newUserStoryList: MutableList<UserStory> = ArrayList()
for (newUserStory in userStoryList) { if (userStoryList != null) {
val storyId = newUserStory.storyId for (newUserStory in userStoryList) {
val storyId = newUserStory.storyId
val storyOptional = userStoryRepository.findByUserAndStoryId(u, storyId) val storyOptional = userStoryRepository.findByUserAndStoryId(u, storyId)
val userStory = storyOptional.orElseGet { UserStory().apply { user = u } } val userStory = storyOptional.orElseGet { UserStory().apply { user = u } }
newUserStory.id = userStory.id newUserStory.id = userStory.id
newUserStory.user = u newUserStory.user = u
newUserStoryList.add(newUserStory) newUserStoryList.add(newUserStory)
}
} }
userStoryRepository.saveAll(newUserStoryList) userStoryRepository.saveAll(newUserStoryList)
@@ -286,15 +298,17 @@ class UpsertUserAllHandler @Autowired constructor(
val userChapterList = upsertUserAll.userChapterList val userChapterList = upsertUserAll.userChapterList
val newUserChapterList: MutableList<UserChapter> = ArrayList() val newUserChapterList: MutableList<UserChapter> = ArrayList()
for (newUserChapter in userChapterList) { if (userChapterList != null) {
val chapterId = newUserChapter.chapterId for (newUserChapter in userChapterList) {
val chapterId = newUserChapter.chapterId
val chapterOptional = userChapterRepository.findByUserAndChapterId(u, chapterId) val chapterOptional = userChapterRepository.findByUserAndChapterId(u, chapterId)
val userChapter = chapterOptional.orElseGet { UserChapter().apply { user = u } } val userChapter = chapterOptional.orElseGet { UserChapter().apply { user = u } }
newUserChapter.id = userChapter.id newUserChapter.id = userChapter.id
newUserChapter.user = u newUserChapter.user = u
newUserChapterList.add(newUserChapter) newUserChapterList.add(newUserChapter)
}
} }
userChapterRepository.saveAll(newUserChapterList) userChapterRepository.saveAll(newUserChapterList)
@@ -322,16 +336,18 @@ class UpsertUserAllHandler @Autowired constructor(
val userItemList = upsertUserAll.userItemList val userItemList = upsertUserAll.userItemList
val newUserItemList: MutableList<UserItem> = ArrayList() val newUserItemList: MutableList<UserItem> = ArrayList()
for (newUserItem in userItemList) { if (userItemList != null) {
val itemKind = newUserItem.itemKind for (newUserItem in userItemList) {
val itemId = newUserItem.itemId val itemKind = newUserItem.itemKind
val itemId = newUserItem.itemId
val itemOptional = userItemRepository.findByUserAndItemKindAndItemId(u, itemKind, itemId) val itemOptional = userItemRepository.findByUserAndItemKindAndItemId(u, itemKind, itemId)
val userItem = itemOptional.orElseGet { UserItem().apply { user = u } } val userItem = itemOptional.orElseGet { UserItem().apply { user = u } }
newUserItem.id = userItem.id newUserItem.id = userItem.id
newUserItem.user = u newUserItem.user = u
newUserItemList.add(newUserItem) newUserItemList.add(newUserItem)
}
} }
userItemRepository.saveAll(newUserItemList) userItemRepository.saveAll(newUserItemList)
@@ -339,15 +355,17 @@ class UpsertUserAllHandler @Autowired constructor(
val userMusicItemList = upsertUserAll.userMusicItemList val userMusicItemList = upsertUserAll.userMusicItemList
val newUserMusicItemList: MutableList<UserMusicItem> = ArrayList() val newUserMusicItemList: MutableList<UserMusicItem> = ArrayList()
for (newUserMusicItem in userMusicItemList) { if (userMusicItemList != null) {
val musicId = newUserMusicItem.musicId for (newUserMusicItem in userMusicItemList) {
val musicId = newUserMusicItem.musicId
val musicItemOptional = userMusicItemRepository.findByUserAndMusicId(u, musicId) val musicItemOptional = userMusicItemRepository.findByUserAndMusicId(u, musicId)
val userMusicItem = musicItemOptional.orElseGet { UserMusicItem().apply { user = u } } val userMusicItem = musicItemOptional.orElseGet { UserMusicItem().apply { user = u } }
newUserMusicItem.id = userMusicItem.id newUserMusicItem.id = userMusicItem.id
newUserMusicItem.user = u newUserMusicItem.user = u
newUserMusicItemList.add(newUserMusicItem) newUserMusicItemList.add(newUserMusicItem)
}
} }
userMusicItemRepository.saveAll(newUserMusicItemList) userMusicItemRepository.saveAll(newUserMusicItemList)
@@ -356,17 +374,19 @@ class UpsertUserAllHandler @Autowired constructor(
val userLoginBonusList = upsertUserAll.userLoginBonusList val userLoginBonusList = upsertUserAll.userLoginBonusList
val newUserLoginBonusList: MutableList<UserLoginBonus> = ArrayList() val newUserLoginBonusList: MutableList<UserLoginBonus> = ArrayList()
for (newUserLoginBonus in userLoginBonusList) { if (userLoginBonusList != null) {
val bonusId = newUserLoginBonus.bonusId for (newUserLoginBonus in userLoginBonusList) {
val bonusId = newUserLoginBonus.bonusId
val loginBonusOptional = userLoginBonusRepository.findByUserAndBonusId(u, bonusId) val loginBonusOptional = userLoginBonusRepository.findByUserAndBonusId(u, bonusId)
val userLoginBonus = loginBonusOptional.orElseGet { val userLoginBonus = loginBonusOptional.orElseGet {
UserLoginBonus().apply { user = u } 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) userLoginBonusRepository.saveAll(newUserLoginBonusList)
@@ -375,15 +395,17 @@ class UpsertUserAllHandler @Autowired constructor(
val userEventPointList = upsertUserAll.userEventPointList val userEventPointList = upsertUserAll.userEventPointList
val newUserEventPointList: MutableList<UserEventPoint> = ArrayList() val newUserEventPointList: MutableList<UserEventPoint> = ArrayList()
for (newUserEventPoint in userEventPointList) { if (userEventPointList != null) {
val eventId = newUserEventPoint.eventId for (newUserEventPoint in userEventPointList) {
val eventId = newUserEventPoint.eventId
val eventPointOptional = userEventPointRepository.findByUserAndEventId(u, eventId) val eventPointOptional = userEventPointRepository.findByUserAndEventId(u, eventId)
val userEventPoint = eventPointOptional.orElseGet { UserEventPoint().apply { user = u } } val userEventPoint = eventPointOptional.orElseGet { UserEventPoint().apply { user = u } }
newUserEventPoint.id = userEventPoint.id newUserEventPoint.id = userEventPoint.id
newUserEventPoint.user = u newUserEventPoint.user = u
newUserEventPointList.add(newUserEventPoint) newUserEventPointList.add(newUserEventPoint)
}
} }
userEventPointRepository.saveAll(newUserEventPointList) userEventPointRepository.saveAll(newUserEventPointList)
@@ -392,15 +414,17 @@ class UpsertUserAllHandler @Autowired constructor(
val userMissionPointList = upsertUserAll.userMissionPointList val userMissionPointList = upsertUserAll.userMissionPointList
val newUserMissionPointList: MutableList<UserMissionPoint> = ArrayList() val newUserMissionPointList: MutableList<UserMissionPoint> = ArrayList()
for (newUserMissionPoint in userMissionPointList) { if (userMissionPointList != null) {
val eventId = newUserMissionPoint.eventId for (newUserMissionPoint in userMissionPointList) {
val eventId = newUserMissionPoint.eventId
val userMissionPointOptional = userMissionPointRepository.findByUserAndEventId(u, eventId) val userMissionPointOptional = userMissionPointRepository.findByUserAndEventId(u, eventId)
val userMissionPoint = userMissionPointOptional.orElseGet { UserMissionPoint().apply { user = u } } val userMissionPoint = userMissionPointOptional.orElseGet { UserMissionPoint().apply { user = u } }
newUserMissionPoint.id = userMissionPoint.id newUserMissionPoint.id = userMissionPoint.id
newUserMissionPoint.user = u newUserMissionPoint.user = u
newUserMissionPointList.add(newUserMissionPoint) newUserMissionPointList.add(newUserMissionPoint)
}
} }
userMissionPointRepository.saveAll(newUserMissionPointList) userMissionPointRepository.saveAll(newUserMissionPointList)
@@ -463,17 +487,19 @@ class UpsertUserAllHandler @Autowired constructor(
val userTradeItemList = upsertUserAll.userTradeItemList val userTradeItemList = upsertUserAll.userTradeItemList
val newUserTradeItemList: MutableList<UserTradeItem> = ArrayList() val newUserTradeItemList: MutableList<UserTradeItem> = ArrayList()
for (newUserTradeItem in userTradeItemList) { if (userTradeItemList != null) {
val chapterId = newUserTradeItem.chapterId for (newUserTradeItem in userTradeItemList) {
val tradeItemId = newUserTradeItem.tradeItemId val chapterId = newUserTradeItem.chapterId
val tradeItemId = newUserTradeItem.tradeItemId
val tradeItemOptional = val tradeItemOptional =
userTradeItemRepository.findByUserAndChapterIdAndTradeItemId(u, chapterId, tradeItemId) userTradeItemRepository.findByUserAndChapterIdAndTradeItemId(u, chapterId, tradeItemId)
val userTradeItem = tradeItemOptional.orElseGet { UserTradeItem().apply { user = u } } val userTradeItem = tradeItemOptional.orElseGet { UserTradeItem().apply { user = u } }
newUserTradeItem.id = userTradeItem.id newUserTradeItem.id = userTradeItem.id
newUserTradeItem.user = u newUserTradeItem.user = u
newUserTradeItemList.add(newUserTradeItem) newUserTradeItemList.add(newUserTradeItem)
}
} }
userTradeItemRepository.saveAll(newUserTradeItemList) userTradeItemRepository.saveAll(newUserTradeItemList)
@@ -481,18 +507,20 @@ class UpsertUserAllHandler @Autowired constructor(
val userEventMusicList = upsertUserAll.userEventMusicList val userEventMusicList = upsertUserAll.userEventMusicList
val newUserEventMusicList: MutableList<UserEventMusic> = ArrayList() val newUserEventMusicList: MutableList<UserEventMusic> = ArrayList()
for (newUserEventMusic in userEventMusicList) { if (userEventMusicList != null) {
val eventId = newUserEventMusic.eventId for (newUserEventMusic in userEventMusicList) {
val type = newUserEventMusic.type val eventId = newUserEventMusic.eventId
val musicId = newUserEventMusic.musicId val type = newUserEventMusic.type
val musicId = newUserEventMusic.musicId
val eventMusicOptional = val eventMusicOptional =
userEventMusicRepository.findByUserAndEventIdAndTypeAndMusicId(u, eventId, type, musicId) userEventMusicRepository.findByUserAndEventIdAndTypeAndMusicId(u, eventId, type, musicId)
val userEventMusic = eventMusicOptional.orElseGet { UserEventMusic().apply { user = u } } val userEventMusic = eventMusicOptional.orElseGet { UserEventMusic().apply { user = u } }
newUserEventMusic.id = userEventMusic.id newUserEventMusic.id = userEventMusic.id
newUserEventMusic.user = u newUserEventMusic.user = u
newUserEventMusicList.add(newUserEventMusic) newUserEventMusicList.add(newUserEventMusic)
}
} }
userEventMusicRepository.saveAll(newUserEventMusicList) userEventMusicRepository.saveAll(newUserEventMusicList)
@@ -500,15 +528,17 @@ class UpsertUserAllHandler @Autowired constructor(
val userTechEventList = upsertUserAll.userTechEventList val userTechEventList = upsertUserAll.userTechEventList
val newUserTechEventList: MutableList<UserTechEvent> = ArrayList() val newUserTechEventList: MutableList<UserTechEvent> = ArrayList()
for (newUserTechEvent in userTechEventList) { if (userTechEventList != null) {
val eventId = newUserTechEvent.eventId for (newUserTechEvent in userTechEventList) {
val eventId = newUserTechEvent.eventId
val techEventOptional = userTechEventRepository.findByUserAndEventId(u, eventId) val techEventOptional = userTechEventRepository.findByUserAndEventId(u, eventId)
val userTechEvent = techEventOptional.orElseGet { UserTechEvent().apply { user = u } } val userTechEvent = techEventOptional.orElseGet { UserTechEvent().apply { user = u } }
newUserTechEvent.id = userTechEvent.id newUserTechEvent.id = userTechEvent.id
newUserTechEvent.user = u newUserTechEvent.user = u
newUserTechEventList.add(newUserTechEvent) newUserTechEventList.add(newUserTechEvent)
}
} }
userTechEventRepository.saveAll(newUserTechEventList) userTechEventRepository.saveAll(newUserTechEventList)
@@ -516,16 +546,18 @@ class UpsertUserAllHandler @Autowired constructor(
val userKopList = upsertUserAll.userKopList val userKopList = upsertUserAll.userKopList
val newUserKopList: MutableList<UserKop> = ArrayList() val newUserKopList: MutableList<UserKop> = ArrayList()
for (newUserKop in userKopList) { if (userKopList != null) {
val kopId = newUserKop.kopId for (newUserKop in userKopList) {
val areaId = newUserKop.areaId val kopId = newUserKop.kopId
val areaId = newUserKop.areaId
val kopOptional = userKopRepository.findByUserAndKopIdAndAreaId(u, kopId, areaId) val kopOptional = userKopRepository.findByUserAndKopIdAndAreaId(u, kopId, areaId)
val userKop = kopOptional.orElseGet { UserKop().apply { user = u } } val userKop = kopOptional.orElseGet { UserKop().apply { user = u } }
newUserKop.id = userKop.id newUserKop.id = userKop.id
newUserKop.user = u newUserKop.user = u
newUserKopList.add(newUserKop) newUserKopList.add(newUserKop)
}
} }
userKopRepository.saveAll(newUserKopList) userKopRepository.saveAll(newUserKopList)

View File

@@ -1,7 +1,43 @@
package icu.samnyan.aqua.sega.ongeki.model.response.data package icu.samnyan.aqua.sega.ongeki.model
import ext.Bool 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( class GameEventItem(
var id: Long = 0, var id: Long = 0,

View File

@@ -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
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}