DownloadEntry修改为DownloadEntity
This commit is contained in:
@ -2,7 +2,7 @@ package com.gh.gamecenter.entity;
|
||||
|
||||
import android.support.v4.util.ArrayMap;
|
||||
|
||||
import com.gh.download.DownloadEntry;
|
||||
import com.gh.download.DownloadEntity;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -31,13 +31,13 @@ public class GameEntity {
|
||||
@SerializedName("d_button_add_word")
|
||||
private String downloadAddWord;
|
||||
|
||||
private ArrayMap<String, DownloadEntry> entryMap;
|
||||
private ArrayMap<String, DownloadEntity> entryMap;
|
||||
|
||||
private String image;
|
||||
|
||||
private String type;
|
||||
|
||||
private String pluginPlatform;
|
||||
private boolean isPluggable;
|
||||
|
||||
private String link;
|
||||
|
||||
@ -91,7 +91,7 @@ public class GameEntity {
|
||||
|
||||
public ArrayList<ApkEntity> getApk() {
|
||||
if (apk == null) {
|
||||
apk = new ArrayList<ApkEntity>();
|
||||
apk = new ArrayList<>();
|
||||
}
|
||||
return apk;
|
||||
}
|
||||
@ -124,11 +124,11 @@ public class GameEntity {
|
||||
this.test = test;
|
||||
}
|
||||
|
||||
public ArrayMap<String, DownloadEntry> getEntryMap() {
|
||||
public ArrayMap<String, DownloadEntity> getEntryMap() {
|
||||
return entryMap;
|
||||
}
|
||||
|
||||
public void setEntryMap(ArrayMap<String, DownloadEntry> entryMap) {
|
||||
public void setEntryMap(ArrayMap<String, DownloadEntity> entryMap) {
|
||||
this.entryMap = entryMap;
|
||||
}
|
||||
|
||||
@ -156,12 +156,12 @@ public class GameEntity {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getPluginPlatform() {
|
||||
return pluginPlatform;
|
||||
public boolean isPluggable() {
|
||||
return isPluggable;
|
||||
}
|
||||
|
||||
public void setPluginPlatform(String pluginPlatform) {
|
||||
this.pluginPlatform = pluginPlatform;
|
||||
public void setPluggable(boolean pluggable) {
|
||||
isPluggable = pluggable;
|
||||
}
|
||||
|
||||
public GameEntity clone() {
|
||||
@ -170,15 +170,15 @@ public class GameEntity {
|
||||
gameEntity.setIcon(icon);
|
||||
gameEntity.setName(name);
|
||||
gameEntity.setBrief(brief);
|
||||
gameEntity.setTag(new ArrayList<String>(tag));
|
||||
gameEntity.setApk(new ArrayList<ApkEntity>(apk));
|
||||
gameEntity.setTag(new ArrayList<>(tag));
|
||||
gameEntity.setApk(new ArrayList<>(apk));
|
||||
gameEntity.setSlide(slide);
|
||||
gameEntity.setTest(test);
|
||||
gameEntity.setDownloadAddWord(downloadAddWord);
|
||||
gameEntity.setEntryMap(new ArrayMap<String, DownloadEntry>(entryMap));
|
||||
gameEntity.setEntryMap(new ArrayMap<String, DownloadEntity>(entryMap));
|
||||
gameEntity.setImage(image);
|
||||
gameEntity.setType(type);
|
||||
gameEntity.setPluginPlatform(pluginPlatform);
|
||||
gameEntity.setPluggable(isPluggable);
|
||||
return gameEntity;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user