添加downloadOffText,检查下载上传数据是否完整
This commit is contained in:
@ -42,14 +42,25 @@ public class GameEntity {
|
||||
private String link;
|
||||
|
||||
@SerializedName("concern_article_exists")
|
||||
private boolean exists = true;
|
||||
private boolean newsExists = true;
|
||||
|
||||
public boolean isExists() {
|
||||
return exists;
|
||||
@SerializedName("download_off_text")
|
||||
private String downloadOffText;
|
||||
|
||||
public void setDownloadOffText(String downloadOffText) {
|
||||
this.downloadOffText = downloadOffText;
|
||||
}
|
||||
|
||||
public void setExists(boolean exists) {
|
||||
this.exists = exists;
|
||||
public String getDownloadOffText() {
|
||||
return downloadOffText;
|
||||
}
|
||||
|
||||
public boolean isNewsExists() {
|
||||
return newsExists;
|
||||
}
|
||||
|
||||
public void setNewsExists(boolean newsExists) {
|
||||
this.newsExists = newsExists;
|
||||
}
|
||||
|
||||
public String getLink() {
|
||||
@ -181,15 +192,27 @@ public class GameEntity {
|
||||
gameEntity.setIcon(icon);
|
||||
gameEntity.setName(name);
|
||||
gameEntity.setBrief(brief);
|
||||
gameEntity.setTag(new ArrayList<>(tag));
|
||||
gameEntity.setApk(new ArrayList<>(apk));
|
||||
if (tag != null) {
|
||||
gameEntity.setTag(new ArrayList<>(tag));
|
||||
}
|
||||
if (apk != null) {
|
||||
gameEntity.setApk(new ArrayList<>(apk));
|
||||
}
|
||||
if (collection != null) {
|
||||
gameEntity.setCollection(new ArrayList<>(collection));
|
||||
}
|
||||
gameEntity.setSlide(slide);
|
||||
gameEntity.setTest(test);
|
||||
gameEntity.setDownloadAddWord(downloadAddWord);
|
||||
gameEntity.setEntryMap(new ArrayMap<String, DownloadEntity>(entryMap));
|
||||
if (entryMap != null) {
|
||||
gameEntity.setEntryMap(new ArrayMap<String, DownloadEntity>(entryMap));
|
||||
}
|
||||
gameEntity.setImage(image);
|
||||
gameEntity.setType(type);
|
||||
gameEntity.setPluggable(isPluggable);
|
||||
gameEntity.setLink(link);
|
||||
gameEntity.setNewsExists(newsExists);
|
||||
gameEntity.setDownloadOffText(downloadOffText);
|
||||
return gameEntity;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user