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;

    static class a implements Parcelable.Creator<EntityFwTouch> {
        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;
        Object[] objArr = new Object[13];
        objArr[0] = EntityFwTouch.class.getSimpleName();
        EnumTouchModel enumTouchModel = this.touchModel;
        objArr[1] = enumTouchModel == null ? "null" : enumTouchModel.name();
        EnumTouchType enumTouchType = this.touchType;
        objArr[2] = enumTouchType == null ? "null" : enumTouchType.name();
        objArr[3] = Integer.valueOf(this.fwTouchType);
        objArr[4] = this.touchCurrentVersion;
        objArr[5] = Boolean.valueOf(this.isSupportUsbUpgrade);
        objArr[6] = this.usbUpgradeTouchBinName;
        objArr[7] = Boolean.valueOf(this.isSupportOtaUpgrade);
        objArr[8] = this.otaUpgradeTouchBinPath;
        objArr[9] = this.otaTouchBasicBinVersion;
        objArr[10] = this.otaTouchKey;
        objArr[11] = Boolean.valueOf(this.needRebootWhenUpgraded);
        EnumExtraTouchType enumExtraTouchType = this.extraTouchType;
        objArr[12] = enumExtraTouchType != null ? enumExtraTouchType.name() : "null";
        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]", objArr);
    }

    @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 z, String str2, boolean z2, String str3, String str4, String str5, boolean z3, EnumExtraTouchType enumExtraTouchType) {
        this.touchModel = enumTouchModel;
        this.touchType = enumTouchType;
        this.fwTouchType = i2;
        this.touchCurrentVersion = str;
        this.isSupportUsbUpgrade = z;
        this.usbUpgradeTouchBinName = str2;
        this.isSupportOtaUpgrade = z2;
        this.otaUpgradeTouchBinPath = str3;
        this.otaTouchBasicBinVersion = str4;
        this.otaTouchKey = str5;
        this.needRebootWhenUpgraded = z3;
        this.extraTouchType = enumExtraTouchType;
    }
}
