Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,145 @@
package com.ubt.jimu.transport3.bean.response;
import com.ubt.jimu.base.db.diy.DiyDBModel;
import com.ubt.jimu.utils.JsonHelper;
/* loaded from: classes2.dex */
public class DiyModelBean {
private String buildState;
private String compressImagePath;
private long customModelCreatetime;
private String customModelId;
private String description;
private int isDelete;
private long lastUploadTime;
private int modelCreatedId;
private int modelId;
private String modelName;
private BuildState state;
public static class BuildState {
private int action;
private int controller;
private int desc;
private int program;
private int servo;
private int show;
public BuildState() {
}
public int getAction() {
return this.action;
}
public int getController() {
return this.controller;
}
public int getDesc() {
return this.desc;
}
public int getProgram() {
return this.program;
}
public int getServo() {
return this.servo;
}
public int getShow() {
return this.show;
}
public BuildState(int i, int i2, int i3, int i4, int i5, int i6) {
this.show = i;
this.action = i2;
this.program = i3;
this.servo = i4;
this.desc = i5;
this.controller = i6;
}
}
public static DiyDBModel toDiyModel(DiyModelBean diyModelBean) {
DiyDBModel diyDBModel = new DiyDBModel();
diyDBModel.setModelCreatedId(String.valueOf(diyModelBean.getModelCreatedId()));
diyDBModel.setModelId(Integer.valueOf(diyModelBean.getModelId()));
diyDBModel.setCustomModelId(diyModelBean.getCustomModelId());
diyDBModel.setModelName(diyModelBean.getModelName());
diyDBModel.setDescription(diyModelBean.getDescription());
diyDBModel.setCompressImagePath(diyModelBean.getCompressImagePath());
diyDBModel.setCustomModelCreatetime(diyModelBean.getCustomModelCreatetime());
diyDBModel.setLastUploadTime(diyModelBean.getLastUploadTime());
diyDBModel.setModifyTime(diyModelBean.getLastUploadTime());
diyDBModel.setIsDelete(diyModelBean.getIsDelete() == 1);
if (diyModelBean.getState() != null) {
diyDBModel.setStep1state(Integer.valueOf(diyModelBean.getState().getDesc()));
diyDBModel.setStep2state(Integer.valueOf(diyModelBean.getState().getServo()));
diyDBModel.setStep3state(Integer.valueOf(diyModelBean.getState().getAction()));
diyDBModel.setStep4state(Integer.valueOf(diyModelBean.getState().getProgram()));
diyDBModel.setStep5state(Integer.valueOf(diyModelBean.getState().getShow()));
if (diyModelBean.getState().getController() == 1) {
diyDBModel.setControllerComplete();
}
}
return diyDBModel;
}
public String getBuildState() {
return this.buildState;
}
public String getCompressImagePath() {
return this.compressImagePath;
}
public long getCustomModelCreatetime() {
return this.customModelCreatetime;
}
public String getCustomModelId() {
return this.customModelId;
}
public String getDescription() {
return this.description;
}
public int getIsDelete() {
return this.isDelete;
}
public long getLastUploadTime() {
return this.lastUploadTime;
}
public int getModelCreatedId() {
return this.modelCreatedId;
}
public int getModelId() {
return this.modelId;
}
public String getModelName() {
return this.modelName;
}
public BuildState getState() {
if (this.state == null) {
this.state = (BuildState) JsonHelper.b(this.buildState, BuildState.class);
}
return this.state;
}
public static String getBuildState(DiyDBModel diyDBModel) {
if (diyDBModel == null) {
return "";
}
int intValue = diyDBModel.getStep1state().intValue();
int intValue2 = diyDBModel.getStep2state().intValue();
return JsonHelper.a(new BuildState(diyDBModel.getStep5state().intValue(), diyDBModel.getStep3state().intValue(), diyDBModel.getStep4state().intValue(), intValue2, intValue, diyDBModel.isControllerComplete() ? 1 : 0));
}
}

View File

@@ -0,0 +1,45 @@
package com.ubt.jimu.transport3.bean.response;
/* loaded from: classes2.dex */
public class SaveOrUpdateModelBean {
private String compressImagePath;
private String customModelId;
private String description;
private long lastUploadTime;
private long modelCreatedId;
private int modelId;
private String modelName;
private int userId;
public String getCompressImagePath() {
return this.compressImagePath;
}
public String getCustomModelId() {
return this.customModelId;
}
public String getDescription() {
return this.description;
}
public long getLastUploadTime() {
return this.lastUploadTime;
}
public long getModelCreatedId() {
return this.modelCreatedId;
}
public int getModelId() {
return this.modelId;
}
public String getModelName() {
return this.modelName;
}
public int getUserId() {
return this.userId;
}
}

View File

@@ -0,0 +1,78 @@
package com.ubt.jimu.transport3.bean.response;
import com.ubt.jimu.transport.model.TransportFile;
import com.ubt.jimu.transport3.dao.TransportFileDbHandler2;
/* loaded from: classes2.dex */
public class TransportFileBean {
private String customModelId;
private String fileName;
private String fileType;
private String fileUrl;
private int id;
private int isDeleted;
private boolean isOutTime;
private long lastUploadTime;
private long modelId;
private int modelType;
public static TransportFile toTransportFile(String str, TransportFileBean transportFileBean) {
TransportFile transportFile = new TransportFile();
transportFile.setUserId(str);
transportFile.setModelId(transportFileBean.getModelId());
transportFile.setCustomModelId(transportFileBean.getCustomModelId());
transportFile.setModelType(String.valueOf(transportFileBean.getModelType()));
transportFile.setFileType(transportFileBean.getFileType());
transportFile.setFileName(transportFileBean.getFileName());
transportFile.setFileUrl(transportFileBean.getFileUrl());
transportFile.setId(transportFileBean.getId() == 0 ? 1L : transportFileBean.getId());
transportFile.setLastUploadTime(transportFileBean.getLastUploadTime());
transportFile.setIsDeleted(transportFileBean.isDeleted == 1);
transportFile.setFilePath(TransportFileDbHandler2.getModelFilePath(transportFile));
return transportFile;
}
public String getCustomModelId() {
return this.customModelId;
}
public String getFileName() {
return this.fileName;
}
public String getFileType() {
return this.fileType;
}
public String getFileUrl() {
return this.fileUrl;
}
public int getId() {
return this.id;
}
public int getIsDeleted() {
return this.isDeleted;
}
public long getLastUploadTime() {
return this.lastUploadTime;
}
public long getModelId() {
return this.modelId;
}
public int getModelType() {
return this.modelType;
}
public boolean isOutTime() {
return this.isOutTime;
}
public void setOutTime(boolean z) {
this.isOutTime = z;
}
}