package com.cvte.vman.entity;

import android.os.Parcel;
import android.os.Parcelable;
import com.cvte.vman.types.EnumFwInfoU3HUBLocation;
import com.cvte.vman.types.EnumFwInfoU3HUBSwitchLogic;
import com.cvte.vman.types.EnumFwInfoU3HUBType;

/* JADX INFO: loaded from: classes.dex */
public class EntityFwInfoU3HUB implements Parcelable {
    public static final Parcelable.Creator<EntityFwInfoU3HUB> CREATOR = new a();
    public String fwNameUDiskUp;
    public String fwOtaLocalPath;
    public String fwOtaModule;
    public String fwOtakey;
    public int fwVerType;
    public EnumFwInfoU3HUBLocation location;
    public boolean needOtaUp;
    public boolean needUDiskUp;
    public EnumFwInfoU3HUBSwitchLogic switchLogic;
    public EnumFwInfoU3HUBType typeId;
    public int upFwType;
    public String version;

    static class a implements Parcelable.Creator<EntityFwInfoU3HUB> {
        a() {
        }

        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
        public EntityFwInfoU3HUB createFromParcel(Parcel parcel) {
            return new EntityFwInfoU3HUB(parcel);
        }

        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
        public EntityFwInfoU3HUB[] newArray(int i2) {
            return new EntityFwInfoU3HUB[i2];
        }
    }

    public EntityFwInfoU3HUB(EnumFwInfoU3HUBType enumFwInfoU3HUBType, EnumFwInfoU3HUBLocation enumFwInfoU3HUBLocation, String str, int i2, int i3, boolean z, String str2, boolean z2, String str3, String str4, String str5, EnumFwInfoU3HUBSwitchLogic enumFwInfoU3HUBSwitchLogic) {
        this.typeId = enumFwInfoU3HUBType;
        this.location = enumFwInfoU3HUBLocation;
        this.version = str;
        this.upFwType = i2;
        this.fwVerType = i3;
        this.needUDiskUp = z;
        this.fwNameUDiskUp = str2;
        this.needOtaUp = z2;
        this.fwOtaLocalPath = str3;
        this.fwOtakey = str4;
        this.fwOtaModule = str5;
        this.switchLogic = enumFwInfoU3HUBSwitchLogic;
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public void readFromParcel(Parcel parcel) {
        this.typeId = EnumFwInfoU3HUBType.valueOf(parcel.readInt());
        this.location = EnumFwInfoU3HUBLocation.valueOf(parcel.readInt());
        this.version = parcel.readString();
        this.upFwType = parcel.readInt();
        this.fwVerType = parcel.readInt();
        this.needUDiskUp = parcel.readBoolean();
        this.fwNameUDiskUp = parcel.readString();
        this.needOtaUp = parcel.readBoolean();
        this.fwOtaLocalPath = parcel.readString();
        this.fwOtakey = parcel.readString();
        this.fwOtaModule = parcel.readString();
        this.switchLogic = EnumFwInfoU3HUBSwitchLogic.valueOf(parcel.readInt());
    }

    public String toString() {
        return "EntityFwInfoU3HUB{typeId=" + this.typeId + "location" + this.location + ", upFwType=" + this.upFwType + ", fwVerType=" + this.fwVerType + ", version='" + this.version + "', needUDiskUp=" + this.needUDiskUp + ", fwNameUDiskUp='" + this.fwNameUDiskUp + "', needOtaUp=" + this.needOtaUp + ", fwOtaLocalPath='" + this.fwOtaLocalPath + "', fwOtakey='" + this.fwOtakey + "'fwOtaModule=" + this.fwOtaModule + "switchLogic=" + this.switchLogic + '}';
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        parcel.writeInt(this.typeId.ordinal());
        parcel.writeInt(this.location.ordinal());
        parcel.writeString(this.version);
        parcel.writeInt(this.upFwType);
        parcel.writeInt(this.fwVerType);
        parcel.writeBoolean(this.needUDiskUp);
        parcel.writeString(this.fwNameUDiskUp);
        parcel.writeBoolean(this.needOtaUp);
        parcel.writeString(this.fwOtaLocalPath);
        parcel.writeString(this.fwOtakey);
        parcel.writeString(this.fwOtaModule);
        parcel.writeInt(this.switchLogic.ordinal());
    }

    public EntityFwInfoU3HUB() {
    }

    public EntityFwInfoU3HUB(Parcel parcel) {
        readFromParcel(parcel);
    }
}
