package com.seewo.libmyousdk.model;

import com.google.gson.annotations.SerializedName;
import java.io.Serializable;

/* JADX INFO: loaded from: classes.dex */
public class RomUpdateInfo extends IUpdateInfo implements Serializable {
    private static final long serialVersionUID = 2044558432012810919L;
    private final String fileMd5;
    private final long fileSize;
    private final boolean isForceUpdate;
    private final boolean isPopUp;
    private final boolean isSilentDownload;
    private final String name;
    private final String updateDesc;

    @SerializedName("policyType")
    private String updateType;
    private final String versionCode;

    public RomUpdateInfo() {
        this.name = "";
        this.policyId = "";
        this.hasUpdate = false;
        this.updateDesc = "";
        this.downloadUrl = "";
        this.fileMd5 = "";
        this.fileSize = 0L;
        this.versionCode = "";
        this.isForceUpdate = false;
        this.isSilentDownload = false;
        this.isPopUp = true;
        this.updateType = "romUpdate";
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof RomUpdateInfo)) {
            return false;
        }
        RomUpdateInfo romUpdateInfo = (RomUpdateInfo) obj;
        return romUpdateInfo.getName().equals(getName()) && romUpdateInfo.getFileMd5().equals(getFileMd5());
    }

    public String getFileMd5() {
        return this.fileMd5;
    }

    public long getFileSize() {
        return this.fileSize;
    }

    public String getName() {
        return this.name;
    }

    public String getUpdateDesc() {
        return this.updateDesc;
    }

    public String getUpdateType() {
        return this.updateType;
    }

    public String getVersionCode() {
        return this.versionCode;
    }

    public boolean isForceUpdate() {
        return this.isForceUpdate;
    }

    public boolean isPopUp() {
        return this.isPopUp;
    }

    public boolean isSilentDownload() {
        return this.isSilentDownload;
    }

    public void setUpdateType(String str) {
        this.updateType = str;
    }

    public String toString() {
        return "RomUpdateInfo{name='" + this.name + "', updateDesc='" + this.updateDesc + "', fileMd5='" + this.fileMd5 + "', fileSize=" + this.fileSize + ", versionCode='" + this.versionCode + "', isForceUpdate=" + this.isForceUpdate + ", isSilentDownload=" + this.isSilentDownload + ", hasUpdate=" + this.hasUpdate + ", downloadUrl='" + this.downloadUrl + "', policyId='" + this.policyId + "', isPopUp=" + this.isPopUp + "', updateType=" + this.updateType + '}';
    }

    public RomUpdateInfo(String str, String str2, boolean z, String str3, String str4, String str5, long j2, String str6, boolean z2, boolean z3) {
        this.name = str;
        this.policyId = str2;
        this.hasUpdate = z;
        this.updateDesc = str3;
        this.downloadUrl = str4;
        this.fileMd5 = str5;
        this.fileSize = j2;
        this.versionCode = str6;
        this.isForceUpdate = z2;
        this.isSilentDownload = z3;
        this.isPopUp = true;
    }

    public RomUpdateInfo(String str, String str2, boolean z, String str3, String str4, String str5, long j2, String str6, boolean z2, boolean z3, boolean z4, String str7) {
        this.name = str;
        this.policyId = str2;
        this.hasUpdate = z;
        this.updateDesc = str3;
        this.downloadUrl = str4;
        this.fileMd5 = str5;
        this.fileSize = j2;
        this.versionCode = str6;
        this.isForceUpdate = z2;
        this.isSilentDownload = z3;
        this.isPopUp = z4;
        this.updateType = str7;
    }

    public RomUpdateInfo(String str, String str2, String str3, long j2, String str4, boolean z, boolean z2, boolean z3, String str5) {
        this.name = str;
        this.updateDesc = str2;
        this.fileMd5 = str3;
        this.fileSize = j2;
        this.versionCode = str4;
        this.isForceUpdate = z;
        this.isSilentDownload = z2;
        this.isPopUp = z3;
        this.updateType = str5;
    }
}
