package com.ubt.jimu.diy; import android.text.TextUtils; import com.ubt.jimu.base.entities.Robot; import com.ubt.jimu.unity.ModelType; import java.io.File; import java.util.Objects; /* loaded from: classes.dex */ public class DiyRobot { public static final int STATE_NORMAL = 0; public static final int STATE_UPLOADING = 1; public String compressImagePath; private int customModelCategory; private long customModelCreatetime; private String customModelId; private String description; public String filePath; private boolean isDelete; private boolean isModify; public String isReleased; private Long localId; private String modelCreatedId; public long modelCreatedTime; private int modelId; private String modelName; private long modifyTime; public boolean selected; public int uploadState; private boolean useable; private String version; public static Robot toModelBean(DiyRobot diyRobot) { Robot robot = new Robot(); robot.setModelName(diyRobot.customModelId); robot.setModelDescription(diyRobot.modelName); robot.setModelDescriptionLangeage(diyRobot.modelName); robot.setModelType(ModelType.PLAYER_DATA.getType() + ""); robot.setFilePath(diyRobot.getLogPath()); robot.setModelCreatedTime(diyRobot.customModelCreatetime); robot.setModelId((long) diyRobot.modelId); return robot; } public boolean equals(Object obj) { if (obj == null || !(obj instanceof DiyRobot)) { return false; } DiyRobot diyRobot = (DiyRobot) obj; if (TextUtils.isEmpty(this.customModelId)) { return true; } return this.customModelId.equals(diyRobot.customModelId); } public String getCompressImagePath() { return this.compressImagePath; } public int getCustomModelCategory() { return this.customModelCategory; } public long getCustomModelCreatetime() { return this.customModelCreatetime; } public String getCustomModelId() { return this.customModelId; } public String getDescription() { return this.description; } public String getFilePath() { return this.filePath; } public boolean getIsDelete() { return this.isDelete; } public boolean getIsModify() { return this.isModify; } public String getIsReleased() { return this.isReleased; } public Long getLocalId() { return this.localId; } public String getLogPath() { return DiyRobotDbHandler.getCustomModelPath(this.modelCreatedId) + this.customModelId + File.separator + this.customModelId + ".jpg"; } public String getModelCreatedId() { return this.modelCreatedId; } public long getModelCreatedTime() { return this.modelCreatedTime; } public int getModelId() { return this.modelId; } public String getModelName() { return this.modelName; } public long getModifyTime() { return this.modifyTime; } public boolean getSelected() { return this.selected; } public int getUploadState() { return this.uploadState; } public boolean getUseable() { return this.useable; } public String getVersion() { return this.version; } public int hashCode() { return Objects.hash(this.customModelId); } public void setCompressImagePath(String str) { this.compressImagePath = str; } public void setCustomModelCategory(int i) { this.customModelCategory = i; } public void setCustomModelCreatetime(long j) { this.customModelCreatetime = j; } public void setCustomModelId(String str) { this.customModelId = str; } public void setDescription(String str) { this.description = str; } public void setFilePath(String str) { this.filePath = str; } public void setIsDelete(boolean z) { this.isDelete = z; } public void setIsModify(boolean z) { this.isModify = z; } public void setIsReleased(String str) { this.isReleased = str; } public void setLocalId(Long l) { this.localId = l; } public void setModelCreatedId(String str) { this.modelCreatedId = str; } public void setModelCreatedTime(long j) { this.modelCreatedTime = j; } public void setModelId(int i) { this.modelId = i; } public void setModelName(String str) { this.modelName = str; } public void setModifyTime(long j) { this.modifyTime = j; } public void setSelected(boolean z) { this.selected = z; } public void setUploadState(int i) { this.uploadState = i; } public void setUseable(boolean z) { this.useable = z; } public void setVersion(String str) { this.version = str; } }