package com.cvte.vman.entity;

import android.os.Parcel;
import android.os.Parcelable;
import com.cvte.vman.types.EnumExtraTouchType;
import com.cvte.vman.types.EnumTouchModel;
import com.cvte.vman.types.EnumTouchType;
import java.util.Locale;

/* JADX INFO: loaded from: classes.dex */
public class EntityFwTouch implements Parcelable {
    public static final Parcelable.Creator<EntityFwTouch> CREATOR = new a();
    public EnumExtraTouchType extraTouchType;
    public int fwTouchType;
    public boolean isSupportOtaUpgrade;
    public boolean isSupportUsbUpgrade;
    public boolean needRebootWhenUpgraded;
    public String otaTouchBasicBinVersion;
    public String otaTouchKey;
    public String otaUpgradeTouchBinPath;
    public String touchCurrentVersion;
    public EnumTouchModel touchModel;
    public EnumTouchType touchType;
    public String usbUpgradeTouchBinName;

    class a implements Parcelable.Creator {
        a() {
        }

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

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

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

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

    public void readFromParcel(Parcel parcel) {
        this.touchModel = (EnumTouchModel) parcel.readSerializable();
        this.touchType = (EnumTouchType) parcel.readSerializable();
        this.fwTouchType = parcel.readInt();
        this.touchCurrentVersion = parcel.readString();
        this.isSupportUsbUpgrade = parcel.readByte() != 0;
        this.usbUpgradeTouchBinName = parcel.readString();
        this.isSupportOtaUpgrade = parcel.readByte() != 0;
        this.otaUpgradeTouchBinPath = parcel.readString();
        this.otaTouchBasicBinVersion = parcel.readString();
        this.otaTouchKey = parcel.readString();
        this.needRebootWhenUpgraded = parcel.readByte() != 0;
        this.extraTouchType = (EnumExtraTouchType) parcel.readSerializable();
    }

    public String toString() {
        Locale locale = Locale.US;
        String simpleName = getClass().getSimpleName();
        EnumTouchModel enumTouchModel = this.touchModel;
        String strName = enumTouchModel == null ? "null" : enumTouchModel.name();
        EnumTouchType enumTouchType = this.touchType;
        String strName2 = enumTouchType == null ? "null" : enumTouchType.name();
        Integer numValueOf = Integer.valueOf(this.fwTouchType);
        String str = this.touchCurrentVersion;
        Boolean boolValueOf = Boolean.valueOf(this.isSupportUsbUpgrade);
        String str2 = this.usbUpgradeTouchBinName;
        Boolean boolValueOf2 = Boolean.valueOf(this.isSupportOtaUpgrade);
        String str3 = this.otaUpgradeTouchBinPath;
        String str4 = this.otaTouchBasicBinVersion;
        String str5 = this.otaTouchKey;
        Boolean boolValueOf3 = Boolean.valueOf(this.needRebootWhenUpgraded);
        EnumExtraTouchType enumExtraTouchType = this.extraTouchType;
        return String.format(locale, "%s [touchBrand: %s, touchType: %s, fwTouchType: %d, touchCurrentVersion: %s, isSupportUsbUpgrade: %b, usbUpgradeTouchBinName: %s, isSupportOtaUpgrade: %b, otaUpgradeTouchBinPath: %s, otaTouchBasicBinVersion: %s, otaTouchKey: %s, needRebootWhenUpgraded: %b, extraTouchType: %s]", simpleName, strName, strName2, numValueOf, str, boolValueOf, str2, boolValueOf2, str3, str4, str5, boolValueOf3, enumExtraTouchType != null ? enumExtraTouchType.name() : "null");
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        parcel.writeSerializable(this.touchModel);
        parcel.writeSerializable(this.touchType);
        parcel.writeInt(this.fwTouchType);
        parcel.writeString(this.touchCurrentVersion);
        parcel.writeByte(this.isSupportUsbUpgrade ? (byte) 1 : (byte) 0);
        parcel.writeString(this.usbUpgradeTouchBinName);
        parcel.writeByte(this.isSupportOtaUpgrade ? (byte) 1 : (byte) 0);
        parcel.writeString(this.otaUpgradeTouchBinPath);
        parcel.writeString(this.otaTouchBasicBinVersion);
        parcel.writeString(this.otaTouchKey);
        parcel.writeByte(this.needRebootWhenUpgraded ? (byte) 1 : (byte) 0);
        parcel.writeSerializable(this.extraTouchType);
    }

    public EntityFwTouch() {
    }

    public EntityFwTouch(EnumTouchModel enumTouchModel, EnumTouchType enumTouchType, int i2, String str, boolean z2, String str2, boolean z3, String str3, String str4, String str5, boolean z4, EnumExtraTouchType enumExtraTouchType) {
        this.touchModel = enumTouchModel;
        this.touchType = enumTouchType;
        this.fwTouchType = i2;
        this.touchCurrentVersion = str;
        this.isSupportUsbUpgrade = z2;
        this.usbUpgradeTouchBinName = str2;
        this.isSupportOtaUpgrade = z3;
        this.otaUpgradeTouchBinPath = str3;
        this.otaTouchBasicBinVersion = str4;
        this.otaTouchKey = str5;
        this.needRebootWhenUpgraded = z4;
        this.extraTouchType = enumExtraTouchType;
    }
}
