package com.cvte.vman.entity;

import android.os.Parcel;
import android.os.Parcelable;
import java.util.Locale;

/* JADX INFO: loaded from: classes.dex */
public class EntityFwIoBox implements Parcelable {
    public static final Parcelable.Creator<EntityFwIoBox> CREATOR = new Parcelable.Creator<EntityFwIoBox>() { // from class: com.cvte.vman.entity.EntityFwIoBox.1
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public EntityFwIoBox createFromParcel(Parcel parcel) {
            return new EntityFwIoBox(parcel);
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public EntityFwIoBox[] newArray(int i) {
            return new EntityFwIoBox[i];
        }
    };
    public int fwIoBoxType;
    public String ioBoxCurrentVersion;
    public EnumIoBoxType ioBoxType;
    public boolean isSupportOtaUpgrade;
    public boolean isSupportUsbUpgrade;
    public boolean needRebootWhenUpgraded;
    public String otaIoBoxBasicBinPath;
    public String otaIoBoxBasicBinVersion;
    public String otaIoBoxKey;
    public EnumDeviceSwitchMode switchMode;
    public String usbUpgradeIoBoxBinName;

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

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

    public EntityFwIoBox() {
    }

    public EntityFwIoBox(EnumIoBoxType enumIoBoxType, EnumDeviceSwitchMode enumDeviceSwitchMode, int i, String str, boolean z, String str2, boolean z2, String str3, String str4, String str5, boolean z3) {
        this.ioBoxType = enumIoBoxType;
        this.switchMode = enumDeviceSwitchMode;
        this.fwIoBoxType = i;
        this.ioBoxCurrentVersion = str;
        this.isSupportUsbUpgrade = z;
        this.usbUpgradeIoBoxBinName = str2;
        this.isSupportOtaUpgrade = z2;
        this.otaIoBoxBasicBinPath = str3;
        this.otaIoBoxBasicBinVersion = str4;
        this.otaIoBoxKey = str5;
        this.needRebootWhenUpgraded = z3;
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeSerializable(this.ioBoxType);
        parcel.writeSerializable(this.switchMode);
        parcel.writeInt(this.fwIoBoxType);
        parcel.writeString(this.ioBoxCurrentVersion);
        parcel.writeByte(this.isSupportUsbUpgrade ? (byte) 1 : (byte) 0);
        parcel.writeString(this.usbUpgradeIoBoxBinName);
        parcel.writeByte(this.isSupportOtaUpgrade ? (byte) 1 : (byte) 0);
        parcel.writeString(this.otaIoBoxBasicBinPath);
        parcel.writeString(this.otaIoBoxBasicBinVersion);
        parcel.writeString(this.otaIoBoxKey);
        parcel.writeByte(this.needRebootWhenUpgraded ? (byte) 1 : (byte) 0);
    }

    public void readFromParcel(Parcel parcel) {
        this.ioBoxType = (EnumIoBoxType) parcel.readSerializable();
        this.switchMode = (EnumDeviceSwitchMode) parcel.readSerializable();
        this.fwIoBoxType = parcel.readInt();
        this.ioBoxCurrentVersion = parcel.readString();
        this.isSupportUsbUpgrade = parcel.readByte() != 0;
        this.usbUpgradeIoBoxBinName = parcel.readString();
        this.isSupportOtaUpgrade = parcel.readByte() != 0;
        this.otaIoBoxBasicBinPath = parcel.readString();
        this.otaIoBoxBasicBinVersion = parcel.readString();
        this.otaIoBoxKey = parcel.readString();
        this.needRebootWhenUpgraded = parcel.readByte() != 0;
    }

    public String toString() {
        Locale locale = Locale.US;
        String simpleName = getClass().getSimpleName();
        EnumIoBoxType enumIoBoxType = this.ioBoxType;
        String strName = enumIoBoxType == null ? "null" : enumIoBoxType.name();
        EnumDeviceSwitchMode enumDeviceSwitchMode = this.switchMode;
        return String.format(locale, "%s [ioBoxType: %s, switchMode: %s, fwIoBoxType: %d, ioBoxCurrentVersion: %s, isSupportUsbUpgrade: %s, usbUpgradeIoBoxBinName: %s, isSupportOtaUpgrade: %b, otaIoBoxBasicBinPath: %s, otaIoBoxBasicBinVersion: %s, otaIoBoxKey: %s, needRebootWhenUpgraded: %b]", simpleName, strName, enumDeviceSwitchMode != null ? enumDeviceSwitchMode.name() : "null", Integer.valueOf(this.fwIoBoxType), this.ioBoxCurrentVersion, Boolean.valueOf(this.isSupportUsbUpgrade), this.usbUpgradeIoBoxBinName, Boolean.valueOf(this.isSupportOtaUpgrade), this.otaIoBoxBasicBinPath, this.otaIoBoxBasicBinVersion, this.otaIoBoxKey, Boolean.valueOf(this.needRebootWhenUpgraded));
    }
}
