Files
AllMusic/core/objs/message/MessageObj.java
T

125 lines
3.5 KiB
Java
Raw Normal View History

2024-04-19 09:46:54 +08:00
package com.coloryr.allmusic.server.core.objs.message;
2020-03-20 22:25:51 +08:00
2024-04-19 09:46:54 +08:00
import com.coloryr.allmusic.server.core.AllMusic;
2022-12-26 15:36:01 +08:00
2023-01-09 16:54:42 +08:00
public class MessageObj {
2024-04-17 22:15:12 +08:00
public MusicPlayObj musicPlay;
public AddMusicObj addMusic;
public PageObj page;
public LyricObj lyric;
public VoteObj vote;
public PushObj push;
public SearchObj search;
public HudObj hud;
public HudNameObj hudList;
public CommandObj command;
public CustomObj custom;
public PAPIObj papi;
public CostObj cost;
public ClickObj click;
public HelpObj help;
public FunObj fun;
public CancelObj cancel;
public String version;
2022-12-26 15:36:01 +08:00
2024-05-08 16:25:33 +08:00
public static MessageObj make() {
MessageObj obj = new MessageObj();
obj.init();
return obj;
}
2021-02-15 16:05:42 +08:00
public boolean check() {
boolean saveConfig = false;
2024-04-17 22:15:12 +08:00
if (musicPlay == null || musicPlay.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
musicPlay = MusicPlayObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (addMusic == null || addMusic.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
addMusic = AddMusicObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (page == null || page.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
page = PageObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (lyric == null || lyric.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
lyric = LyricObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (vote == null || vote.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
vote = VoteObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (search == null || search.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
search = SearchObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (hud == null || hud.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
hud = HudObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (hudList == null || hudList.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
hudList = HudNameObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (command == null || command.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
command = CommandObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (custom == null || custom.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
custom = CustomObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (papi == null || papi.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
papi = PAPIObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (cost == null || cost.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
cost = CostObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (click == null || click.check()) {
2021-02-15 16:05:42 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
click = ClickObj.make();
2021-02-15 16:05:42 +08:00
}
2024-04-17 22:15:12 +08:00
if (help == null || help.check()) {
2021-09-04 17:22:48 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
help = HelpObj.make();
2021-09-04 17:22:48 +08:00
}
2024-04-17 22:15:12 +08:00
if (fun == null || fun.check()) {
2023-01-09 15:56:26 +08:00
saveConfig = true;
2024-04-17 22:15:12 +08:00
fun = FunObj.make();
}
if (push == null || push.check()) {
saveConfig = true;
push = PushObj.make();
}
if (cancel == null || cancel.check()) {
saveConfig = true;
cancel = CancelObj.make();
2023-01-09 15:56:26 +08:00
}
2021-02-15 16:05:42 +08:00
return saveConfig;
}
2023-08-03 10:15:57 +08:00
2023-10-22 10:14:55 +08:00
public void init() {
2024-04-17 22:15:12 +08:00
musicPlay = MusicPlayObj.make();
addMusic = AddMusicObj.make();
page = PageObj.make();
lyric = LyricObj.make();
vote = VoteObj.make();
search = SearchObj.make();
hud = HudObj.make();
command = CommandObj.make();
hudList = HudNameObj.make();
custom = CustomObj.make();
papi = PAPIObj.make();
cost = CostObj.make();
click = ClickObj.make();
help = HelpObj.make();
fun = FunObj.make();
push = PushObj.make();
cancel = CancelObj.make();
version = AllMusic.messageVersion;
2023-08-03 10:15:57 +08:00
}
2020-03-20 22:25:51 +08:00
}