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 Parcelable.Creator<EntityFwInfoU3HUB>() { // from class: com.cvte.vman.entity.EntityFwInfoU3HUB.1
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public EntityFwInfoU3HUB createFromParcel(Parcel parcel) {
            return new EntityFwInfoU3HUB(parcel);
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public EntityFwInfoU3HUB[] newArray(int i) {
            return new EntityFwInfoU3HUB[i];
        }
    };
    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;

    public EntityFwInfoU3HUB(EnumFwInfoU3HUBType enumFwInfoU3HUBType, EnumFwInfoU3HUBLocation enumFwInfoU3HUBLocation, String str, int i, int i2, 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 = i;
        this.fwVerType = i2;
        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());
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        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);
    }
}
