forked from Cookies_Github_mirror/AquaDX
Initial Commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package icu.samnyan.aqua.sega.diva.model;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public interface Internalizable {
|
||||
String toInternal();
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum ChallengeKind {
|
||||
UNDEFINED(-1),
|
||||
CLEAR(0),
|
||||
GREAT(1),
|
||||
EXCELLENT(2),
|
||||
PERFECT(3),
|
||||
COMPLETED(4);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
ChallengeKind(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
public static ChallengeKind fromValue(int i) {
|
||||
for (ChallengeKind challengeKind :
|
||||
ChallengeKind.values()) {
|
||||
if (challengeKind.getValue() == i) return challengeKind;
|
||||
}
|
||||
return ChallengeKind.UNDEFINED;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum ClearResult implements ValueEnum {
|
||||
NO_CLEAR(-1),
|
||||
MISS_TAKE(0),
|
||||
CHEAP(1),
|
||||
STANDARD(2),
|
||||
GREAT(3),
|
||||
EXCELLENT(4),
|
||||
PERFECT(5);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
ClearResult(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
public static ClearResult fromValue(int i) {
|
||||
for (ClearResult clearResult :
|
||||
ClearResult.values()) {
|
||||
if (clearResult.getValue() == i) return clearResult;
|
||||
}
|
||||
return ClearResult.NO_CLEAR;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public class Const {
|
||||
public final static String ALL_NOT_HAVE = "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
|
||||
public final static String ALL_NOT_HAVE_TEST = "0";
|
||||
public final static String ALL_HAVE = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
|
||||
public final static String NULL_QUEST = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1";
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum ContestBorder {
|
||||
NONE(-1),
|
||||
BRONZE(0),
|
||||
SILVER(1),
|
||||
GOLD(2);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
ContestBorder(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum ContestLeague {
|
||||
BEGINNER(0),
|
||||
INTERMEDIATE(1),
|
||||
ADVANCED(2),
|
||||
PROFESSIONAL(3);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
ContestLeague(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum ContestNormaType {
|
||||
SCORE(0),
|
||||
PERCENTAGE(1),
|
||||
COOL_PERCENTAGE(2);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
ContestNormaType(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum ContestStageLimit {
|
||||
UNLIMITED(0),
|
||||
LIMITED(1);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
ContestStageLimit(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum Difficulty {
|
||||
UNDEFINED(-1),
|
||||
EASY(0),
|
||||
NORMAL(1),
|
||||
HARD(2),
|
||||
EXTREME(3);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
Difficulty(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
public static Difficulty fromValue(int i) {
|
||||
for (Difficulty difficulty :
|
||||
Difficulty.values()) {
|
||||
if (difficulty.getValue() == i) return difficulty;
|
||||
}
|
||||
return Difficulty.UNDEFINED;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum Edition {
|
||||
ORIGINAL(0),
|
||||
EXTRA(1);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
Edition(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
public static Edition fromValue(int i) {
|
||||
for (Edition edition :
|
||||
Edition.values()) {
|
||||
if (edition.getValue() == i) return edition;
|
||||
}
|
||||
return Edition.ORIGINAL;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum FestaKind {
|
||||
PINK_FESTA(0),
|
||||
GREEN_FESTA(1);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
FestaKind(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class LevelInfo {
|
||||
private int levelNumber;
|
||||
private int levelExp;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum PassStat {
|
||||
MISS(0),
|
||||
SET(1),
|
||||
RESET(2),
|
||||
REISSUE(3);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
PassStat(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum PreStartResult {
|
||||
SUCCESS(1),
|
||||
FAILED(0),
|
||||
CARD_TOO_NEW(-1),
|
||||
ALREADY_PLAYING(-2),
|
||||
NEW_REGISTRATION(-3),
|
||||
CARD_BANNED(-4);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
PreStartResult(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum Result {
|
||||
FAILED(0),
|
||||
SUCCESS(1);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
Result(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum SortMode {
|
||||
COMPLEXITY(0),
|
||||
NAME(1),
|
||||
RELEASE_DATE(2),
|
||||
MY_LIST_A(3),
|
||||
MY_LIST_B(4),
|
||||
MY_LIST_C(5);
|
||||
|
||||
|
||||
private int value;
|
||||
|
||||
SortMode(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
public static SortMode fromValue(int i) {
|
||||
for (SortMode sortMode :
|
||||
SortMode.values()) {
|
||||
if (sortMode.getValue() == i) return sortMode;
|
||||
}
|
||||
return SortMode.RELEASE_DATE;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum StartMode {
|
||||
PRE_START,
|
||||
START,
|
||||
CARD_PROCEDURE
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public interface ValueEnum {
|
||||
int getValue();
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common.attend;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.Internalizable;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class DispersalParameter implements Internalizable {
|
||||
private int max_pd_items = 30;
|
||||
private int max_ps_rankings = 100;
|
||||
private int max_uploadable_screenshots = 2;
|
||||
private int ss_upload_delay = 1;
|
||||
|
||||
@Override
|
||||
public String toInternal() {
|
||||
List<Integer> list = new LinkedList<>();
|
||||
list.add(max_pd_items);
|
||||
list.add(1);
|
||||
list.add(max_ps_rankings);
|
||||
list.add(max_uploadable_screenshots);
|
||||
list.add(ss_upload_delay);
|
||||
list.add(1);
|
||||
list.addAll(Collections.nCopies(100, 0));
|
||||
return list.stream().limit(100).map(Object::toString).collect(Collectors.joining(","));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common.attend;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.Internalizable;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class EtcParameter implements Internalizable {
|
||||
private Boolean module_shop_close = false;
|
||||
private Boolean card_reissue_close = true;
|
||||
private Boolean card_renewal_close = true;
|
||||
private Boolean reset_passwd_close = true;
|
||||
private Boolean change_passwd_close = false;
|
||||
private Boolean change_name_close = false;
|
||||
private Boolean encore_mode_close = true;
|
||||
private Boolean third_stg_mode_close = false;
|
||||
private Integer slow_down_threshold = 0;
|
||||
private Boolean log_write_flag = false;
|
||||
private Boolean daily_quest_close = true;
|
||||
private Boolean weekly_quest_close = true;
|
||||
private Boolean special_quest_close = true;
|
||||
private Boolean nppg_close = false;
|
||||
|
||||
@Override
|
||||
public String toInternal() {
|
||||
List<Object> list = new LinkedList<>();
|
||||
list.add(module_shop_close);
|
||||
list.add(card_reissue_close);
|
||||
list.add(card_renewal_close);
|
||||
list.add(reset_passwd_close);
|
||||
list.add(change_passwd_close);
|
||||
list.add(change_name_close);
|
||||
list.add(encore_mode_close);
|
||||
list.add(third_stg_mode_close);
|
||||
list.add(slow_down_threshold);
|
||||
list.add(log_write_flag);
|
||||
list.add(daily_quest_close);
|
||||
list.add(weekly_quest_close);
|
||||
list.add(special_quest_close);
|
||||
list.add(nppg_close);
|
||||
list.addAll(Collections.nCopies(100, 0));
|
||||
return list.stream().limit(100).map(x -> {
|
||||
if (x instanceof Boolean) {
|
||||
return (Boolean) x ? "1" : "0";
|
||||
}
|
||||
if (x instanceof Integer) {
|
||||
return String.valueOf(x);
|
||||
}
|
||||
return "0";
|
||||
}).collect(Collectors.joining(","));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common.attend;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.Internalizable;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class GameBalanceParameter implements Internalizable {
|
||||
|
||||
private int name_change_price = 100;
|
||||
private GameBalanceTrialBidSet easy_trials = new GameBalanceTrialBidSet(
|
||||
new GameBalanceTrialBid(5, 10),
|
||||
new GameBalanceTrialBid(10, 25),
|
||||
new GameBalanceTrialBid(20, 50),
|
||||
new GameBalanceTrialBid(30, 90)
|
||||
);
|
||||
private GameBalanceTrialBidSet normal_trials = new GameBalanceTrialBidSet(
|
||||
new GameBalanceTrialBid(5, 10),
|
||||
new GameBalanceTrialBid(10, 25),
|
||||
new GameBalanceTrialBid(20, 50),
|
||||
new GameBalanceTrialBid(30, 90)
|
||||
);
|
||||
private GameBalanceTrialBidSet hard_trials = new GameBalanceTrialBidSet(
|
||||
new GameBalanceTrialBid(5, 10),
|
||||
new GameBalanceTrialBid(10, 25),
|
||||
new GameBalanceTrialBid(20, 50),
|
||||
new GameBalanceTrialBid(30, 90)
|
||||
);
|
||||
private GameBalanceTrialBidSet extreme_trials = new GameBalanceTrialBidSet(
|
||||
new GameBalanceTrialBid(5, 10),
|
||||
new GameBalanceTrialBid(10, 25),
|
||||
new GameBalanceTrialBid(20, 50),
|
||||
new GameBalanceTrialBid(30, 90)
|
||||
);
|
||||
private GameBalanceTrialBidSet extra_extreme_trials = new GameBalanceTrialBidSet(
|
||||
new GameBalanceTrialBid(5, 10),
|
||||
new GameBalanceTrialBid(10, 25),
|
||||
new GameBalanceTrialBid(20, 50),
|
||||
new GameBalanceTrialBid(30, 90)
|
||||
);
|
||||
|
||||
@Override
|
||||
public String toInternal() {
|
||||
Integer[] arr = new Integer[]{
|
||||
this.name_change_price,
|
||||
0, // unkn
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4, // unkn
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
3,
|
||||
4,
|
||||
5, // unkn
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
4,
|
||||
5,
|
||||
6, // unkn
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
5,
|
||||
6,
|
||||
7, // unkn
|
||||
4,
|
||||
4,
|
||||
4,
|
||||
9,
|
||||
10,
|
||||
14 // unkn
|
||||
};
|
||||
List<Integer> list = new LinkedList<>(Arrays.asList(arr));
|
||||
list.addAll(easy_trials.getArr());
|
||||
list.addAll(normal_trials.getArr());
|
||||
list.addAll(hard_trials.getArr());
|
||||
list.addAll(extreme_trials.getArr());
|
||||
list.addAll(extra_extreme_trials.getArr());
|
||||
list.add(10);
|
||||
list.add(30);
|
||||
list.addAll(Collections.nCopies(100, 0));
|
||||
return list.stream().limit(100).map(Object::toString).collect(Collectors.joining(","));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common.attend;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class GameBalanceTrialBid {
|
||||
private int pay;
|
||||
private int win;
|
||||
|
||||
public String getString() {
|
||||
return pay + "," + win;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common.attend;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class GameBalanceTrialBidSet {
|
||||
private GameBalanceTrialBid clear;
|
||||
private GameBalanceTrialBid great;
|
||||
private GameBalanceTrialBid excellent;
|
||||
private GameBalanceTrialBid perfect;
|
||||
|
||||
public List<Integer> getArr() {
|
||||
Integer[] arr = new Integer[]{
|
||||
clear.getPay(),
|
||||
clear.getWin(),
|
||||
great.getPay(),
|
||||
great.getWin(),
|
||||
excellent.getPay(),
|
||||
excellent.getWin(),
|
||||
perfect.getPay(),
|
||||
perfect.getWin(),
|
||||
};
|
||||
return new LinkedList<>(Arrays.asList(arr));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common.collection;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class ClearSet {
|
||||
private int clear = 0;
|
||||
private int great = 0;
|
||||
private int excellent = 0;
|
||||
private int perfect = 0;
|
||||
|
||||
public void addClear() {
|
||||
this.clear += 1;
|
||||
}
|
||||
|
||||
public void addGreat() {
|
||||
this.great += 1;
|
||||
}
|
||||
|
||||
public void addExcellent() {
|
||||
this.excellent += 1;
|
||||
}
|
||||
|
||||
public void addPerfect() {
|
||||
this.perfect += 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common.collection;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.Internalizable;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class ClearTally implements Internalizable {
|
||||
|
||||
private ClearSet easy = new ClearSet();
|
||||
private ClearSet normal = new ClearSet();
|
||||
private ClearSet hard = new ClearSet();
|
||||
private ClearSet extreme = new ClearSet();
|
||||
private ClearSet extraExtreme = new ClearSet();
|
||||
|
||||
@Override
|
||||
public String toInternal() {
|
||||
List<Integer> list = new LinkedList<>();
|
||||
list.add(easy.getClear());
|
||||
list.add(easy.getGreat());
|
||||
list.add(easy.getExcellent());
|
||||
list.add(easy.getPerfect());
|
||||
list.add(normal.getClear());
|
||||
list.add(normal.getGreat());
|
||||
list.add(normal.getExcellent());
|
||||
list.add(normal.getPerfect());
|
||||
list.add(hard.getClear());
|
||||
list.add(hard.getGreat());
|
||||
list.add(hard.getExcellent());
|
||||
list.add(hard.getPerfect());
|
||||
list.add(extreme.getClear());
|
||||
list.add(extreme.getGreat());
|
||||
list.add(extreme.getExcellent());
|
||||
list.add(extreme.getPerfect());
|
||||
list.add(extraExtreme.getClear());
|
||||
list.add(extraExtreme.getGreat());
|
||||
list.add(extraExtreme.getExcellent());
|
||||
list.add(extraExtreme.getPerfect());
|
||||
return list.stream().map(Object::toString).collect(Collectors.joining(","));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common.collection;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.gamedata.Festa;
|
||||
import icu.samnyan.aqua.sega.diva.util.DivaDateTimeUtil;
|
||||
import icu.samnyan.aqua.sega.util.URIEncoder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
public class FestaCollection {
|
||||
private Festa firstFesta = new Festa();
|
||||
private Festa secondFesta = new Festa();
|
||||
|
||||
public FestaCollection(Festa firstFesta, Festa secondFesta) {
|
||||
this.firstFesta = firstFesta;
|
||||
this.secondFesta = secondFesta;
|
||||
}
|
||||
|
||||
public FestaCollection(Festa firstFesta) {
|
||||
this.firstFesta = firstFesta;
|
||||
}
|
||||
|
||||
public FestaCollection(List<Festa> festas) {
|
||||
if (festas.size() >= 2) {
|
||||
this.firstFesta = festas.get(0);
|
||||
this.secondFesta = festas.get(1);
|
||||
} else if (festas.size() == 1) {
|
||||
this.firstFesta = festas.get(0);
|
||||
}
|
||||
}
|
||||
|
||||
public String getIds() {
|
||||
return this.firstFesta.getId() + "," + this.secondFesta.getId();
|
||||
}
|
||||
|
||||
public String getNames() {
|
||||
return URIEncoder.encode(this.firstFesta.getName()) + "," + URIEncoder.encode(this.secondFesta.getName());
|
||||
}
|
||||
|
||||
public String getKinds() {
|
||||
return this.firstFesta.getKind().getValue() + "," + this.secondFesta.getKind().getValue();
|
||||
}
|
||||
|
||||
public String getDiffs() {
|
||||
return this.firstFesta.getDifficulty().getValue() + "," + this.secondFesta.getDifficulty().getValue();
|
||||
}
|
||||
|
||||
public String getPvIds() {
|
||||
return this.firstFesta.getPvList() + "," + this.secondFesta.getPvList();
|
||||
}
|
||||
|
||||
public String getAttr() {
|
||||
return this.firstFesta.getAttributes() + "," + this.secondFesta.getAttributes();
|
||||
}
|
||||
|
||||
public String getAddVps() {
|
||||
return this.firstFesta.getAddVP() + "," + this.secondFesta.getAddVP();
|
||||
}
|
||||
|
||||
public String getVpMultipliers() {
|
||||
return this.firstFesta.getVpMultiplier() + "," + this.secondFesta.getVpMultiplier();
|
||||
}
|
||||
|
||||
public String getStarts() {
|
||||
return DivaDateTimeUtil.getString(this.firstFesta.getStart()) + "," + DivaDateTimeUtil.getString(this.secondFesta.getStart());
|
||||
}
|
||||
|
||||
public String getEnds() {
|
||||
return DivaDateTimeUtil.getString(this.firstFesta.getEnd()) + "," + DivaDateTimeUtil.getString(this.secondFesta.getEnd());
|
||||
}
|
||||
|
||||
public String getLastUpdateTime() {
|
||||
return DivaDateTimeUtil.getString(this.firstFesta.getCreateDate().compareTo(this.secondFesta.getCreateDate()) < 0 ? this.firstFesta.getCreateDate() : this.secondFesta.getCreateDate());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.common.collection;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Edition;
|
||||
import icu.samnyan.aqua.sega.diva.model.userdata.PlayerPvRecord;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
public class PsRankingCollection {
|
||||
private PlayerPvRecord first;
|
||||
private PlayerPvRecord second;
|
||||
private PlayerPvRecord third;
|
||||
|
||||
public PsRankingCollection(int pvId, Edition edition, List<PlayerPvRecord> list) {
|
||||
this.first = new PlayerPvRecord(pvId, edition);
|
||||
this.second = new PlayerPvRecord(pvId, edition);
|
||||
this.third = new PlayerPvRecord(pvId, edition);
|
||||
if (list.size() >= 1) {
|
||||
this.first = list.get(0);
|
||||
}
|
||||
if (list.size() >= 2) {
|
||||
this.second = list.get(1);
|
||||
}
|
||||
if (list.size() >= 3) {
|
||||
this.third = list.get(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.gamedata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.ContestLeague;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.ContestNormaType;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.ContestStageLimit;
|
||||
import icu.samnyan.aqua.sega.diva.util.DivaDateTimeUtil;
|
||||
import icu.samnyan.aqua.sega.util.URIEncoder;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaContest")
|
||||
@Table(name = "diva_contest")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Contest implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private int id;
|
||||
|
||||
private boolean enable;
|
||||
|
||||
private LocalDateTime startTime;
|
||||
|
||||
private LocalDateTime endTime;
|
||||
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ContestLeague league;
|
||||
|
||||
private int stars;
|
||||
|
||||
private int minComplexity;
|
||||
|
||||
private int maxComplexity;
|
||||
|
||||
private int stages;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ContestStageLimit stageLimit;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ContestNormaType normaType;
|
||||
|
||||
private int bronzeBorders = 0;
|
||||
|
||||
private int sliverBorders = 0;
|
||||
|
||||
private int goldBorders = 0;
|
||||
|
||||
public String getString() {
|
||||
List<Object> list = new LinkedList<>();
|
||||
list.add(this.id);
|
||||
list.add(DivaDateTimeUtil.format(this.startTime));
|
||||
list.add(DivaDateTimeUtil.format(this.endTime));
|
||||
list.add(URIEncoder.encode(this.name));
|
||||
list.add(URIEncoder.encode(this.description));
|
||||
list.add(this.league.getValue());
|
||||
list.add(this.stars);
|
||||
list.add(this.stages);
|
||||
list.add(this.stageLimit.getValue());
|
||||
list.add(this.normaType.getValue());
|
||||
list.add(this.bronzeBorders);
|
||||
list.add(this.sliverBorders);
|
||||
list.add(this.goldBorders);
|
||||
list.add(-1);
|
||||
list.add(-2);
|
||||
list.add(this.minComplexity);
|
||||
list.add(this.maxComplexity);
|
||||
list.add(-1);
|
||||
list.add(-2);
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("-2");
|
||||
list.add("7fffffffffffffffffffffffffffffff");
|
||||
return list.stream().map(Object::toString).collect(Collectors.joining(","));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.gamedata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import icu.samnyan.aqua.sega.diva.model.Internalizable;
|
||||
import icu.samnyan.aqua.sega.diva.util.DivaDateTimeUtil;
|
||||
import icu.samnyan.aqua.sega.util.URIEncoder;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaCustomize")
|
||||
@Table(name = "diva_customize")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class DivaCustomize implements Serializable, Internalizable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@JsonIgnore
|
||||
private int id;
|
||||
|
||||
private String name;
|
||||
|
||||
private int price;
|
||||
|
||||
private LocalDateTime releaseDate;
|
||||
|
||||
private LocalDateTime endDate;
|
||||
|
||||
private int sortOrder;
|
||||
|
||||
@Override
|
||||
public String toInternal() {
|
||||
return id + ",0," +
|
||||
URIEncoder.encode(name) + "," +
|
||||
price + "," +
|
||||
DivaDateTimeUtil.format(releaseDate) + "," +
|
||||
DivaDateTimeUtil.format(endDate) + "," +
|
||||
sortOrder;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.gamedata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import icu.samnyan.aqua.sega.diva.model.Internalizable;
|
||||
import icu.samnyan.aqua.sega.diva.util.DivaDateTimeUtil;
|
||||
import icu.samnyan.aqua.sega.util.URIEncoder;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaModule")
|
||||
@Table(name = "diva_module")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class DivaModule implements Serializable, Internalizable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@JsonIgnore
|
||||
private int id;
|
||||
|
||||
private String name;
|
||||
|
||||
private int price;
|
||||
|
||||
private LocalDateTime releaseDate;
|
||||
|
||||
private LocalDateTime endDate;
|
||||
|
||||
private int sortOrder;
|
||||
|
||||
@Override
|
||||
public String toInternal() {
|
||||
return id + ",0," +
|
||||
URIEncoder.encode(name) + "," +
|
||||
price + "," +
|
||||
DivaDateTimeUtil.format(releaseDate) + "," +
|
||||
DivaDateTimeUtil.format(endDate) + "," +
|
||||
sortOrder;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.gamedata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Difficulty;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.FestaKind;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaFesta")
|
||||
@Table(name = "diva_festa")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Festa implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private int id = -1;
|
||||
|
||||
private boolean enable = true;
|
||||
|
||||
private String name = "xxx";
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private FestaKind kind = FestaKind.PINK_FESTA;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Difficulty difficulty = Difficulty.UNDEFINED;
|
||||
|
||||
private String pvList = "ALL";
|
||||
|
||||
private String attributes = "7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
|
||||
|
||||
private Integer addVP = 0;
|
||||
|
||||
private Integer vpMultiplier = 1;
|
||||
|
||||
private LocalDateTime start = LocalDateTime.of(2005, 1, 1, 0, 0);
|
||||
|
||||
private LocalDateTime end = LocalDateTime.of(2005, 1, 1, 0, 0);
|
||||
|
||||
private LocalDateTime createDate = LocalDateTime.of(2005, 1, 1, 0, 0);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.gamedata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaNgWords")
|
||||
@Table(name = "diva_ng_words")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class NgWords implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private int id;
|
||||
|
||||
private String word;
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.gamedata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Difficulty;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Edition;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaPvEntry")
|
||||
@Table(name = "diva_pv_entry")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PvEntry implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
private int pvId;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Difficulty difficulty;
|
||||
|
||||
private int version;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Edition edition;
|
||||
|
||||
private LocalDateTime demoStart;
|
||||
|
||||
private LocalDateTime demoEnd;
|
||||
|
||||
private LocalDateTime playableStart;
|
||||
|
||||
private LocalDateTime playableEnd;
|
||||
|
||||
public PvEntry(int pvId, Difficulty difficulty, int version, Edition edition, LocalDateTime demoStart, LocalDateTime demoEnd, LocalDateTime playableStart, LocalDateTime playableEnd) {
|
||||
this.pvId = pvId;
|
||||
this.difficulty = difficulty;
|
||||
this.version = version;
|
||||
this.edition = edition;
|
||||
this.demoStart = demoStart;
|
||||
this.demoEnd = demoEnd;
|
||||
this.playableStart = playableStart;
|
||||
this.playableEnd = playableEnd;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.ZonedDateTime;
|
||||
|
||||
/**
|
||||
* Data format from <url>https://dev.s-ul.eu/mikumiku/minime/wikis/home</url>
|
||||
*
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class BaseRequest {
|
||||
private String cmd; // Command
|
||||
private String req_id; // Request Id
|
||||
private String game_id; // Game Id
|
||||
private String r_ver; // Game Version
|
||||
private String kc_serial; // KeyChip Serial
|
||||
private String b_serial; // Board Serial
|
||||
private String place_id; // Place Id
|
||||
private ZonedDateTime time_stamp;
|
||||
private String start_up_mode; // Satellite mode, as on dipsw#1, 0 is SUB and 1 is MAIN
|
||||
private String cmm_dly_mod;
|
||||
private String cmm_dly_sec;
|
||||
private String cmm_err_mod;
|
||||
private String country_code;
|
||||
private String region_code;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class FormRequest {
|
||||
private String query;
|
||||
private MultipartFile bin;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.boot;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* <url>https://dev.s-ul.eu/mikumiku/minime/wikis/Command/attend</url>
|
||||
*
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class AttendRequest extends BaseRequest {
|
||||
public String atnd_lut; // Date-Time of last attend state update
|
||||
public String atnd_prm1; // Etc. Parameter, only 14 are used, but array of 100 int
|
||||
public String atnd_prm2; // Game balance parameter, only 89 are used of 100
|
||||
public String atnd_prm3; // Dispersal parameter, only 6 used of 100
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.boot;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class GameInitRequest extends BaseRequest {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.card;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class CardProcedureRequest extends BaseRequest {
|
||||
private int cd_adm_cmd;
|
||||
private String a_code;
|
||||
private int aime_id;
|
||||
private String aime_a_code;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.card;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ChangeNameRequest extends BaseRequest {
|
||||
private String a_code;
|
||||
private int aime_id;
|
||||
private String aime_a_code;
|
||||
private int pd_id;
|
||||
private int accept_idx;
|
||||
private String player_name;
|
||||
private int chg_name_price;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.card;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ChangePasswdRequest extends BaseRequest {
|
||||
private String a_code;
|
||||
private int aime_id;
|
||||
private String aime_a_code;
|
||||
private int pd_id;
|
||||
private int accept_idx;
|
||||
private String new_passwd;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.card;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class RegistrationRequest extends BaseRequest {
|
||||
private String pmm;
|
||||
private String idm;
|
||||
private String mmgameid;
|
||||
private String mmuid;
|
||||
private String a_code;
|
||||
private int aime_id;
|
||||
private String aime_a_code;
|
||||
private String key_obj_type;
|
||||
private String player_name;
|
||||
private String passwd;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class BannerDataRequest extends BaseRequest {
|
||||
private int bd_id;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PsRankingRequest extends BaseRequest {
|
||||
private int[] rnk_ps_pv_id_lst;
|
||||
private int rnk_ps_idx;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class BuyCstmzItmRequest extends BaseRequest {
|
||||
private int pd_id;
|
||||
private int accept_idx;
|
||||
private int start_idx;
|
||||
private int cstmz_itm_id;
|
||||
private int cstmz_itm_price;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class BuyModuleRequest extends BaseRequest {
|
||||
private int pd_id;
|
||||
private int accept_idx;
|
||||
private int start_idx;
|
||||
private int mdl_id;
|
||||
private int mdl_price;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class GetPvPdRequest extends BaseRequest {
|
||||
private int pd_id;
|
||||
private int difficulty;
|
||||
private int[] pd_pv_id_lst;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ShopExitRequest extends BaseRequest {
|
||||
private int pd_id;
|
||||
private int accept_idx;
|
||||
private int start_idx;
|
||||
private int use_pv_mdl_eqp;
|
||||
private int ply_pv_id;
|
||||
private int[] mdl_eqp_cmn_ary;
|
||||
private int[] c_itm_eqp_cmn_ary;
|
||||
private int[] ms_itm_flg_cmn_ary;
|
||||
private int[] mdl_eqp_pv_ary;
|
||||
private int[] c_itm_eqp_pv_ary;
|
||||
private int[] ms_itm_flg_pv_ary;
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class StageResultRequest extends BaseRequest {
|
||||
public int pd_id;
|
||||
public int accept_idx;
|
||||
public int start_idx;
|
||||
public int hp_vol;
|
||||
public boolean btn_se_vol;
|
||||
public int btn_se_vol2;
|
||||
public int sldr_se_vol2;
|
||||
public boolean use_pv_mdl_eqp;
|
||||
public int vcld_pts;
|
||||
public int nxt_pv_id;
|
||||
public int nxt_dffclty;
|
||||
public int nxt_edtn;
|
||||
public int sort_kind;
|
||||
public int nblss_ltt_stts;
|
||||
public int nblss_ltt_tckt;
|
||||
public int[] my_qst_id;
|
||||
public int[] my_qst_sts;
|
||||
public boolean free_play;
|
||||
public int game_type;
|
||||
public int[] stg_difficulty;
|
||||
public int[] stg_edtn;
|
||||
public int[] stg_ply_pv_id;
|
||||
public int[] stg_sel_pv_id;
|
||||
public int[] stg_scrpt_ver;
|
||||
public int[] stg_score;
|
||||
public int[] stg_chllng_kind;
|
||||
public int[] stg_chllng_result;
|
||||
public int[] stg_clr_kind;
|
||||
public int[] stg_vcld_pts;
|
||||
public int[] stg_cool_cnt;
|
||||
public int[] stg_cool_pct;
|
||||
public int[] stg_fine_cnt;
|
||||
public int[] stg_fine_pct;
|
||||
public int[] stg_safe_cnt;
|
||||
public int[] stg_safe_pct;
|
||||
public int[] stg_sad_cnt;
|
||||
public int[] stg_sad_pct;
|
||||
public int[] stg_wt_wg_cnt;
|
||||
public int[] stg_wt_wg_pct;
|
||||
|
||||
public int[] stg_max_cmb;
|
||||
public int[] stg_chance_tm;
|
||||
public int[] stg_sm_hl;
|
||||
public int[] stg_atn_pnt;
|
||||
public int[] stg_skin_id;
|
||||
public int[] stg_btn_se;
|
||||
public int[] stg_btn_se_vol;
|
||||
public int[] stg_sld_se;
|
||||
public int[] stg_chn_sld_se;
|
||||
public int[] stg_sldr_tch_se;
|
||||
public int[] stg_mdl_id;
|
||||
public int[] stg_sel_mdl_id;
|
||||
public int[] stg_rvl_pd_id;
|
||||
public int[] stg_rvl_wl;
|
||||
public int[] stg_cpt_rslt;
|
||||
public int[] stg_sld_scr;
|
||||
public int[] stg_is_sr_gm;
|
||||
public int[] stg_pv_brnch_rslt;
|
||||
public int[] stg_vcl_chg;
|
||||
public int[] stg_c_itm_id;
|
||||
public int[] stg_ms_itm_flg;
|
||||
public int[] stg_rgo;
|
||||
public int[] stg_ss_num;
|
||||
public int[] stg_is_cs_scs;
|
||||
public int[] stg_is_nppg_use;
|
||||
public int[] stg_p_std_lo_id;
|
||||
public int[] stg_p_std_is_to;
|
||||
public int[] stg_p_std_is_ccu;
|
||||
public int[] stg_p_std_is_tiu;
|
||||
public int[] stg_p_std_is_iu;
|
||||
public int[] stg_p_std_is_npu;
|
||||
public int[] stg_p_std_is_du;
|
||||
|
||||
public int ply_pv_id;
|
||||
|
||||
public int ttl_vp_add;
|
||||
public int ttl_vp_sub;
|
||||
|
||||
public int continue_cnt;
|
||||
public int[] gu_cmd;
|
||||
|
||||
public int[] mdl_eqp_cmn_ary;
|
||||
public int[] c_itm_eqp_cmn_ary;
|
||||
public int[] ms_itm_flg_cmn_ary;
|
||||
public int[] mdl_eqp_pv_ary;
|
||||
public int[] c_itm_eqp_pv_ary;
|
||||
public int[] ms_itm_flg_pv_ary;
|
||||
public int[] stg_mdl_s_sts;
|
||||
|
||||
public int cr_cid;
|
||||
public int cr_sc;
|
||||
public int cr_tv;
|
||||
public int cr_if;
|
||||
public String[] cr_sp;
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class StageStartRequest extends BaseRequest {
|
||||
public int pd_id;
|
||||
public int accept_idx;
|
||||
public int start_idx;
|
||||
public boolean free_play;
|
||||
public int game_type;
|
||||
public int[] stg_difficulty;
|
||||
public int[] stg_edtn;
|
||||
public int[] stg_ply_pv_id;
|
||||
public int[] stg_sel_pv_id; //
|
||||
public int[] stg_scrpt_ver;
|
||||
|
||||
public int[] stg_skin_id;
|
||||
public int[] stg_btn_se;
|
||||
public int[] stg_btn_se_vol;
|
||||
public int[] stg_sld_se;
|
||||
public int[] stg_chn_sld_se;
|
||||
public int[] stg_sldr_tch_se;
|
||||
public int[] stg_mdl_id;
|
||||
public int[] stg_sel_mdl_id;
|
||||
public int[] stg_rvl_pd_id;
|
||||
public int[] stg_c_itm_id;
|
||||
public int[] stg_ms_itm_flg;
|
||||
public int[] stg_rgo;
|
||||
public int[] stg_ss_num;
|
||||
public int[] stg_is_cs_scs;
|
||||
|
||||
public int continue_cnt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class StoreSsRequest extends BaseRequest {
|
||||
private int pd_id;
|
||||
private String ss_dat_id;
|
||||
private int ss_pv_id;
|
||||
private int ss_sel_pv_id;
|
||||
private int[] ss_mdl_id;
|
||||
private int[] ss_sel_mdl_id;
|
||||
private int[] ss_c_itm_id;
|
||||
private int[] ss_pxl_sz;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.user;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PdUnlockRequest extends BaseRequest {
|
||||
private int pd_id;
|
||||
private int accept_idx;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.user;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PreStartRequest extends BaseRequest {
|
||||
private String pmm;
|
||||
private String idm;
|
||||
private String mmgameid;
|
||||
private String mmuid;
|
||||
private String a_code;
|
||||
private int aime_id;
|
||||
private String aime_a_code;
|
||||
private String key_obj_type;
|
||||
private boolean exec_vu;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.user;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class SpendCreditRequest extends BaseRequest {
|
||||
private int pd_id;
|
||||
private int[] my_qst_id;
|
||||
private int[] my_qst_sts;
|
||||
private int crdt_typ;
|
||||
private int[] cmpgn_id;
|
||||
private int[] cmpgn_pb;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.request.user;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.request.BaseRequest;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class StartRequest extends BaseRequest {
|
||||
public int pd_id;
|
||||
public int accept_idx;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.boot;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class AttendResponse extends BaseResponse {
|
||||
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);
|
||||
this.atnd_prm1 = atnd_prm1;
|
||||
this.atnd_prm2 = atnd_prm2;
|
||||
this.atnd_prm3 = atnd_prm3;
|
||||
this.atnd_lut = atnd_lut;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.boot;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class GameInitResponse extends BaseResponse {
|
||||
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);
|
||||
this.db_close = db_close;
|
||||
this.retry_time = retry_time;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class CardProcedureResponse extends BaseResponse {
|
||||
private Result cd_adm_result;
|
||||
private int chg_name_price = 100;
|
||||
private int accept_idx;
|
||||
private int pd_id;
|
||||
private String player_name;
|
||||
private Integer lv_num;
|
||||
private Integer lv_pnt;
|
||||
private String lv_str;
|
||||
private Integer lv_efct_id;
|
||||
private Integer lv_plt_id;
|
||||
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, int 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);
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
this.chg_name_price = chg_name_price;
|
||||
this.accept_idx = accept_idx;
|
||||
this.pd_id = pd_id;
|
||||
this.player_name = player_name;
|
||||
this.lv_num = lv_num;
|
||||
this.lv_pnt = lv_pnt;
|
||||
this.lv_str = lv_str;
|
||||
this.lv_efct_id = lv_efct_id;
|
||||
this.lv_plt_id = lv_plt_id;
|
||||
this.vcld_pts = vcld_pts;
|
||||
this.passwd_stat = passwd_stat;
|
||||
}
|
||||
|
||||
public CardProcedureResponse(String cmd, String req_id, String stat, Result cd_adm_result) {
|
||||
super(cmd, req_id, stat);
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ChangeNameResponse extends BaseResponse {
|
||||
private Result cd_adm_result;
|
||||
private int accept_idx;
|
||||
private int pd_id;
|
||||
private String player_name;
|
||||
|
||||
public ChangeNameResponse(String cmd, String req_id, String stat, Result cd_adm_result, int accept_idx, int pd_id, String player_name) {
|
||||
super(cmd, req_id, stat);
|
||||
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);
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ChangePasswdResponse extends BaseResponse {
|
||||
private Result cd_adm_result;
|
||||
private int accept_idx;
|
||||
private int pd_id;
|
||||
|
||||
public ChangePasswdResponse(String cmd, String req_id, String stat, Result cd_adm_result, int accept_idx, int pd_id) {
|
||||
super(cmd, req_id, stat);
|
||||
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);
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class RegistrationResponse extends BaseResponse {
|
||||
private Result cd_adm_result;
|
||||
private int pd_id;
|
||||
|
||||
public RegistrationResponse(String cmd, String req_id, String stat, Result cd_adm_result, int pd_id) {
|
||||
super(cmd, req_id, stat);
|
||||
this.cd_adm_result = cd_adm_result;
|
||||
this.pd_id = pd_id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BannerDataResponse extends BaseResponse {
|
||||
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);
|
||||
this.bd_ut = bd_ut;
|
||||
this.bd_ti = bd_ti;
|
||||
this.bd_hs = bd_hs;
|
||||
this.bd_id = bd_id;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BannerInfoResponse extends BaseResponse {
|
||||
private String bi_lut;
|
||||
// Array of 10
|
||||
private String bi_id;
|
||||
private String bi_st;
|
||||
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);
|
||||
this.bi_lut = bi_lut;
|
||||
this.bi_id = bi_id;
|
||||
this.bi_st = bi_st;
|
||||
this.bi_et = bi_et;
|
||||
this.bi_ut = bi_ut;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ContestInfoResponse extends BaseResponse {
|
||||
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);
|
||||
this.ci_lut = ci_lut;
|
||||
this.ci_str = ci_str;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class CstmzItmCtlgResponse extends BaseResponse {
|
||||
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);
|
||||
this.cstmz_itm_ctlg_lut = cstmz_itm_ctlg_lut;
|
||||
this.cstmz_itm_ctlg = cstmz_itm_ctlg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class CstmzItmNgMdlListResponse extends BaseResponse {
|
||||
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);
|
||||
this.cinml_lut = cinml_lut;
|
||||
this.cinm_lst = cinm_lst;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class FestaInfoResponse extends BaseResponse {
|
||||
private String fi_id;
|
||||
private String fi_name;
|
||||
private String fi_kind;
|
||||
private String fi_difficulty;
|
||||
private String fi_pv_id_lst;
|
||||
private String fi_attr;
|
||||
private String fi_add_vp;
|
||||
private String fi_mul_vp;
|
||||
private String fi_st;
|
||||
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);
|
||||
this.fi_id = fi_id;
|
||||
this.fi_name = fi_name;
|
||||
this.fi_kind = fi_kind;
|
||||
this.fi_difficulty = fi_difficulty;
|
||||
this.fi_pv_id_lst = fi_pv_id_lst;
|
||||
this.fi_attr = fi_attr;
|
||||
this.fi_add_vp = fi_add_vp;
|
||||
this.fi_mul_vp = fi_mul_vp;
|
||||
this.fi_st = fi_st;
|
||||
this.fi_et = fi_et;
|
||||
this.fi_lut = fi_lut;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class NvRankingResponse extends BaseResponse {
|
||||
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);
|
||||
this.rnk_nv_tag_str = rnk_nv_tag_str;
|
||||
this.rnk_nv_ts = rnk_nv_ts;
|
||||
this.rnk_nv_data = rnk_nv_data;
|
||||
this.rnk_nv_lut = rnk_nv_lut;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PsRankingResponse extends BaseResponse {
|
||||
private LocalDateTime rnk_ps_lut;
|
||||
private LocalDateTime rnk_ps_ts;
|
||||
private int rnk_ps_dffclty;
|
||||
private String rnk_ps_pv_id;
|
||||
private String rnk_ps_edtn1;
|
||||
private String rnk_ps_edtn2;
|
||||
private String rnk_ps_edtn3;
|
||||
private String rnk_ps_scr1;
|
||||
private String rnk_ps_scr2;
|
||||
private String rnk_ps_scr3;
|
||||
private String rnk_ps_nm1;
|
||||
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);
|
||||
this.rnk_ps_lut = rnk_ps_lut;
|
||||
this.rnk_ps_ts = rnk_ps_ts;
|
||||
this.rnk_ps_dffclty = rnk_ps_dffclty;
|
||||
this.rnk_ps_pv_id = rnk_ps_pv_id;
|
||||
this.rnk_ps_edtn1 = rnk_ps_edtn1;
|
||||
this.rnk_ps_edtn2 = rnk_ps_edtn2;
|
||||
this.rnk_ps_edtn3 = rnk_ps_edtn3;
|
||||
this.rnk_ps_scr1 = rnk_ps_scr1;
|
||||
this.rnk_ps_scr2 = rnk_ps_scr2;
|
||||
this.rnk_ps_scr3 = rnk_ps_scr3;
|
||||
this.rnk_ps_nm1 = rnk_ps_nm1;
|
||||
this.rnk_ps_nm2 = rnk_ps_nm2;
|
||||
this.rnk_ps_nm3 = rnk_ps_nm3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PstdHCtrlResponse extends BaseResponse {
|
||||
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);
|
||||
this.p_std_hc_lut = p_std_hc_lut;
|
||||
this.p_std_hc_str = p_std_hc_str;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PstdItemNgLstResponse extends BaseResponse {
|
||||
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);
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PvDefChrLstResponse extends BaseResponse {
|
||||
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);
|
||||
this.pdcl_lut = pdcl_lut;
|
||||
this.pdc_lst = pdc_lst;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PvListResponse extends BaseResponse {
|
||||
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);
|
||||
this.pvl_lut = pvl_lut;
|
||||
this.pv_lst = pv_lst;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PvNgMdlLstResponse extends BaseResponse {
|
||||
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);
|
||||
this.pnml_lut = pnml_lut;
|
||||
this.pnm_lst = pnm_lst;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class QstInfResponse extends BaseResponse {
|
||||
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);
|
||||
this.qi_lut = qi_lut;
|
||||
this.qhi_str = qhi_str;
|
||||
this.qrai_str = qrai_str;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class RmtWpLstResponse extends BaseResponse {
|
||||
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);
|
||||
this.rwl_lut = rwl_lut;
|
||||
this.rw_lst = rw_lst;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.databank;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ShopCatalogResponse extends BaseResponse {
|
||||
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);
|
||||
this.shp_ctlg_lut = shp_ctlg_lut;
|
||||
this.shp_ctlg = shp_ctlg;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BuyCstmzItmResponse extends BaseResponse {
|
||||
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);
|
||||
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);
|
||||
this.shp_rslt = shp_rslt;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class BuyModuleResponse extends BaseResponse {
|
||||
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);
|
||||
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);
|
||||
this.shp_rslt = shp_rslt;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class GetPvPdResponse extends BaseResponse {
|
||||
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);
|
||||
this.pd_by_pv_id = pd_by_pv_id;
|
||||
this.pdddt_flg = pdddt_flg;
|
||||
this.pdddt_tm = pdddt_tm;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ShopExitResponse extends BaseResponse {
|
||||
private Result shp_rslt;
|
||||
|
||||
public ShopExitResponse(String cmd, String req_id, String stat, Result shp_rslt) {
|
||||
super(cmd, req_id, stat);
|
||||
this.shp_rslt = shp_rslt;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.ingame;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class StageResultResponse extends BaseResponse {
|
||||
|
||||
private int chllng_kind;
|
||||
private int lv_num_old;
|
||||
private int lv_pnt_old;
|
||||
private int lv_num;
|
||||
private int lv_pnt;
|
||||
private String lv_str;
|
||||
private int lv_efct_id;
|
||||
private int lv_plt_id;
|
||||
private int vcld_pts;
|
||||
private int prsnt_vcld_pts;
|
||||
private int cnp_cid;
|
||||
private int cnp_val;
|
||||
private String cnp_sp;
|
||||
// private int crwd_kind = -1;
|
||||
// private String crwd_value = "-1,-1,-1";
|
||||
// private String crwd_str_0 = "N/A";
|
||||
// private String crwd_str_1 = "N/A";
|
||||
// private int cerwd_kind = -1;
|
||||
// private int cerwd_value = -1;
|
||||
// private String cerwd_str_0 = "N/A";
|
||||
// private String cerwd_str_1 = "N/A";
|
||||
private String ttl_str_ary = "xxx";
|
||||
private String ttl_plt_id_ary = "-1,-1,-1,-1,-1";
|
||||
private String ttl_desc_ary = "xxx";
|
||||
private String skin_id_ary = "xxx";
|
||||
private String skin_name_ary = "xxx";
|
||||
private String skin_illust_ary = "xxx";
|
||||
private String skin_desc_ary = "xxx";
|
||||
private int pdddt_flg = 0;
|
||||
private LocalDateTime pdddt_tm;
|
||||
private int nblss_ltt_stts = -1;
|
||||
private int nblss_ltt_tckt = -1;
|
||||
private int nblss_ltt_is_opn = 0;
|
||||
private int nblss_ltt_prz = 0;
|
||||
private int nblss_ltt_nxt_stts = 0;
|
||||
private int nblss_ltt_nxt_tckt = -1;
|
||||
private String my_qst_id;
|
||||
private String my_qst_r_qid;
|
||||
private String my_qst_r_knd;
|
||||
private String my_qst_r_vl;
|
||||
private String my_qst_r_nflg;
|
||||
private String my_ccd_r_qid;
|
||||
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(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 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);
|
||||
this.chllng_kind = chllng_kind;
|
||||
this.lv_num_old = lv_num_old;
|
||||
this.lv_pnt_old = lv_pnt_old;
|
||||
this.lv_num = lv_num;
|
||||
this.lv_pnt = lv_pnt;
|
||||
this.lv_str = lv_str;
|
||||
this.lv_efct_id = lv_efct_id;
|
||||
this.lv_plt_id = lv_plt_id;
|
||||
this.vcld_pts = vcld_pts;
|
||||
this.prsnt_vcld_pts = prsnt_vcld_pts;
|
||||
this.cnp_cid = cnp_cid;
|
||||
this.cnp_val = cnp_val;
|
||||
this.cnp_sp = cnp_sp;
|
||||
this.ttl_str_ary = ttl_str_ary;
|
||||
this.ttl_plt_id_ary = ttl_plt_id_ary;
|
||||
this.ttl_desc_ary = ttl_desc_ary;
|
||||
this.skin_id_ary = skin_id_ary;
|
||||
this.skin_name_ary = skin_name_ary;
|
||||
this.skin_illust_ary = skin_illust_ary;
|
||||
this.skin_desc_ary = skin_desc_ary;
|
||||
this.pdddt_flg = pdddt_flg;
|
||||
this.pdddt_tm = pdddt_tm;
|
||||
this.nblss_ltt_stts = nblss_ltt_stts;
|
||||
this.nblss_ltt_tckt = nblss_ltt_tckt;
|
||||
this.nblss_ltt_is_opn = nblss_ltt_is_opn;
|
||||
this.nblss_ltt_prz = nblss_ltt_prz;
|
||||
this.nblss_ltt_nxt_stts = nblss_ltt_nxt_stts;
|
||||
this.nblss_ltt_nxt_tckt = nblss_ltt_nxt_tckt;
|
||||
this.my_qst_id = my_qst_id;
|
||||
this.my_qst_r_qid = my_qst_r_qid;
|
||||
this.my_qst_r_knd = my_qst_r_knd;
|
||||
this.my_qst_r_vl = my_qst_r_vl;
|
||||
this.my_qst_r_nflg = my_qst_r_nflg;
|
||||
this.my_ccd_r_qid = my_ccd_r_qid;
|
||||
this.my_ccd_r_hnd = my_ccd_r_hnd;
|
||||
this.my_ccd_r_vp = my_ccd_r_vp;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.operation;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import icu.samnyan.aqua.sega.util.URIEncoder;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PingResponse extends BaseResponse {
|
||||
private String ping_b_msg = URIEncoder.encode("Server testing No other news");
|
||||
private String ping_m_msg = URIEncoder.encode("Nothing special Server testing No other news");
|
||||
private String atnd_lut;
|
||||
private String fi_lut;
|
||||
private String ci_lut;
|
||||
private String qi_lut;
|
||||
private String pvl_lut;
|
||||
private String pdcl_lut;
|
||||
private String pnml_lut;
|
||||
private String cinml_lut;
|
||||
private String rwl_lut;
|
||||
private String bdlol_lut;
|
||||
private String shp_ctlg_lut;
|
||||
private String cstmz_itm_ctlg_lut;
|
||||
private String ngwl_lut;
|
||||
private String rnk_nv_lut;
|
||||
private String rnk_ps_lut;
|
||||
private String bi_lut;
|
||||
private String cpi_lut;
|
||||
private String p_std_hc_lut;
|
||||
private String p_std_i_n_lut;
|
||||
|
||||
private String req_inv_cmd_num;
|
||||
private String req_inv_cmd_prm1;
|
||||
private String req_inv_cmd_prm2;
|
||||
private String req_inv_cmd_prm3;
|
||||
private String req_inv_cmd_prm4;
|
||||
|
||||
private boolean pow_save_flg = false;
|
||||
|
||||
private Integer nblss_dnt_p = 0;
|
||||
private Integer nblss_ltt_rl_vp = 0;
|
||||
private Integer nblss_ex_ltt_flg = 0;
|
||||
|
||||
private String nblss_dnt_st_tm;
|
||||
private String nblss_dnt_ed_tm;
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
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;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PreStartResponse extends BaseResponse {
|
||||
|
||||
private PreStartResult ps_result;
|
||||
private Integer accept_idx;
|
||||
private Integer nblss_ltt_stts;
|
||||
private Integer nblss_ltt_tckt;
|
||||
private Integer nblss_ltt_is_opn;
|
||||
|
||||
private Integer pd_id;
|
||||
private String player_name;
|
||||
private SortMode sort_kind;
|
||||
private Integer lv_num;
|
||||
private Integer lv_pnt;
|
||||
private String lv_str;
|
||||
private Integer lv_efct_id;
|
||||
private Integer lv_plt_id;
|
||||
private String mdl_eqp_ary;
|
||||
private LocalDateTime mdl_eqp_tm;
|
||||
private Integer skn_eqp;
|
||||
private Integer btn_se_eqp;
|
||||
private Integer sld_se_eqp;
|
||||
private Integer chn_sld_se_eqp;
|
||||
private Integer sldr_tch_se_eqp;
|
||||
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);
|
||||
this.ps_result = ps_result;
|
||||
}
|
||||
|
||||
public PreStartResponse(String cmd, String req_id, String stat, PreStartResult ps_result, Integer accept_idx, Integer 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);
|
||||
this.ps_result = ps_result;
|
||||
this.accept_idx = accept_idx;
|
||||
this.nblss_ltt_stts = -1;
|
||||
this.nblss_ltt_tckt = -1;
|
||||
this.nblss_ltt_is_opn = -1;
|
||||
this.pd_id = pd_id;
|
||||
this.player_name = player_name;
|
||||
this.sort_kind = sort_kind;
|
||||
this.lv_num = lv_num;
|
||||
this.lv_pnt = lv_pnt;
|
||||
this.lv_str = lv_str;
|
||||
this.lv_efct_id = lv_efct_id;
|
||||
this.lv_plt_id = lv_plt_id;
|
||||
this.mdl_eqp_ary = mdl_eqp_ary;
|
||||
this.mdl_eqp_tm = mdl_eqp_tm;
|
||||
this.skn_eqp = skn_eqp;
|
||||
this.btn_se_eqp = btn_se_eqp;
|
||||
this.sld_se_eqp = sld_se_eqp;
|
||||
this.chn_sld_se_eqp = chn_sld_se_eqp;
|
||||
this.sldr_tch_se_eqp = sldr_tch_se_eqp;
|
||||
this.vcld_pts = vcld_pts;
|
||||
this.passwd_stat = passwd_stat;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.response.user;
|
||||
|
||||
import icu.samnyan.aqua.sega.diva.model.response.BaseResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class SpendCreditResponse extends BaseResponse {
|
||||
private String cmpgn_rslt;
|
||||
private int cmpgn_rslt_num;
|
||||
private int vcld_pts;
|
||||
private String lv_str;
|
||||
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);
|
||||
this.cmpgn_rslt = cmpgn_rslt;
|
||||
this.cmpgn_rslt_num = cmpgn_rslt_num;
|
||||
this.vcld_pts = vcld_pts;
|
||||
this.lv_str = lv_str;
|
||||
this.lv_efct_id = lv_efct_id;
|
||||
this.lv_plt_id = lv_plt_id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
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;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static icu.samnyan.aqua.sega.diva.model.common.Const.ALL_HAVE;
|
||||
import static icu.samnyan.aqua.sega.diva.model.common.Const.ALL_NOT_HAVE;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class StartResponse extends BaseResponse {
|
||||
|
||||
private int pd_id;
|
||||
private Result start_result = Result.SUCCESS;
|
||||
private int accept_idx;
|
||||
private int start_idx;
|
||||
private String player_name;
|
||||
private int hp_vol = 100;
|
||||
private boolean btn_se_vol = true;
|
||||
private int btn_se_vol2 = 100;
|
||||
private int sldr_se_vol2 = 10;
|
||||
private SortMode sort_kind = SortMode.RELEASE_DATE;
|
||||
private int lv_num;
|
||||
private int lv_pnt;
|
||||
private String lv_str;
|
||||
private int lv_efct_id;
|
||||
private int lv_plt_id;
|
||||
private String mdl_eqp_ary;
|
||||
private String c_itm_eqp_ary;
|
||||
private String ms_itm_flg_ary;
|
||||
private LocalDateTime mdl_eqp_tm = LocalDateTime.now();
|
||||
private String mdl_have = ALL_HAVE;
|
||||
private String cstmz_itm_have = ALL_HAVE;
|
||||
private boolean use_pv_mdl_eqp = false;
|
||||
private boolean use_mdl_pri = false;
|
||||
private boolean use_pv_skn_eqp = false;
|
||||
private boolean use_pv_btn_se_eqp = false;
|
||||
private boolean use_pv_sld_se_eqp = false;
|
||||
private boolean use_pv_chn_sld_se_eqp = false;
|
||||
private boolean use_pv_sldr_tch_se_eqp = false;
|
||||
private int vcld_pts = 300;
|
||||
private int nxt_pv_id = -1;
|
||||
private Difficulty nxt_dffclty = Difficulty.NORMAL;
|
||||
private Edition nxt_edtn = Edition.ORIGINAL;
|
||||
|
||||
// Contest play history, array of 4
|
||||
private String cv_cid;
|
||||
private String cv_sc;
|
||||
private String cv_rr;
|
||||
private String cv_bv;
|
||||
private String cv_bf;
|
||||
|
||||
// Contest now playing id, return -1 if no current playing contest
|
||||
private int cnp_cid = -1;
|
||||
private int cnp_val = 0;
|
||||
private ContestBorder cnp_rr = ContestBorder.NONE;
|
||||
private String cnp_sp = "";
|
||||
|
||||
private String my_lst_0;
|
||||
private String my_lst_1;
|
||||
private String my_lst_2;
|
||||
private String my_lst_3; // Unused
|
||||
private String my_lst_4; // Unused
|
||||
|
||||
private boolean dsp_clr_brdr;
|
||||
private boolean dsp_intrm_rnk;
|
||||
private boolean dsp_clr_sts;
|
||||
|
||||
private String clr_sts;
|
||||
|
||||
private boolean rgo_sts;
|
||||
|
||||
private String my_qst_id;
|
||||
private String my_qst_sts;
|
||||
private String my_qst_prgrs;
|
||||
private String my_qst_et;
|
||||
|
||||
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, int 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, boolean 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);
|
||||
this.pd_id = pd_id;
|
||||
this.start_result = start_result;
|
||||
this.accept_idx = accept_idx;
|
||||
this.start_idx = start_idx;
|
||||
this.player_name = player_name;
|
||||
this.hp_vol = hp_vol;
|
||||
this.btn_se_vol = btn_se_vol;
|
||||
this.btn_se_vol2 = btn_se_vol2;
|
||||
this.sldr_se_vol2 = sldr_se_vol2;
|
||||
this.sort_kind = sort_kind;
|
||||
this.lv_num = lv_num;
|
||||
this.lv_pnt = lv_pnt;
|
||||
this.lv_str = lv_str;
|
||||
this.lv_efct_id = lv_efct_id;
|
||||
this.lv_plt_id = lv_plt_id;
|
||||
this.mdl_eqp_ary = mdl_eqp_ary;
|
||||
this.c_itm_eqp_ary = c_itm_eqp_ary;
|
||||
this.ms_itm_flg_ary = ms_itm_flg_ary;
|
||||
this.mdl_eqp_tm = mdl_eqp_tm;
|
||||
this.mdl_have = mdl_have;
|
||||
this.cstmz_itm_have = cstmz_itm_have;
|
||||
this.use_pv_mdl_eqp = use_pv_mdl_eqp;
|
||||
this.use_mdl_pri = use_mdl_pri;
|
||||
this.use_pv_skn_eqp = use_pv_skn_eqp;
|
||||
this.use_pv_btn_se_eqp = use_pv_btn_se_eqp;
|
||||
this.use_pv_sld_se_eqp = use_pv_sld_se_eqp;
|
||||
this.use_pv_chn_sld_se_eqp = use_pv_chn_sld_se_eqp;
|
||||
this.use_pv_sldr_tch_se_eqp = use_pv_sldr_tch_se_eqp;
|
||||
this.vcld_pts = vcld_pts;
|
||||
this.nxt_pv_id = nxt_pv_id;
|
||||
this.nxt_dffclty = nxt_dffclty;
|
||||
this.nxt_edtn = nxt_edtn;
|
||||
this.cv_cid = cv_cid;
|
||||
this.cv_sc = cv_sc;
|
||||
this.cv_rr = cv_rr;
|
||||
this.cv_bv = cv_bv;
|
||||
this.cv_bf = cv_bf;
|
||||
this.cnp_cid = cnp_cid;
|
||||
this.cnp_val = cnp_val;
|
||||
this.cnp_rr = cnp_rr;
|
||||
this.cnp_sp = cnp_sp;
|
||||
this.my_lst_0 = my_lst_0;
|
||||
this.my_lst_1 = my_lst_1;
|
||||
this.my_lst_2 = my_lst_2;
|
||||
this.my_lst_3 = my_lst_3;
|
||||
this.my_lst_4 = my_lst_4;
|
||||
this.dsp_clr_brdr = dsp_clr_brdr;
|
||||
this.dsp_intrm_rnk = dsp_intrm_rnk;
|
||||
this.dsp_clr_sts = dsp_clr_sts;
|
||||
this.clr_sts = clr_sts;
|
||||
this.rgo_sts = rgo_sts;
|
||||
this.my_qst_id = my_qst_id;
|
||||
this.my_qst_sts = my_qst_sts;
|
||||
this.my_qst_prgrs = my_qst_prgrs;
|
||||
this.my_qst_et = my_qst_et;
|
||||
this.p_std_ie_have = p_std_ie_have;
|
||||
this.p_std_se_have = p_std_se_have;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.userdata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.StartMode;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaGameSession")
|
||||
@Table(name = "diva_game_session")
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class GameSession implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
private int acceptId;
|
||||
|
||||
@OneToOne
|
||||
@JoinColumn(name = "pd_id", unique = true)
|
||||
private PlayerProfile pdId;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private StartMode startMode;
|
||||
|
||||
private LocalDateTime startTime;
|
||||
|
||||
private LocalDateTime lastUpdateTime;
|
||||
|
||||
private Integer stageIndex;
|
||||
|
||||
private Integer lastPvId;
|
||||
|
||||
private Integer levelNumber;
|
||||
|
||||
private Integer levelExp;
|
||||
|
||||
private Integer oldLevelNumber;
|
||||
|
||||
private Integer oldLevelExp;
|
||||
|
||||
private Integer vp;
|
||||
|
||||
public GameSession(int acceptId, PlayerProfile pdId, StartMode startMode, LocalDateTime startTime, LocalDateTime lastUpdateTime, Integer stageIndex, Integer lastPvId, Integer levelNumber, Integer levelExp, Integer oldLevelNumber, Integer oldLevelExp, Integer vp) {
|
||||
this.acceptId = acceptId;
|
||||
this.pdId = pdId;
|
||||
this.startMode = startMode;
|
||||
this.startTime = startTime;
|
||||
this.lastUpdateTime = lastUpdateTime;
|
||||
this.stageIndex = stageIndex;
|
||||
this.lastPvId = lastPvId;
|
||||
this.levelNumber = levelNumber;
|
||||
this.levelExp = levelExp;
|
||||
this.oldLevelNumber = oldLevelNumber;
|
||||
this.oldLevelExp = oldLevelExp;
|
||||
this.vp = vp;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.userdata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.ChallengeKind;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.ClearResult;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Difficulty;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Edition;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaPlayLog")
|
||||
@Table(name = "diva_play_log")
|
||||
@Data
|
||||
public class PlayLog implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "pd_id")
|
||||
@JsonIgnore
|
||||
private PlayerProfile pdId;
|
||||
|
||||
private int pvId;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Difficulty difficulty;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Edition edition;
|
||||
|
||||
private int scriptVer;
|
||||
|
||||
private int score;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ChallengeKind challengeKind;
|
||||
|
||||
private int challengeResult;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ClearResult clearResult;
|
||||
|
||||
private int vp;
|
||||
|
||||
private int coolCount;
|
||||
|
||||
private int coolPercent;
|
||||
|
||||
private int fineCount;
|
||||
|
||||
private int finePercent;
|
||||
|
||||
private int safeCount;
|
||||
|
||||
private int safePercent;
|
||||
|
||||
private int sadCount;
|
||||
|
||||
private int sadPercent;
|
||||
|
||||
private int wrongCount;
|
||||
|
||||
private int wrongPercent;
|
||||
|
||||
private int maxCombo;
|
||||
|
||||
private int chanceTime;
|
||||
|
||||
private int holdScore;
|
||||
|
||||
private int attainPoint;
|
||||
|
||||
private int skinId;
|
||||
|
||||
private int buttonSe;
|
||||
|
||||
private int buttonSeVol;
|
||||
|
||||
private int sliderSe;
|
||||
|
||||
private int ChainSlideSe;
|
||||
|
||||
private int SliderTouchSe;
|
||||
|
||||
private String modules;
|
||||
|
||||
private int stageCompletion;
|
||||
|
||||
private int slideScore;
|
||||
|
||||
private int isVocalChange;
|
||||
|
||||
private String customizeItems;
|
||||
|
||||
// private String customizeItemFlags;
|
||||
|
||||
private String rhythmGameOptions;
|
||||
|
||||
private int screenShotCount = -1;
|
||||
|
||||
private LocalDateTime dateTime;
|
||||
|
||||
public PlayLog() {
|
||||
}
|
||||
|
||||
public PlayLog(PlayerProfile pdId, int pvId, Difficulty difficulty, Edition edition, int scriptVer, int score, ChallengeKind challengeKind, int challengeResult, ClearResult clearResult, int vp, int coolCount, int coolPercent, int fineCount, int finePercent, int safeCount, int safePercent, int sadCount, int sadPercent, int wrongCount, int wrongPercent, int maxCombo, int chanceTime, int holdScore, int attainPoint, int skinId, int buttonSe, int buttonSeVol, int sliderSe, int chainSlideSe, int sliderTouchSe, String modules, int stageCompletion, int slideScore, int isVocalChange, String customizeItems, String rhythmGameOptions, int screenShotCount, LocalDateTime dateTime) {
|
||||
this.pdId = pdId;
|
||||
this.pvId = pvId;
|
||||
this.difficulty = difficulty;
|
||||
this.edition = edition;
|
||||
this.scriptVer = scriptVer;
|
||||
this.score = score;
|
||||
this.challengeKind = challengeKind;
|
||||
this.challengeResult = challengeResult;
|
||||
this.clearResult = clearResult;
|
||||
this.vp = vp;
|
||||
this.coolCount = coolCount;
|
||||
this.coolPercent = coolPercent;
|
||||
this.fineCount = fineCount;
|
||||
this.finePercent = finePercent;
|
||||
this.safeCount = safeCount;
|
||||
this.safePercent = safePercent;
|
||||
this.sadCount = sadCount;
|
||||
this.sadPercent = sadPercent;
|
||||
this.wrongCount = wrongCount;
|
||||
this.wrongPercent = wrongPercent;
|
||||
this.maxCombo = maxCombo;
|
||||
this.chanceTime = chanceTime;
|
||||
this.holdScore = holdScore;
|
||||
this.attainPoint = attainPoint;
|
||||
this.skinId = skinId;
|
||||
this.buttonSe = buttonSe;
|
||||
this.buttonSeVol = buttonSeVol;
|
||||
this.sliderSe = sliderSe;
|
||||
ChainSlideSe = chainSlideSe;
|
||||
SliderTouchSe = sliderTouchSe;
|
||||
this.modules = modules;
|
||||
this.stageCompletion = stageCompletion;
|
||||
this.slideScore = slideScore;
|
||||
this.isVocalChange = isVocalChange;
|
||||
this.customizeItems = customizeItems;
|
||||
this.rhythmGameOptions = rhythmGameOptions;
|
||||
this.screenShotCount = screenShotCount;
|
||||
this.dateTime = dateTime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.userdata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.ContestBorder;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaPlayerContest")
|
||||
@Table(name = "diva_player_contest", uniqueConstraints = {@UniqueConstraint(columnNames = {"pd_id", "contest_id"})})
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PlayerContest implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "pd_id")
|
||||
private PlayerProfile pdId;
|
||||
|
||||
@Column(name = "contest_id")
|
||||
private int contestId;
|
||||
|
||||
private int startCount = 0;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ContestBorder resultRank = ContestBorder.NONE;
|
||||
|
||||
private int bestValue = -1;
|
||||
|
||||
private int flag = -1;
|
||||
|
||||
private LocalDateTime lastUpdateTime = LocalDateTime.now();
|
||||
|
||||
public PlayerContest(PlayerProfile pdId, int contestId) {
|
||||
this.pdId = pdId;
|
||||
this.contestId = contestId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.userdata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaPlayerCustomize")
|
||||
@Table(name = "diva_player_customize", uniqueConstraints = {@UniqueConstraint(columnNames = {"pd_id", "customize_id"})})
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PlayerCustomize implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "pd_id")
|
||||
private PlayerProfile pdId;
|
||||
|
||||
@Column(name = "customize_id")
|
||||
private int customizeId;
|
||||
|
||||
public PlayerCustomize(PlayerProfile profile, int customizeId) {
|
||||
this.pdId = profile;
|
||||
this.customizeId = customizeId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.userdata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaPlayerModule")
|
||||
@Table(name = "diva_player_module", uniqueConstraints = {@UniqueConstraint(columnNames = {"pd_id", "module_id"})})
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PlayerModule implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "pd_id")
|
||||
private PlayerProfile pdId;
|
||||
|
||||
@Column(name = "module_id")
|
||||
private int moduleId;
|
||||
|
||||
public PlayerModule(PlayerProfile profile, int moduleId) {
|
||||
this.pdId = profile;
|
||||
this.moduleId = moduleId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.userdata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static icu.samnyan.aqua.sega.diva.util.DivaStringUtils.getDummyString;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaPlayerProfile")
|
||||
@Table(name = "diva_player_profile")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PlayerProfile implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
@Column(unique = true)
|
||||
private int pdId;
|
||||
|
||||
private String playerName = "xxx";
|
||||
|
||||
private int vocaloidPoints = 300;
|
||||
|
||||
private int level = 1;
|
||||
|
||||
private int levelExp = 0;
|
||||
|
||||
private String levelTitle = "xxx";
|
||||
|
||||
private int plateId = -1;
|
||||
|
||||
private int plateEffectId = -1;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private PassStat passwordStatus = PassStat.MISS;
|
||||
|
||||
@JsonIgnore
|
||||
private String password = "**********";
|
||||
|
||||
/**
|
||||
* Game play customize
|
||||
*/
|
||||
private boolean preferPerPvModule = true;
|
||||
|
||||
private boolean preferCommonModule = false;
|
||||
|
||||
private boolean usePerPvSkin = false;
|
||||
|
||||
private boolean usePerPvButtonSe = false;
|
||||
|
||||
private boolean usePerPvSliderSe = false;
|
||||
|
||||
private boolean usePerPvChainSliderSe = false;
|
||||
|
||||
private boolean usePerPvTouchSliderSe = false;
|
||||
|
||||
private String commonModule = "-999,-999,-999";
|
||||
|
||||
private String commonCustomizeItems = "-999,-999,-999,-999,-999,-999,-999,-999,-999,-999,-999,-999";
|
||||
|
||||
private LocalDateTime commonModuleSetTime = LocalDateTime.now();
|
||||
|
||||
private String moduleSelectItemFlag = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1";
|
||||
|
||||
// -1 is disable
|
||||
private int commonSkin = -1;
|
||||
|
||||
/**
|
||||
* Sound Setting
|
||||
*/
|
||||
private int headphoneVolume = 100;
|
||||
|
||||
private boolean buttonSeOn = true;
|
||||
|
||||
private int buttonSeVolume = 100;
|
||||
|
||||
private int sliderSeVolume = 100;
|
||||
|
||||
private int buttonSe = -1;
|
||||
|
||||
private int chainSlideSe = -1;
|
||||
|
||||
private int slideSe = -1;
|
||||
|
||||
private int sliderTouchSe = -1;
|
||||
|
||||
/**
|
||||
* View Setting
|
||||
*/
|
||||
@Enumerated(EnumType.STRING)
|
||||
private SortMode sortMode = SortMode.RELEASE_DATE;
|
||||
|
||||
@JsonIgnore
|
||||
private int nextPvId = -1;
|
||||
|
||||
@JsonIgnore
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Difficulty nextDifficulty = Difficulty.NORMAL;
|
||||
|
||||
@JsonIgnore
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Edition nextEdition = Edition.ORIGINAL;
|
||||
|
||||
private boolean showInterimRanking = true;
|
||||
|
||||
private boolean showClearStatus = true;
|
||||
|
||||
private boolean showClearBorder = true;
|
||||
|
||||
private boolean showRgoSetting = true;
|
||||
|
||||
@JsonIgnore
|
||||
private boolean contestNowPlayingEnable = false;
|
||||
|
||||
@JsonIgnore
|
||||
private int contestNowPlayingId = -1;
|
||||
|
||||
// Contest now playing progress
|
||||
@JsonIgnore
|
||||
private int contestNowPlayingValue = -1;
|
||||
|
||||
@JsonIgnore
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ContestBorder contestNowPlayingResultRank = ContestBorder.NONE;
|
||||
|
||||
// This store the current progress of contest
|
||||
@JsonIgnore
|
||||
private String contestNowPlayingSpecifier = "";
|
||||
|
||||
|
||||
/**
|
||||
* MyList, comma separate string
|
||||
*/
|
||||
private String myList0 = getDummyString("-1", 40);
|
||||
|
||||
private String myList1 = getDummyString("-1", 40);
|
||||
|
||||
private String myList2 = getDummyString("-1", 40);
|
||||
|
||||
public PlayerProfile(int pdId, String playerName) {
|
||||
this.pdId = pdId;
|
||||
this.playerName = playerName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.userdata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaPlayerPvCustomize")
|
||||
@Table(name = "diva_player_pv_customize", uniqueConstraints = {@UniqueConstraint(columnNames = {"pd_id", "pv_id"})})
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PlayerPvCustomize implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "pd_id")
|
||||
private PlayerProfile pdId;
|
||||
|
||||
@Column(name = "pv_id")
|
||||
private int pvId = -1;
|
||||
|
||||
private String module = "-999,-999,-999";
|
||||
|
||||
private String customize = "-999,-999,-999,-999,-999,-999,-999,-999,-999,-999,-999,-999";
|
||||
|
||||
private String customizeFlag = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1";
|
||||
|
||||
private int skin = -1;
|
||||
|
||||
private int buttonSe = -1;
|
||||
|
||||
private int slideSe = -1;
|
||||
|
||||
private int chainSlideSe = -1;
|
||||
|
||||
private int sliderTouchSe = -1;
|
||||
|
||||
public PlayerPvCustomize(PlayerProfile pdId, int pvId) {
|
||||
this.pdId = pdId;
|
||||
this.pvId = pvId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.userdata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.ChallengeKind;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.ClearResult;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Difficulty;
|
||||
import icu.samnyan.aqua.sega.diva.model.common.Edition;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaPlayerPvRecord")
|
||||
@Table(name = "diva_player_pv_record", uniqueConstraints = {@UniqueConstraint(columnNames = {"pd_id", "pv_id", "edition", "difficulty"})})
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PlayerPvRecord implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "pd_id")
|
||||
@JsonIgnore
|
||||
private PlayerProfile pdId;
|
||||
|
||||
@Column(name = "pv_id")
|
||||
private int pvId = -1;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Edition edition = Edition.ORIGINAL;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private Difficulty difficulty = Difficulty.NORMAL;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ClearResult result = ClearResult.NO_CLEAR;
|
||||
|
||||
private int maxScore = -1;
|
||||
|
||||
private int maxAttain = -1;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ChallengeKind challengeKind = ChallengeKind.UNDEFINED;
|
||||
|
||||
private String rgoPurchased = "0,0,0";
|
||||
|
||||
private String rgoPlayed = "0,0,0";
|
||||
|
||||
public PlayerPvRecord(int pvId, Edition edition) {
|
||||
this.pvId = pvId;
|
||||
this.edition = edition;
|
||||
}
|
||||
|
||||
public PlayerPvRecord(PlayerProfile pdId, int pvId, Edition edition, Difficulty difficulty) {
|
||||
this.pdId = pdId;
|
||||
this.pvId = pvId;
|
||||
this.edition = edition;
|
||||
this.difficulty = difficulty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package icu.samnyan.aqua.sega.diva.model.userdata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "DivaPlayerScreenShot")
|
||||
@Table(name = "diva_player_screen_shot")
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class PlayerScreenShot {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "pd_id")
|
||||
private PlayerProfile pdId;
|
||||
|
||||
private int pvId;
|
||||
|
||||
private String fileName;
|
||||
|
||||
private String moduleList;
|
||||
|
||||
private String customizeList;
|
||||
|
||||
public PlayerScreenShot(PlayerProfile pdId, String fileName, int pvId, String moduleList, String customizeList) {
|
||||
this.pdId = pdId;
|
||||
this.fileName = fileName;
|
||||
this.pvId = pvId;
|
||||
this.moduleList = moduleList;
|
||||
this.customizeList = customizeList;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user