Files
AllMusic/core/objs/message/PageObj.java
T
2026-03-04 13:57:59 +08:00

34 lines
844 B
Java

package com.coloryr.allmusic.server.core.objs.message;
public class PageObj {
public String choice;
public String next;
public String last;
public static PageObj make() {
PageObj obj = new PageObj();
obj.init();
return obj;
}
public boolean check() {
boolean res = choice == null;
if (next == null)
res = true;
if (last == null)
res = true;
return res;
}
public void init() {
if (choice == null)
choice = "<yellow>" + ARG.index + "->" + ARG.musicName + " | " + ARG.musicAuthor + " | " + ARG.musicAl;
if (next == null)
next = "<yellow>[<underlined>点我下一页</underlined>]";
if (last == null)
last = "<yellow>[<underlined>点我上一页</underlined>]";
}
}