jimu-decompiled/sources/com/ubt/jimu/base/entities/FirmwareVersion.java
2025-05-13 19:24:51 +02:00

200 lines
5.2 KiB
Java

package com.ubt.jimu.base.entities;
import android.content.Context;
import com.ubt.jimu.unity.ModelType;
import com.ubt.jimu.utils.ExternalOverFroyoUtils;
import java.io.File;
/* loaded from: classes.dex */
public class FirmwareVersion {
public static final int VALUE_FORCE_UPDATE = 1;
public static final int VALUE_NOT_FORCE_UPDATE = 0;
private int isForced;
private int serviceVersionCode;
private long versionActvieTime;
private String versionCRCCode;
private String versionChannel;
private String[] versionContent;
private String versionCurrentAndroid;
private String versionCurrentApp;
private String versionCurrentIos;
private String versionDescription;
private int versionId;
private String versionIntroduction;
private int versionIosType;
private String versionName;
private String versionPath;
private Long versionType;
private long versionUpdateTime;
public FirmwareVersion(Long l, String str, String str2, int i, int i2, int i3, long j, long j2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, int i4) {
this.isForced = 0;
this.versionType = l;
this.versionName = str;
this.versionPath = str2;
this.serviceVersionCode = i;
this.versionId = i2;
this.versionIosType = i3;
this.versionActvieTime = j;
this.versionUpdateTime = j2;
this.versionDescription = str3;
this.versionChannel = str4;
this.versionIntroduction = str5;
this.versionCurrentApp = str6;
this.versionCurrentIos = str7;
this.versionCurrentAndroid = str8;
this.versionCRCCode = str9;
this.isForced = i4;
}
public static String getPath(Context context, FirmwareVersion firmwareVersion) {
int indexOf = firmwareVersion.versionPath.indexOf("?");
if (indexOf < 0) {
indexOf = firmwareVersion.versionPath.length();
}
String str = firmwareVersion.versionPath;
String substring = str.substring(str.lastIndexOf("/") + 1, indexOf);
return (ExternalOverFroyoUtils.a(context, (ModelType) null) + File.separator + "firmware" + File.separator) + firmwareVersion.getVersionType() + File.separator + substring;
}
public boolean IsForced() {
return this.isForced == 1;
}
public int getIsForced() {
return this.isForced;
}
public int getServiceVersionCode() {
return this.serviceVersionCode;
}
public long getVersionActvieTime() {
return this.versionActvieTime;
}
public String getVersionCRCCode() {
return this.versionCRCCode;
}
public String getVersionChannel() {
return this.versionChannel;
}
public String[] getVersionContent() {
return this.versionContent;
}
public String getVersionCurrentAndroid() {
return this.versionCurrentAndroid;
}
public String getVersionCurrentApp() {
return this.versionCurrentApp;
}
public String getVersionCurrentIos() {
return this.versionCurrentIos;
}
public String getVersionDescription() {
return this.versionDescription;
}
public int getVersionId() {
return this.versionId;
}
public String getVersionIntroduction() {
return this.versionIntroduction;
}
public int getVersionIosType() {
return this.versionIosType;
}
public String getVersionName() {
return this.versionName;
}
public String getVersionPath() {
return this.versionPath;
}
public Long getVersionType() {
return this.versionType;
}
public long getVersionUpdateTime() {
return this.versionUpdateTime;
}
public void setIsForced(int i) {
this.isForced = i;
}
public void setServiceVersionCode(int i) {
this.serviceVersionCode = i;
}
public void setVersionActvieTime(long j) {
this.versionActvieTime = j;
}
public void setVersionCRCCode(String str) {
this.versionCRCCode = str;
}
public void setVersionChannel(String str) {
this.versionChannel = str;
}
public void setVersionCurrentAndroid(String str) {
this.versionCurrentAndroid = str;
}
public void setVersionCurrentApp(String str) {
this.versionCurrentApp = str;
}
public void setVersionCurrentIos(String str) {
this.versionCurrentIos = str;
}
public void setVersionDescription(String str) {
this.versionDescription = str;
}
public void setVersionId(int i) {
this.versionId = i;
}
public void setVersionIntroduction(String str) {
this.versionIntroduction = str;
}
public void setVersionIosType(int i) {
this.versionIosType = i;
}
public void setVersionName(String str) {
this.versionName = str;
}
public void setVersionPath(String str) {
this.versionPath = str;
}
public void setVersionType(Long l) {
this.versionType = l;
}
public void setVersionUpdateTime(long j) {
this.versionUpdateTime = j;
}
public FirmwareVersion() {
this.isForced = 0;
}
}