354 lines
9.8 KiB
Java
354 lines
9.8 KiB
Java
package com.ubt.jimu.base.entities;
|
|
|
|
import com.ubt.jimu.base.download.DownloadInfo;
|
|
import com.ubt.jimu.gen.DaoSession;
|
|
import com.ubt.jimu.gen.RobotDao;
|
|
import java.io.Serializable;
|
|
import java.util.List;
|
|
import org.greenrobot.greendao.DaoException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class Robot implements Serializable {
|
|
private static final long serialVersionUID = 1;
|
|
private String actionFileURL;
|
|
private String animationFilePath;
|
|
private List<PartFileInfo> componentsFileInfos;
|
|
private String compressImagePath;
|
|
private transient DaoSession daoSession;
|
|
private boolean download;
|
|
private String filePath;
|
|
private boolean hasMission;
|
|
private String imagePath;
|
|
private boolean isChecked;
|
|
private String isLatest;
|
|
private String jarUrl;
|
|
private int modelCollectNum;
|
|
private double modelCommentScort;
|
|
private long modelCreatedTime;
|
|
private String modelDescription;
|
|
private String modelDescriptionLangeage;
|
|
private long modelId;
|
|
private String modelName;
|
|
private String modelNameLanguage;
|
|
private String modelType;
|
|
private long modelUpdateTime;
|
|
private String moveType;
|
|
private transient RobotDao myDao;
|
|
private List<Package> packageList;
|
|
private int state;
|
|
|
|
public Robot(long j, String str, String str2, String str3, String str4, int i, String str5, String str6, long j2, int i2, String str7, String str8, String str9, String str10, long j3, String str11, boolean z, String str12, boolean z2, String str13, double d) {
|
|
this.modelId = j;
|
|
this.modelName = str;
|
|
this.actionFileURL = str2;
|
|
this.imagePath = str3;
|
|
this.modelType = str4;
|
|
this.state = i;
|
|
this.isLatest = str5;
|
|
this.compressImagePath = str6;
|
|
this.modelCreatedTime = j2;
|
|
this.modelCollectNum = i2;
|
|
this.jarUrl = str7;
|
|
this.modelNameLanguage = str8;
|
|
this.modelDescription = str9;
|
|
this.modelDescriptionLangeage = str10;
|
|
this.modelUpdateTime = j3;
|
|
this.filePath = str11;
|
|
this.hasMission = z;
|
|
this.animationFilePath = str12;
|
|
this.download = z2;
|
|
this.moveType = str13;
|
|
this.modelCommentScort = d;
|
|
}
|
|
|
|
public void __setDaoSession(DaoSession daoSession) {
|
|
this.daoSession = daoSession;
|
|
this.myDao = daoSession != null ? daoSession.s() : null;
|
|
}
|
|
|
|
public void delete() {
|
|
RobotDao robotDao = this.myDao;
|
|
if (robotDao == null) {
|
|
throw new DaoException("Entity is detached from DAO context");
|
|
}
|
|
robotDao.b((RobotDao) this);
|
|
}
|
|
|
|
public String getActionFileURL() {
|
|
return this.actionFileURL;
|
|
}
|
|
|
|
public String getAnimationFilePath() {
|
|
return this.animationFilePath;
|
|
}
|
|
|
|
public List<PartFileInfo> getComponentsFileInfos() {
|
|
if (this.componentsFileInfos == null) {
|
|
DaoSession daoSession = this.daoSession;
|
|
if (daoSession == null) {
|
|
throw new DaoException("Entity is detached from DAO context");
|
|
}
|
|
List<PartFileInfo> a = daoSession.r().a(Long.valueOf(this.modelId));
|
|
synchronized (this) {
|
|
if (this.componentsFileInfos == null) {
|
|
this.componentsFileInfos = a;
|
|
}
|
|
}
|
|
}
|
|
return this.componentsFileInfos;
|
|
}
|
|
|
|
public String getCompressImagePath() {
|
|
return this.compressImagePath;
|
|
}
|
|
|
|
public boolean getDownload() {
|
|
return this.download;
|
|
}
|
|
|
|
public String getFilePath() {
|
|
return this.filePath;
|
|
}
|
|
|
|
public boolean getHasMission() {
|
|
return this.hasMission;
|
|
}
|
|
|
|
public String getImagePath() {
|
|
return this.imagePath;
|
|
}
|
|
|
|
public boolean getIsChecked() {
|
|
return this.isChecked;
|
|
}
|
|
|
|
public String getIsLatest() {
|
|
return this.isLatest;
|
|
}
|
|
|
|
public String getJarUrl() {
|
|
return this.jarUrl;
|
|
}
|
|
|
|
public int getModelCollectNum() {
|
|
return this.modelCollectNum;
|
|
}
|
|
|
|
public double getModelCommentScort() {
|
|
return this.modelCommentScort;
|
|
}
|
|
|
|
public long getModelCreatedTime() {
|
|
return this.modelCreatedTime;
|
|
}
|
|
|
|
public String getModelDescription() {
|
|
return this.modelDescription;
|
|
}
|
|
|
|
public String getModelDescriptionLangeage() {
|
|
return this.modelDescriptionLangeage;
|
|
}
|
|
|
|
public long getModelId() {
|
|
return this.modelId;
|
|
}
|
|
|
|
public String getModelName() {
|
|
return this.modelName;
|
|
}
|
|
|
|
public String getModelNameLanguage() {
|
|
return this.modelNameLanguage;
|
|
}
|
|
|
|
public String getModelType() {
|
|
return this.modelType;
|
|
}
|
|
|
|
public long getModelUpdateTime() {
|
|
return this.modelUpdateTime;
|
|
}
|
|
|
|
public String getMoveType() {
|
|
return this.moveType;
|
|
}
|
|
|
|
public List<Package> getPackageList() {
|
|
if (this.packageList == null) {
|
|
DaoSession daoSession = this.daoSession;
|
|
if (daoSession == null) {
|
|
throw new DaoException("Entity is detached from DAO context");
|
|
}
|
|
List<Package> b = daoSession.q().b(this.modelId);
|
|
synchronized (this) {
|
|
if (this.packageList == null) {
|
|
this.packageList = b;
|
|
}
|
|
}
|
|
}
|
|
return this.packageList;
|
|
}
|
|
|
|
public RobotLite getRobotLite() {
|
|
return new RobotLite(this.modelId, this.modelName, this.modelNameLanguage, this.filePath, false, false);
|
|
}
|
|
|
|
public int getState() {
|
|
return this.state;
|
|
}
|
|
|
|
public boolean isAllDownloaded() {
|
|
DownloadInfo needDownloadModelInfo = DownloadInfo.getNeedDownloadModelInfo(this);
|
|
List<DownloadInfo> newDownloadPartsInfo = DownloadInfo.getNewDownloadPartsInfo(this);
|
|
return needDownloadModelInfo == null && newDownloadPartsInfo != null && newDownloadPartsInfo.size() == 0;
|
|
}
|
|
|
|
public boolean isChecked() {
|
|
return this.isChecked;
|
|
}
|
|
|
|
public boolean isDownload() {
|
|
return this.download;
|
|
}
|
|
|
|
public boolean isHasMission() {
|
|
return this.hasMission;
|
|
}
|
|
|
|
public boolean isOfficial() {
|
|
return Integer.valueOf(getModelType()).intValue() == 1;
|
|
}
|
|
|
|
public void refresh() {
|
|
RobotDao robotDao = this.myDao;
|
|
if (robotDao == null) {
|
|
throw new DaoException("Entity is detached from DAO context");
|
|
}
|
|
robotDao.i(this);
|
|
}
|
|
|
|
public synchronized void resetComponentsFileInfos() {
|
|
this.componentsFileInfos = null;
|
|
}
|
|
|
|
public synchronized void resetPackageList() {
|
|
this.packageList = null;
|
|
}
|
|
|
|
public void setActionFileURL(String str) {
|
|
this.actionFileURL = str;
|
|
}
|
|
|
|
public void setAnimationFilePath(String str) {
|
|
this.animationFilePath = str;
|
|
}
|
|
|
|
public void setChecked(boolean z) {
|
|
this.isChecked = z;
|
|
}
|
|
|
|
public void setComponentsFileInfos(List<PartFileInfo> list) {
|
|
this.componentsFileInfos = list;
|
|
}
|
|
|
|
public void setCompressImagePath(String str) {
|
|
this.compressImagePath = str;
|
|
}
|
|
|
|
public void setDownload(boolean z) {
|
|
this.download = z;
|
|
}
|
|
|
|
public void setFilePath(String str) {
|
|
this.filePath = str;
|
|
}
|
|
|
|
public void setHasMission(boolean z) {
|
|
this.hasMission = z;
|
|
}
|
|
|
|
public void setImagePath(String str) {
|
|
this.imagePath = str;
|
|
}
|
|
|
|
public void setIsChecked(boolean z) {
|
|
this.isChecked = z;
|
|
}
|
|
|
|
public void setIsLatest(String str) {
|
|
this.isLatest = str;
|
|
}
|
|
|
|
public void setJarUrl(String str) {
|
|
this.jarUrl = str;
|
|
}
|
|
|
|
public void setModelCollectNum(int i) {
|
|
this.modelCollectNum = i;
|
|
}
|
|
|
|
public void setModelCommentScort(double d) {
|
|
this.modelCommentScort = d;
|
|
}
|
|
|
|
public void setModelCreatedTime(long j) {
|
|
this.modelCreatedTime = j;
|
|
}
|
|
|
|
public void setModelDescription(String str) {
|
|
this.modelDescription = str;
|
|
}
|
|
|
|
public void setModelDescriptionLangeage(String str) {
|
|
this.modelDescriptionLangeage = str;
|
|
}
|
|
|
|
public void setModelId(long j) {
|
|
this.modelId = j;
|
|
}
|
|
|
|
public void setModelName(String str) {
|
|
this.modelName = str;
|
|
}
|
|
|
|
public void setModelNameLanguage(String str) {
|
|
this.modelNameLanguage = str;
|
|
}
|
|
|
|
public void setModelType(String str) {
|
|
this.modelType = str;
|
|
}
|
|
|
|
public void setModelUpdateTime(long j) {
|
|
this.modelUpdateTime = j;
|
|
}
|
|
|
|
public void setMoveType(String str) {
|
|
this.moveType = str;
|
|
}
|
|
|
|
public void setPackageList(List<Package> list) {
|
|
this.packageList = list;
|
|
}
|
|
|
|
public void setState(int i) {
|
|
this.state = i;
|
|
}
|
|
|
|
public String toString() {
|
|
return "Robot{modelId=" + this.modelId + ", modelName='" + this.modelName + "', actionFileURL='" + this.actionFileURL + "', imagePath='" + this.imagePath + "', modelType='" + this.modelType + "', state=" + this.state + ", isLatest='" + this.isLatest + "', compressImagePath='" + this.compressImagePath + "', modelCreatedTime=" + this.modelCreatedTime + ", modelCollectNum=" + this.modelCollectNum + ", jarUrl='" + this.jarUrl + "', modelNameLanguage='" + this.modelNameLanguage + "', modelDescription='" + this.modelDescription + "', modelDescriptionLangeage='" + this.modelDescriptionLangeage + "', modelUpdateTime=" + this.modelUpdateTime + ", filePath='" + this.filePath + "', animationFilePath='" + this.animationFilePath + "', isChecked=" + this.isChecked + ", download=" + this.download + ", moveType='" + this.moveType + "', modelCommentScort=" + this.modelCommentScort + '}';
|
|
}
|
|
|
|
public void update() {
|
|
RobotDao robotDao = this.myDao;
|
|
if (robotDao == null) {
|
|
throw new DaoException("Entity is detached from DAO context");
|
|
}
|
|
robotDao.j(this);
|
|
}
|
|
|
|
public Robot() {
|
|
}
|
|
}
|