Repository URL to install this package:
|
Version:
0.0.6 ▾
|
react-native-motif-sdk
/
android
/
src
/
main
/
java
/
com
/
vipera
/
de
/
rn
/
assetmanager
/
RNAssetBundleInfo.java
|
|---|
package com.vipera.de.rn.assetmanager;
import com.vipera.de.utility.Version;
public class RNAssetBundleInfo {
public enum Type {
EMBEDDED("EMBEDDED"),
DOWNLOADED("DOWNLOADED");
private final String value;
Type(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}
private Type type;
private Version version;
private String bundleName;
private long deployTimestamp;
private String deployFolder;
public RNAssetBundleInfo(Type type, Version version, String bundleName,String deployFolder, long deployTimestamp) {
this.type = type;
this.version = version;
this.bundleName = bundleName;
this.deployFolder = deployFolder;
this.deployTimestamp = deployTimestamp;
}
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
public Version getVersion() {
return version;
}
public void setVersion(Version version) {
this.version = version;
}
public String getBundleName() {
return bundleName;
}
public void setBundleName(String bundleName) {
this.bundleName = bundleName;
}
public long getDeployTimestamp() {
return deployTimestamp;
}
public void setDeployTimestamp(long deployTimestamp) {
this.deployTimestamp = deployTimestamp;
}
public String getDeployFolder() {
return deployFolder;
}
public void setDeployFolder(String deployFolder) {
this.deployFolder = deployFolder;
}
public static RNAssetBundleInfo createEmbedded(Version version, String bundleName){
return new RNAssetBundleInfo(Type.EMBEDDED,version,bundleName,"assets://",-1L);
}
public static RNAssetBundleInfo createDownloaded(Version version,String bundleName,String deployFolder,long deployTimestamp){
return new RNAssetBundleInfo(Type.DOWNLOADED,version, bundleName,deployFolder,deployTimestamp);
}
@Override
public String toString() {
return "RNAssetBundleInfo{" +
"type=" + type +
", version=" + version +
", bundleName='" + bundleName + '\'' +
", deployTimestamp=" + deployTimestamp +
", deployFolder='" + deployFolder + '\'' +
'}';
}
}