package com.ubt.jimu.base.db.diy; import android.text.TextUtils; import com.ubt.jimu.base.entities.RobotLite; import java.io.Serializable; /* loaded from: classes.dex */ public class DiyDBModel implements Serializable, Comparable { private static final int CONTROLLER_COMPLETE = 1; private static final long serialVersionUID = 12840; private String actionPath; private int completeState; private String compressImagePath; private int customModelCategory; private long customModelCreatetime; private String customModelId; private String description; private String filePath; private Long id; private boolean isDelete; private Boolean isModify; private long lastUploadTime; private String modelCreatedId; private Integer modelId; private String modelName; private long modifyTime; private Integer mystep; private String step1Desc; private Integer step1state; private Integer step2state; private Integer step3state; private Integer step4state; private String step5PathDesc; private String step5desc; private Integer step5state; private Integer uploadState; private boolean useable; private String version; public DiyDBModel(Long l, String str, String str2, int i, long j, long j2, Boolean bool, Integer num, boolean z, String str3, boolean z2, String str4, String str5, String str6, long j3, String str7, Integer num2, Integer num3, String str8, Integer num4, Integer num5, Integer num6, Integer num7, String str9, String str10, Integer num8, String str11, int i2) { this.isModify = false; this.modelId = 0; this.useable = true; this.isDelete = false; this.uploadState = 0; this.step1state = 0; this.step2state = 0; this.step3state = 0; this.step4state = 0; this.step5state = 0; this.mystep = 0; this.actionPath = ""; this.id = l; this.customModelId = str; this.modelName = str2; this.customModelCategory = i; this.customModelCreatetime = j; this.modifyTime = j2; this.isModify = bool; this.modelId = num; this.useable = z; this.version = str3; this.isDelete = z2; this.description = str4; this.modelCreatedId = str5; this.compressImagePath = str6; this.lastUploadTime = j3; this.filePath = str7; this.uploadState = num2; this.step1state = num3; this.step1Desc = str8; this.step2state = num4; this.step3state = num5; this.step4state = num6; this.step5state = num7; this.step5desc = str9; this.step5PathDesc = str10; this.mystep = num8; this.actionPath = str11; this.completeState = i2; } public String getActionPath() { return this.actionPath; } public int getCompleteState() { return this.completeState; } 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 Long getId() { return this.id; } public boolean getIsDelete() { return this.isDelete; } public Boolean getIsModify() { return this.isModify; } public long getLastUploadTime() { return this.lastUploadTime; } public String getModelCreatedId() { return this.modelCreatedId; } public Integer getModelId() { return this.modelId; } public String getModelName() { return this.modelName; } public Boolean getModify() { return this.isModify; } public long getModifyTime() { return this.modifyTime; } public Integer getMyStep() { return this.mystep; } public Integer getMystep() { return this.mystep; } public RobotLite getRobotLite() { return new RobotLite(this.modelId.intValue(), this.customModelId, this.modelName, this.filePath, true, true); } public String getStep1Desc() { return this.step1Desc; } public Integer getStep1state() { return this.step1state; } public Integer getStep2state() { return this.step2state; } public Integer getStep3state() { return this.step3state; } public Integer getStep4state() { return this.step4state; } public String getStep5PathDesc() { return this.step5PathDesc; } public String getStep5desc() { return this.step5desc; } public Integer getStep5state() { return this.step5state; } public Integer getUploadState() { return this.uploadState; } public boolean getUseable() { return this.useable; } public String getVersion() { return this.version; } public boolean isControllerComplete() { return (this.completeState & 1) > 0; } public boolean isDelete() { return this.isDelete; } public boolean isUseable() { return this.useable; } public void setActionPath(String str) { this.actionPath = str; } public void setCompleteState(int i) { this.completeState = i; } public void setCompressImagePath(String str) { this.compressImagePath = str; } public void setControllerComplete() { this.completeState |= 1; } 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 setDelete(boolean z) { this.isDelete = z; } public void setDescription(String str) { this.description = str; } public void setFilePath(String str) { this.filePath = str; } public void setId(Long l) { this.id = l; } public void setIsDelete(boolean z) { this.isDelete = z; } public void setIsModify(Boolean bool) { this.isModify = bool; } public void setLastUploadTime(long j) { this.lastUploadTime = j; } public void setModelCreatedId(String str) { this.modelCreatedId = str; } public void setModelId(Integer num) { this.modelId = num; } public void setModelName(String str) { this.modelName = str; } public void setModify(Boolean bool) { this.isModify = bool; } public void setModifyTime(long j) { this.modifyTime = j; } public void setMyStep(Integer num) { this.mystep = num; } public void setMystep(Integer num) { this.mystep = num; } public void setStep1Desc(String str) { this.step1Desc = str; } public void setStep1state(Integer num) { this.step1state = num; } public void setStep2state(Integer num) { this.step2state = num; } public void setStep3state(Integer num) { this.step3state = num; } public void setStep4state(Integer num) { this.step4state = num; } public void setStep5PathDesc(String str) { this.step5PathDesc = str; } public void setStep5desc(String str) { this.step5desc = str; } public void setStep5state(Integer num) { this.step5state = num; } public void setUploadState(Integer num) { this.uploadState = num; } public void setUseable(boolean z) { this.useable = z; } public void setVersion(String str) { this.version = str; } @Override // java.lang.Comparable public int compareTo(DiyDBModel diyDBModel) { if (TextUtils.isEmpty(diyDBModel.getCustomModelId()) || TextUtils.isEmpty(this.customModelId)) { return 1; } return Long.parseLong(this.customModelId) > Long.parseLong(diyDBModel.getCustomModelId()) ? -1 : 0; } public DiyDBModel() { this.isModify = false; this.modelId = 0; this.useable = true; this.isDelete = false; this.uploadState = 0; this.step1state = 0; this.step2state = 0; this.step3state = 0; this.step4state = 0; this.step5state = 0; this.mystep = 0; this.actionPath = ""; } }