87 lines
2.6 KiB
Java
87 lines
2.6 KiB
Java
package com.ubt.jimu.diy.model;
|
|
|
|
import com.ubt.jimu.diy.DiyRobotFile;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class DiyModelFile {
|
|
public static final String TYPE_BG = "bg";
|
|
public static final String TYPE_CONN = "conn";
|
|
public static final String TYPE_DESC = "desc";
|
|
private long createDate;
|
|
private String fileName;
|
|
private String fileType;
|
|
private String fileUrl;
|
|
private long id;
|
|
private int isDeleted;
|
|
private int modelId;
|
|
private String remark;
|
|
private long updateDate;
|
|
|
|
public static List<DiyRobotFile> getModelFiles(String str, List<DiyModelFile> list) {
|
|
ArrayList arrayList = new ArrayList();
|
|
if (list != null && list.size() != 0) {
|
|
for (DiyModelFile diyModelFile : list) {
|
|
DiyRobotFile diyRobotFile = new DiyRobotFile();
|
|
boolean equals = "conn".equals(diyModelFile.getFileType());
|
|
int i = DiyRobotFile.TYPE_MODEL;
|
|
if (equals) {
|
|
i = DiyRobotFile.TYPE_SERVO;
|
|
} else if (!"desc".equals(diyModelFile.getFileType()) && "bg".equals(diyModelFile.getFileType())) {
|
|
i = DiyRobotFile.TYPE_LOGO;
|
|
}
|
|
diyRobotFile.setFileType(i);
|
|
diyRobotFile.setFileUrl(diyModelFile.getFileUrl());
|
|
diyRobotFile.setFileName(diyModelFile.getFileName());
|
|
diyRobotFile.setDisplayName(diyModelFile.getFileName());
|
|
diyRobotFile.setContent("");
|
|
diyRobotFile.setRemark(diyModelFile.getRemark());
|
|
diyRobotFile.setServerModelId(diyModelFile.getModelId());
|
|
diyRobotFile.setCustomModelId(str);
|
|
diyRobotFile.setRemark(diyModelFile.getRemark());
|
|
diyRobotFile.setCreateDate(diyModelFile.getCreateDate());
|
|
diyRobotFile.setUpdateDate(diyModelFile.getUpdateDate());
|
|
arrayList.add(diyRobotFile);
|
|
}
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
public long getCreateDate() {
|
|
return this.createDate;
|
|
}
|
|
|
|
public String getFileName() {
|
|
return this.fileName;
|
|
}
|
|
|
|
public String getFileType() {
|
|
return this.fileType;
|
|
}
|
|
|
|
public String getFileUrl() {
|
|
return this.fileUrl;
|
|
}
|
|
|
|
public long getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public int getIsDeleted() {
|
|
return this.isDeleted;
|
|
}
|
|
|
|
public int getModelId() {
|
|
return this.modelId;
|
|
}
|
|
|
|
public String getRemark() {
|
|
return this.remark;
|
|
}
|
|
|
|
public long getUpdateDate() {
|
|
return this.updateDate;
|
|
}
|
|
}
|