2024-04-19 09:46:54 +08:00
|
|
|
package com.coloryr.allmusic.server.core.objs.message;
|
2020-04-19 20:36:12 +08:00
|
|
|
|
2023-01-09 16:54:42 +08:00
|
|
|
public class SearchObj {
|
2024-04-17 22:15:12 +08:00
|
|
|
public String noPer;
|
|
|
|
|
public String cantSearch;
|
|
|
|
|
public String res;
|
|
|
|
|
public String emptySearch;
|
|
|
|
|
public String errorNum;
|
|
|
|
|
public String choice;
|
|
|
|
|
public String cantNext;
|
|
|
|
|
public String cantLast;
|
|
|
|
|
public String startSearch;
|
2020-04-19 20:36:12 +08:00
|
|
|
|
2024-05-08 16:25:33 +08:00
|
|
|
public static SearchObj make() {
|
|
|
|
|
SearchObj obj = new SearchObj();
|
|
|
|
|
obj.init();
|
|
|
|
|
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-27 11:33:26 +08:00
|
|
|
public boolean check() {
|
2024-04-17 22:15:12 +08:00
|
|
|
if (noPer == null)
|
2022-02-01 21:33:06 +08:00
|
|
|
return true;
|
2024-04-17 22:15:12 +08:00
|
|
|
if (cantSearch == null)
|
2022-02-01 21:33:06 +08:00
|
|
|
return true;
|
2024-04-17 22:15:12 +08:00
|
|
|
if (res == null)
|
2022-02-01 21:33:06 +08:00
|
|
|
return true;
|
2024-04-17 22:15:12 +08:00
|
|
|
if (emptySearch == null)
|
2022-02-01 21:33:06 +08:00
|
|
|
return true;
|
2024-04-17 22:15:12 +08:00
|
|
|
if (errorNum == null)
|
2022-02-01 21:33:06 +08:00
|
|
|
return true;
|
2024-04-17 22:15:12 +08:00
|
|
|
if (choice == null)
|
2022-02-01 21:33:06 +08:00
|
|
|
return true;
|
2024-04-17 22:15:12 +08:00
|
|
|
if (cantNext == null)
|
2022-02-01 21:33:06 +08:00
|
|
|
return true;
|
2024-04-17 22:15:12 +08:00
|
|
|
if (cantLast == null)
|
2022-02-01 21:33:06 +08:00
|
|
|
return true;
|
2024-04-17 22:15:12 +08:00
|
|
|
return startSearch == null;
|
2022-02-01 21:33:06 +08:00
|
|
|
}
|
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
|
|
|
startSearch = "§d[AllMusic3]§e正在排队搜歌";
|
|
|
|
|
noPer = "§d[AllMusic3]§c你没有权限搜歌";
|
|
|
|
|
cantSearch = "§d[AllMusic3]§c无法搜索歌曲:%Music%";
|
|
|
|
|
res = "§d[AllMusic3]§e搜索结果";
|
|
|
|
|
emptySearch = "§d[AllMusic3]§c你没有搜索音乐";
|
|
|
|
|
errorNum = "§d[AllMusic3]§c请输入正确的序号";
|
|
|
|
|
choice = "§d[AllMusic3]§e你选择了序号%Num%";
|
|
|
|
|
cantNext = "§d[AllMusic3]§c无法下一页";
|
|
|
|
|
cantLast = "§d[AllMusic3]§c无法上一页";
|
2023-08-03 10:15:57 +08:00
|
|
|
}
|
2020-04-19 20:36:12 +08:00
|
|
|
}
|