2024-04-19 09:46:54 +08:00
|
|
|
package com.coloryr.allmusic.server.core.objs.message;
|
2020-03-20 22:25:51 +08:00
|
|
|
|
2023-01-09 16:54:42 +08:00
|
|
|
public class PageObj {
|
2024-04-17 22:15:12 +08:00
|
|
|
public String choice;
|
|
|
|
|
public String next;
|
|
|
|
|
public String last;
|
2020-03-20 22:25:51 +08:00
|
|
|
|
2024-05-08 16:25:33 +08:00
|
|
|
public static PageObj make() {
|
|
|
|
|
PageObj obj = new PageObj();
|
|
|
|
|
obj.init();
|
|
|
|
|
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-01 21:33:06 +08:00
|
|
|
public boolean check() {
|
2024-04-17 22:15:12 +08:00
|
|
|
boolean res = choice == null;
|
|
|
|
|
if (next == null)
|
2022-02-01 21:33:06 +08:00
|
|
|
res = true;
|
2024-04-17 22:15:12 +08:00
|
|
|
if (last == null)
|
2022-02-01 21:33:06 +08:00
|
|
|
res = true;
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
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
|
|
|
choice = "§e%Index%->%MusicName% | %MusicAuthor% | %MusicAl%";
|
|
|
|
|
next = "§e[§n点我下一页§r§e]";
|
|
|
|
|
last = "§e[§n点我上一页§r§e]";
|
2023-08-03 10:15:57 +08:00
|
|
|
}
|
2020-03-20 22:25:51 +08:00
|
|
|
}
|