This commit is contained in:
Lee 2024-06-27 13:02:55 +01:00
parent b36bdae5de
commit 84dfe5a119
10 changed files with 12 additions and 32 deletions

@ -4,14 +4,12 @@ import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
/**
* @author Fascinated (fascinated7)
*/
@AllArgsConstructor
@Getter @Setter
public abstract class Profile implements Serializable {
public abstract class Profile {
/**
* The key of the profile.
*/

@ -2,7 +2,6 @@ package cc.fascinated.bat.common;
import lombok.Getter;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
@ -10,7 +9,7 @@ import java.util.Map;
* @author Fascinated (fascinated7)
*/
@Getter
public class ProfileHolder implements Serializable {
public class ProfileHolder {
/**
* The profiles for the holder
*/

@ -6,7 +6,6 @@ import lombok.Getter;
import lombok.Setter;
import net.dv8tion.jda.api.entities.Role;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@ -14,7 +13,7 @@ import java.util.List;
* @author Fascinated (fascinated7)
*/
@Setter @Getter
public class AutoRoleProfile extends Profile implements Serializable {
public class AutoRoleProfile extends Profile {
private static final int DEFAULT_MAX_ROLES = 10;
/**

@ -9,7 +9,6 @@ import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.entities.User;
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
import java.io.Serializable;
import java.util.*;
/**
@ -17,7 +16,7 @@ import java.util.*;
*/
@Getter
@Setter
public class BirthdayProfile extends Profile implements Serializable {
public class BirthdayProfile extends Profile {
private static final String DEFAULT_MESSAGE = "Happy Birthday {user} :tada: :birthday: You are now {age} years old!";
/**

@ -6,13 +6,11 @@ import lombok.Getter;
import lombok.Setter;
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
import java.io.Serializable;
/**
* @author Fascinated (fascinated7)
*/
@Getter @Setter
public class GuildNumberOneScoreFeedProfile extends Profile implements Serializable {
public class GuildNumberOneScoreFeedProfile extends Profile {
/**
* The channel ID of the score feed
*/

@ -6,7 +6,6 @@ import lombok.Getter;
import lombok.Setter;
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@ -14,7 +13,7 @@ import java.util.List;
* @author Fascinated (fascinated7)
*/
@Getter @Setter
public class GuildUserScoreFeedProfile extends Profile implements Serializable {
public class GuildUserScoreFeedProfile extends Profile {
/**
* The channel ID of the score feed
*/

@ -4,13 +4,11 @@ import cc.fascinated.bat.common.Profile;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
/**
* @author Fascinated (fascinated7)
*/
@Setter @Getter
public class UserScoreSaberProfile extends Profile implements Serializable {
public class UserScoreSaberProfile extends Profile {
/**
* The Account ID of the ScoreSaber profile
*/

@ -10,8 +10,6 @@ import net.dv8tion.jda.api.entities.Guild;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
@ -20,9 +18,7 @@ import java.util.Date;
@RequiredArgsConstructor
@Getter @Setter
@Document(collection = "guilds")
public class BatGuild extends ProfileHolder implements Serializable {
@Serial private static final long serialVersionUID = 1L;
public class BatGuild extends ProfileHolder {
/**
* The ID of the guild
*/

@ -10,8 +10,6 @@ import net.dv8tion.jda.api.entities.User;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
@ -20,9 +18,7 @@ import java.util.Date;
@RequiredArgsConstructor
@Getter @Setter
@Document(collection = "users")
public class BatUser extends ProfileHolder implements Serializable {
@Serial private static final long serialVersionUID = 1L;
public class BatUser extends ProfileHolder {
/**
* The ID of the user
*/

@ -3,10 +3,8 @@ package cc.fascinated.bat.model.token.beatsaber.scoresaber;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.io.Serializable;
@Getter
public class ScoreSaberAccountToken implements Serializable {
public class ScoreSaberAccountToken {
/**
* The id for this ScoreSaber account.
*/
@ -91,7 +89,7 @@ public class ScoreSaberAccountToken implements Serializable {
* The badge for this account.
*/
@AllArgsConstructor @Getter
public static class Badge implements Serializable {
public static class Badge {
/**
* The image for this badge.
*/
@ -107,7 +105,7 @@ public class ScoreSaberAccountToken implements Serializable {
* The score stats for this account.
*/
@AllArgsConstructor @Getter
public static class ScoreStats implements Serializable {
public static class ScoreStats {
/**
* The total score for this account.
*/