Files
AllMusic/core/objs/message/LyricObj.java
T
Color_yr 25fa8506b0 3.4.0
添加空闲歌单不订阅
转移列表到数据库
语言文件不覆盖
语言为空不发送
#Fixed #42
2025-03-24 18:20:45 +08:00

42 lines
983 B
Java

package com.coloryr.allmusic.server.core.objs.message;
public class LyricObj {
public String data;
public String tdata;
public String empty1;
public String empty2;
public String empty3;
public static LyricObj make() {
LyricObj obj = new LyricObj();
obj.init();
return obj;
}
public boolean check() {
if (data == null)
return true;
if (tdata == null)
return true;
if (empty1 == null)
return true;
if (empty2 == null)
return true;
return empty3 == null;
}
public void init() {
if (data == null)
data = PAL.lyric;
if (tdata == null)
tdata = PAL.lyric + "(" + PAL.tlyric + ")";
if (empty1 == null)
empty1 = "没有歌词";
if (empty2 == null)
empty2 = "没有翻译歌词";
if (empty3 == null)
empty3 = "没有KTV歌词";
}
}