- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
102 lines
3.2 KiB
Java
102 lines
3.2 KiB
Java
package com.vungle.ads.internal.model;
|
|
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class AdAsset {
|
|
private final String adIdentifier;
|
|
private long fileSize;
|
|
private final FileType fileType;
|
|
private final boolean isRequired;
|
|
private final String localPath;
|
|
private final String serverPath;
|
|
private Status status;
|
|
|
|
public enum FileType {
|
|
ZIP,
|
|
ASSET
|
|
}
|
|
|
|
public enum Status {
|
|
NEW,
|
|
DOWNLOAD_RUNNING,
|
|
DOWNLOAD_FAILED,
|
|
DOWNLOAD_SUCCESS,
|
|
PROCESSED
|
|
}
|
|
|
|
public final String getAdIdentifier() {
|
|
return this.adIdentifier;
|
|
}
|
|
|
|
public final long getFileSize() {
|
|
return this.fileSize;
|
|
}
|
|
|
|
public final FileType getFileType() {
|
|
return this.fileType;
|
|
}
|
|
|
|
public final String getLocalPath() {
|
|
return this.localPath;
|
|
}
|
|
|
|
public final String getServerPath() {
|
|
return this.serverPath;
|
|
}
|
|
|
|
public final Status getStatus() {
|
|
return this.status;
|
|
}
|
|
|
|
public final boolean isRequired() {
|
|
return this.isRequired;
|
|
}
|
|
|
|
public final void setFileSize(long j) {
|
|
this.fileSize = j;
|
|
}
|
|
|
|
public final void setStatus(Status status) {
|
|
Intrinsics.checkNotNullParameter(status, "<set-?>");
|
|
this.status = status;
|
|
}
|
|
|
|
public AdAsset(String adIdentifier, String serverPath, String localPath, FileType fileType, boolean z) {
|
|
Intrinsics.checkNotNullParameter(adIdentifier, "adIdentifier");
|
|
Intrinsics.checkNotNullParameter(serverPath, "serverPath");
|
|
Intrinsics.checkNotNullParameter(localPath, "localPath");
|
|
Intrinsics.checkNotNullParameter(fileType, "fileType");
|
|
this.adIdentifier = adIdentifier;
|
|
this.serverPath = serverPath;
|
|
this.localPath = localPath;
|
|
this.fileType = fileType;
|
|
this.isRequired = z;
|
|
this.status = Status.NEW;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || !Intrinsics.areEqual(AdAsset.class, obj.getClass())) {
|
|
return false;
|
|
}
|
|
AdAsset adAsset = (AdAsset) obj;
|
|
if (this.status == adAsset.status && this.fileType == adAsset.fileType && this.fileSize == adAsset.fileSize && this.isRequired == adAsset.isRequired && Intrinsics.areEqual(this.adIdentifier, adAsset.adIdentifier) && Intrinsics.areEqual(this.serverPath, adAsset.serverPath)) {
|
|
return Intrinsics.areEqual(this.localPath, adAsset.localPath);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int hashCode = ((((((((this.adIdentifier.hashCode() * 31) + this.serverPath.hashCode()) * 31) + this.localPath.hashCode()) * 31) + this.status.hashCode()) * 31) + this.fileType.hashCode()) * 31;
|
|
long j = this.fileSize;
|
|
return ((hashCode + ((int) (j ^ (j >>> 32)))) * 31) + Boolean.hashCode(this.isRequired);
|
|
}
|
|
|
|
public String toString() {
|
|
return "AdAsset{, adIdentifier='" + this.adIdentifier + "', serverPath='" + this.serverPath + "', localPath='" + this.localPath + "', status=" + this.status + ", fileType=" + this.fileType + ", fileSize=" + this.fileSize + ", isRequired=" + this.isRequired + '}';
|
|
}
|
|
}
|