Initial commit
This commit is contained in:
22
sources/com/ubt/jimu/transport3/bean/PageResultBean.java
Normal file
22
sources/com/ubt/jimu/transport3/bean/PageResultBean.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package com.ubt.jimu.transport3.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class PageResultBean<T> {
|
||||
private int count;
|
||||
private List<T> data;
|
||||
private int pages;
|
||||
|
||||
public int getCount() {
|
||||
return this.count;
|
||||
}
|
||||
|
||||
public List<T> getData() {
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public int getPages() {
|
||||
return this.pages;
|
||||
}
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
package com.ubt.jimu.transport3.bean.request;
|
||||
|
||||
import com.ubt.jimu.blockly.bean.JimuSoundParameter;
|
||||
import com.ubt.jimu.transport.request.BaseParam;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class UploadAudioBean extends BaseParam {
|
||||
private List<JimuSoundParameter> addAudios;
|
||||
private List<JimuSoundParameter> deleteAudios;
|
||||
private String token;
|
||||
private List<JimuSoundParameter> updateAudios;
|
||||
private String userId;
|
||||
|
||||
public UploadAudioBean(String str, String str2) {
|
||||
this.token = str;
|
||||
this.userId = str2;
|
||||
}
|
||||
|
||||
public void setAddAudios(List<JimuSoundParameter> list) {
|
||||
this.addAudios = list;
|
||||
}
|
||||
|
||||
public void setDeleteAudios(List<JimuSoundParameter> list) {
|
||||
this.deleteAudios = list;
|
||||
}
|
||||
|
||||
public void setUpdateAudios(List<JimuSoundParameter> list) {
|
||||
this.updateAudios = list;
|
||||
}
|
||||
}
|
@@ -0,0 +1,109 @@
|
||||
package com.ubt.jimu.transport3.bean.request;
|
||||
|
||||
import com.ubt.jimu.transport.request.BaseParam;
|
||||
import com.ubt.jimu.transport3.model.DiyModelAction;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class UploadModelActionBean extends BaseParam {
|
||||
private String customModelId;
|
||||
private int modelId;
|
||||
private String token;
|
||||
private List<UploadModelAction> addActions = new ArrayList();
|
||||
private List<UploadModelAction> updateActions = new ArrayList();
|
||||
private List<UploadModelAction> deleteActions = new ArrayList();
|
||||
|
||||
public static class UploadModelAction {
|
||||
private String actionId;
|
||||
private String customModelId;
|
||||
private String fileName;
|
||||
private String fileUrl;
|
||||
private long id;
|
||||
private int isDeleted;
|
||||
private long lastUploadTime;
|
||||
private int modelId;
|
||||
private int modelType;
|
||||
|
||||
public String getActionId() {
|
||||
return this.actionId;
|
||||
}
|
||||
|
||||
public String getCustomModelId() {
|
||||
return this.customModelId;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return this.fileName;
|
||||
}
|
||||
|
||||
public String getFileUrl() {
|
||||
return this.fileUrl;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public int getIsDeleted() {
|
||||
return this.isDeleted;
|
||||
}
|
||||
|
||||
public long getLastUploadTime() {
|
||||
return this.lastUploadTime;
|
||||
}
|
||||
|
||||
public int getModelId() {
|
||||
return this.modelId;
|
||||
}
|
||||
|
||||
public int getModelType() {
|
||||
return this.modelType;
|
||||
}
|
||||
|
||||
public void setFileUrl(String str) {
|
||||
this.fileUrl = str;
|
||||
}
|
||||
}
|
||||
|
||||
public UploadModelActionBean(String str, int i, String str2) {
|
||||
this.token = str;
|
||||
this.modelId = i;
|
||||
this.customModelId = str2;
|
||||
}
|
||||
|
||||
public static UploadModelAction fromDiyModelAction(DiyModelAction diyModelAction) {
|
||||
UploadModelAction uploadModelAction = new UploadModelAction();
|
||||
uploadModelAction.actionId = String.valueOf(diyModelAction.getId());
|
||||
uploadModelAction.customModelId = diyModelAction.getCustomModelId();
|
||||
uploadModelAction.fileName = diyModelAction.getFileName();
|
||||
uploadModelAction.fileUrl = diyModelAction.getFileUrl();
|
||||
uploadModelAction.id = diyModelAction.getId();
|
||||
uploadModelAction.isDeleted = diyModelAction.getIsDeleted();
|
||||
uploadModelAction.lastUploadTime = diyModelAction.getLastUploadTime();
|
||||
uploadModelAction.modelId = diyModelAction.getModelId();
|
||||
uploadModelAction.modelType = diyModelAction.getModelType();
|
||||
return uploadModelAction;
|
||||
}
|
||||
|
||||
public void setAddActions(List<UploadModelAction> list) {
|
||||
if (list == null || list.size() <= 0) {
|
||||
return;
|
||||
}
|
||||
this.addActions = list;
|
||||
}
|
||||
|
||||
public void setDeleteActions(List<UploadModelAction> list) {
|
||||
if (list == null || list.size() <= 0) {
|
||||
return;
|
||||
}
|
||||
this.deleteActions = list;
|
||||
}
|
||||
|
||||
public void setUpdateActions(List<UploadModelAction> list) {
|
||||
if (list == null || list.size() <= 0) {
|
||||
return;
|
||||
}
|
||||
this.updateActions = list;
|
||||
}
|
||||
}
|
@@ -0,0 +1,170 @@
|
||||
package com.ubt.jimu.transport3.bean.request;
|
||||
|
||||
import com.ubt.jimu.blockly.bean.BlocklyProject;
|
||||
import com.ubt.jimu.blockly.bean.JimuMotion;
|
||||
import com.ubt.jimu.transport.model.TransportFile;
|
||||
import com.ubt.jimu.transport.request.BaseParam;
|
||||
import com.ubt.jimu.transport3.model.DiyModelAction;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class UploadModelBean extends BaseParam {
|
||||
private List<DiyModelAction> addActions;
|
||||
private List<JimuMotion> addPostures;
|
||||
private List<BlocklyProject> addPrograms;
|
||||
private String compressImagePath;
|
||||
private long customModelCreatetime;
|
||||
private String customModelId;
|
||||
private List<DiyModelAction> deleteActions;
|
||||
private List<JimuMotion> deletePostures;
|
||||
private List<BlocklyProject> deletePrograms;
|
||||
private String description;
|
||||
private List<TransportFile> files;
|
||||
private int isDelete;
|
||||
private long lastUploadTime;
|
||||
private int modelCreatedId;
|
||||
private int modelId;
|
||||
private String modelName;
|
||||
private String token;
|
||||
private List<DiyModelAction> updateActions;
|
||||
private List<JimuMotion> updatePostures;
|
||||
private List<BlocklyProject> updatePrograms;
|
||||
|
||||
public static class Builder {
|
||||
private List<DiyModelAction> addActions;
|
||||
private List<JimuMotion> addPostures;
|
||||
private List<BlocklyProject> addPrograms;
|
||||
private String compressImagePath;
|
||||
private long customModelCreatetime;
|
||||
private String customModelId;
|
||||
private List<DiyModelAction> deleteActions;
|
||||
private List<JimuMotion> deletePostures;
|
||||
private List<BlocklyProject> deletePrograms;
|
||||
private String description;
|
||||
private List<TransportFile> files;
|
||||
private int isDelete = 0;
|
||||
private long lastUploadTime;
|
||||
private int modelCreatedId;
|
||||
private int modelId;
|
||||
private String modelName;
|
||||
private String token;
|
||||
private List<DiyModelAction> updateActions;
|
||||
private List<JimuMotion> updatePostures;
|
||||
private List<BlocklyProject> updatePrograms;
|
||||
|
||||
public Builder(int i, String str, String str2, String str3) {
|
||||
this.modelCreatedId = i;
|
||||
this.customModelId = str;
|
||||
this.compressImagePath = str2;
|
||||
this.modelName = str3;
|
||||
}
|
||||
|
||||
public Builder addActions(List<DiyModelAction> list) {
|
||||
this.addActions = list;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder addPostures(List<JimuMotion> list) {
|
||||
this.addPostures = list;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder addPrograms(List<BlocklyProject> list) {
|
||||
this.addPrograms = list;
|
||||
return this;
|
||||
}
|
||||
|
||||
public UploadModelBean build() {
|
||||
UploadModelBean uploadModelBean = new UploadModelBean(this.modelCreatedId, this.customModelId, this.compressImagePath, this.modelName);
|
||||
uploadModelBean.token = this.token;
|
||||
uploadModelBean.modelId = this.modelId;
|
||||
uploadModelBean.description = this.description;
|
||||
uploadModelBean.isDelete = this.isDelete;
|
||||
uploadModelBean.lastUploadTime = this.lastUploadTime;
|
||||
uploadModelBean.customModelCreatetime = this.customModelCreatetime;
|
||||
uploadModelBean.files = this.files;
|
||||
uploadModelBean.addActions = this.addActions;
|
||||
uploadModelBean.addPostures = this.addPostures;
|
||||
uploadModelBean.addPrograms = this.addPrograms;
|
||||
uploadModelBean.updateActions = this.updateActions;
|
||||
uploadModelBean.updatePostures = this.updatePostures;
|
||||
uploadModelBean.updatePrograms = this.updatePrograms;
|
||||
uploadModelBean.deleteActions = this.deleteActions;
|
||||
uploadModelBean.deletePostures = this.deletePostures;
|
||||
uploadModelBean.deletePrograms = this.deletePrograms;
|
||||
return uploadModelBean;
|
||||
}
|
||||
|
||||
public Builder customModelCreatetime(long j) {
|
||||
this.customModelCreatetime = j;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder deleteActions(List<DiyModelAction> list) {
|
||||
this.deleteActions = list;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder deletePostures(List<JimuMotion> list) {
|
||||
this.deletePostures = list;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder deletePrograms(List<BlocklyProject> list) {
|
||||
this.deletePrograms = list;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder description(String str) {
|
||||
this.description = str;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder files(List<TransportFile> list) {
|
||||
this.files = list;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder isDelete(int i) {
|
||||
this.isDelete = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder lastUploadTime(long j) {
|
||||
this.lastUploadTime = j;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder modelId(int i) {
|
||||
this.modelId = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder token(String str) {
|
||||
this.token = str;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder updateActions(List<DiyModelAction> list) {
|
||||
this.updateActions = list;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder updatePostures(List<JimuMotion> list) {
|
||||
this.updatePostures = list;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder updatePrograms(List<BlocklyProject> list) {
|
||||
this.updatePrograms = list;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
private UploadModelBean(int i, String str, String str2, String str3) {
|
||||
this.modelCreatedId = i;
|
||||
this.customModelId = str;
|
||||
this.compressImagePath = str2;
|
||||
this.modelName = str3;
|
||||
}
|
||||
}
|
@@ -0,0 +1,104 @@
|
||||
package com.ubt.jimu.transport3.bean.request;
|
||||
|
||||
import com.ubt.jimu.transport.model.TransportFile;
|
||||
import com.ubt.jimu.transport.request.BaseParam;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class UploadModelFileBean extends BaseParam {
|
||||
private List<TransportFileBean> addFiles;
|
||||
private String customModelId;
|
||||
private List<TransportFileBean> deleteFiles;
|
||||
private int modelId;
|
||||
private String token;
|
||||
private List<TransportFileBean> updateFiles;
|
||||
private String userId;
|
||||
|
||||
public static class TransportFileBean {
|
||||
private String customModelId;
|
||||
private String fileName;
|
||||
private String fileType;
|
||||
private String fileUrl;
|
||||
private long id;
|
||||
private int isDeleted;
|
||||
private long lastUploadTime;
|
||||
private long modelId;
|
||||
private int modelType;
|
||||
private String userId;
|
||||
}
|
||||
|
||||
public UploadModelFileBean(String str, String str2, int i, String str3) {
|
||||
this.userId = str;
|
||||
this.token = str2;
|
||||
this.modelId = i;
|
||||
this.customModelId = str3;
|
||||
}
|
||||
|
||||
private TransportFileBean fromTransportFile(TransportFile transportFile) {
|
||||
TransportFileBean transportFileBean = new TransportFileBean();
|
||||
transportFileBean.customModelId = transportFile.getCustomModelId();
|
||||
transportFileBean.fileName = transportFile.getFileName();
|
||||
transportFileBean.fileType = transportFile.getFileType();
|
||||
transportFileBean.fileUrl = transportFile.getFileUrl();
|
||||
transportFileBean.id = transportFile.getId();
|
||||
transportFileBean.isDeleted = transportFile.getIsDeleted() ? 1 : 0;
|
||||
transportFileBean.lastUploadTime = transportFile.getLastUploadTime();
|
||||
transportFileBean.modelId = transportFile.getModelId();
|
||||
transportFileBean.modelType = Integer.parseInt(transportFile.getModelType());
|
||||
transportFileBean.userId = transportFile.getUserId();
|
||||
return transportFileBean;
|
||||
}
|
||||
|
||||
public List<TransportFileBean> getAddFiles() {
|
||||
return this.addFiles;
|
||||
}
|
||||
|
||||
public List<TransportFileBean> getDeleteFiles() {
|
||||
return this.deleteFiles;
|
||||
}
|
||||
|
||||
public List<TransportFileBean> getUpdateFiles() {
|
||||
return this.updateFiles;
|
||||
}
|
||||
|
||||
public void setAddFiles(List<TransportFile> list) {
|
||||
if (list == null || list.size() == 0) {
|
||||
return;
|
||||
}
|
||||
if (this.addFiles == null) {
|
||||
this.addFiles = new ArrayList();
|
||||
}
|
||||
Iterator<TransportFile> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
this.addFiles.add(fromTransportFile(it.next()));
|
||||
}
|
||||
}
|
||||
|
||||
public void setDeleteFiles(List<TransportFile> list) {
|
||||
if (list == null || list.size() == 0) {
|
||||
return;
|
||||
}
|
||||
if (this.deleteFiles == null) {
|
||||
this.deleteFiles = new ArrayList();
|
||||
}
|
||||
Iterator<TransportFile> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
this.deleteFiles.add(fromTransportFile(it.next()));
|
||||
}
|
||||
}
|
||||
|
||||
public void setUpdateFiles(List<TransportFile> list) {
|
||||
if (list == null || list.size() == 0) {
|
||||
return;
|
||||
}
|
||||
if (this.updateFiles == null) {
|
||||
this.updateFiles = new ArrayList();
|
||||
}
|
||||
Iterator<TransportFile> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
this.updateFiles.add(fromTransportFile(it.next()));
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
package com.ubt.jimu.transport3.bean.request;
|
||||
|
||||
import com.ubt.jimu.blockly.bean.JimuMotionParameter;
|
||||
import com.ubt.jimu.transport.request.BaseParam;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class UploadModelMotionBean extends BaseParam {
|
||||
private List<JimuMotionParameter> addPostures;
|
||||
private String customModelId;
|
||||
private List<JimuMotionParameter> deletePostures;
|
||||
private String modelId;
|
||||
private String token;
|
||||
private List<JimuMotionParameter> updatePostures;
|
||||
|
||||
public UploadModelMotionBean(String str, String str2, String str3) {
|
||||
this.token = str;
|
||||
this.modelId = str2;
|
||||
this.customModelId = str3;
|
||||
}
|
||||
|
||||
public void setAddPostures(List<JimuMotionParameter> list) {
|
||||
this.addPostures = list;
|
||||
}
|
||||
|
||||
public void setDeletePostures(List<JimuMotionParameter> list) {
|
||||
this.deletePostures = list;
|
||||
}
|
||||
|
||||
public void setUpdatePostures(List<JimuMotionParameter> list) {
|
||||
this.updatePostures = list;
|
||||
}
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
package com.ubt.jimu.transport3.bean.request;
|
||||
|
||||
import com.ubt.jimu.blockly.bean.BlocklyProjectParameter;
|
||||
import com.ubt.jimu.transport.request.BaseParam;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class UploadModelProgramBean extends BaseParam {
|
||||
private List<BlocklyProjectParameter> addPrograms;
|
||||
private String customModelId;
|
||||
private List<BlocklyProjectParameter> deletePrograms;
|
||||
private String modelId;
|
||||
private String token;
|
||||
private List<BlocklyProjectParameter> updatePrograms;
|
||||
|
||||
public UploadModelProgramBean(String str, String str2, String str3) {
|
||||
this.token = str;
|
||||
this.modelId = str2;
|
||||
this.customModelId = str3;
|
||||
}
|
||||
|
||||
public void setAddPrograms(List<BlocklyProjectParameter> list) {
|
||||
this.addPrograms = list;
|
||||
}
|
||||
|
||||
public void setDeletePrograms(List<BlocklyProjectParameter> list) {
|
||||
this.deletePrograms = list;
|
||||
}
|
||||
|
||||
public void setUpdatePrograms(List<BlocklyProjectParameter> list) {
|
||||
this.updatePrograms = list;
|
||||
}
|
||||
}
|
145
sources/com/ubt/jimu/transport3/bean/response/DiyModelBean.java
Normal file
145
sources/com/ubt/jimu/transport3/bean/response/DiyModelBean.java
Normal 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));
|
||||
}
|
||||
}
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user