forked from Fascinated/Bat
cleanup
This commit is contained in:
parent
b36bdae5de
commit
84dfe5a119
@ -4,14 +4,12 @@ import lombok.AllArgsConstructor;
|
|||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@Getter @Setter
|
@Getter @Setter
|
||||||
public abstract class Profile implements Serializable {
|
public abstract class Profile {
|
||||||
/**
|
/**
|
||||||
* The key of the profile.
|
* The key of the profile.
|
||||||
*/
|
*/
|
||||||
|
@ -2,7 +2,6 @@ package cc.fascinated.bat.common;
|
|||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@ -10,7 +9,7 @@ import java.util.Map;
|
|||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
public class ProfileHolder implements Serializable {
|
public class ProfileHolder {
|
||||||
/**
|
/**
|
||||||
* The profiles for the holder
|
* The profiles for the holder
|
||||||
*/
|
*/
|
||||||
|
@ -6,7 +6,6 @@ import lombok.Getter;
|
|||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import net.dv8tion.jda.api.entities.Role;
|
import net.dv8tion.jda.api.entities.Role;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -14,7 +13,7 @@ import java.util.List;
|
|||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@Setter @Getter
|
@Setter @Getter
|
||||||
public class AutoRoleProfile extends Profile implements Serializable {
|
public class AutoRoleProfile extends Profile {
|
||||||
private static final int DEFAULT_MAX_ROLES = 10;
|
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.User;
|
||||||
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
|
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -17,7 +16,7 @@ import java.util.*;
|
|||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@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!";
|
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 lombok.Setter;
|
||||||
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
|
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@Getter @Setter
|
@Getter @Setter
|
||||||
public class GuildNumberOneScoreFeedProfile extends Profile implements Serializable {
|
public class GuildNumberOneScoreFeedProfile extends Profile {
|
||||||
/**
|
/**
|
||||||
* The channel ID of the score feed
|
* The channel ID of the score feed
|
||||||
*/
|
*/
|
||||||
|
@ -6,7 +6,6 @@ import lombok.Getter;
|
|||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
|
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -14,7 +13,7 @@ import java.util.List;
|
|||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@Getter @Setter
|
@Getter @Setter
|
||||||
public class GuildUserScoreFeedProfile extends Profile implements Serializable {
|
public class GuildUserScoreFeedProfile extends Profile {
|
||||||
/**
|
/**
|
||||||
* The channel ID of the score feed
|
* The channel ID of the score feed
|
||||||
*/
|
*/
|
||||||
|
@ -4,13 +4,11 @@ import cc.fascinated.bat.common.Profile;
|
|||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@Setter @Getter
|
@Setter @Getter
|
||||||
public class UserScoreSaberProfile extends Profile implements Serializable {
|
public class UserScoreSaberProfile extends Profile {
|
||||||
/**
|
/**
|
||||||
* The Account ID of the ScoreSaber 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.annotation.Id;
|
||||||
import org.springframework.data.mongodb.core.mapping.Document;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
||||||
|
|
||||||
import java.io.Serial;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -20,9 +18,7 @@ import java.util.Date;
|
|||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Getter @Setter
|
@Getter @Setter
|
||||||
@Document(collection = "guilds")
|
@Document(collection = "guilds")
|
||||||
public class BatGuild extends ProfileHolder implements Serializable {
|
public class BatGuild extends ProfileHolder {
|
||||||
@Serial private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ID of the guild
|
* 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.annotation.Id;
|
||||||
import org.springframework.data.mongodb.core.mapping.Document;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
||||||
|
|
||||||
import java.io.Serial;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -20,9 +18,7 @@ import java.util.Date;
|
|||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Getter @Setter
|
@Getter @Setter
|
||||||
@Document(collection = "users")
|
@Document(collection = "users")
|
||||||
public class BatUser extends ProfileHolder implements Serializable {
|
public class BatUser extends ProfileHolder {
|
||||||
@Serial private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ID of the user
|
* The ID of the user
|
||||||
*/
|
*/
|
||||||
|
@ -3,10 +3,8 @@ package cc.fascinated.bat.model.token.beatsaber.scoresaber;
|
|||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
public class ScoreSaberAccountToken implements Serializable {
|
public class ScoreSaberAccountToken {
|
||||||
/**
|
/**
|
||||||
* The id for this ScoreSaber account.
|
* The id for this ScoreSaber account.
|
||||||
*/
|
*/
|
||||||
@ -91,7 +89,7 @@ public class ScoreSaberAccountToken implements Serializable {
|
|||||||
* The badge for this account.
|
* The badge for this account.
|
||||||
*/
|
*/
|
||||||
@AllArgsConstructor @Getter
|
@AllArgsConstructor @Getter
|
||||||
public static class Badge implements Serializable {
|
public static class Badge {
|
||||||
/**
|
/**
|
||||||
* The image for this badge.
|
* The image for this badge.
|
||||||
*/
|
*/
|
||||||
@ -107,7 +105,7 @@ public class ScoreSaberAccountToken implements Serializable {
|
|||||||
* The score stats for this account.
|
* The score stats for this account.
|
||||||
*/
|
*/
|
||||||
@AllArgsConstructor @Getter
|
@AllArgsConstructor @Getter
|
||||||
public static class ScoreStats implements Serializable {
|
public static class ScoreStats {
|
||||||
/**
|
/**
|
||||||
* The total score for this account.
|
* The total score for this account.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user