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

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public EntityMicrophone[] newArray(int i) {
            return new EntityMicrophone[i];
        }
    };
    public EnumDeviceType deviceType;
    public int fwMicrophoneType;
    public boolean isSupportOtaUpgrade;
    public boolean isSupportUsbUpgrade;
    public String microPhoneCurrentVersion;
    public EnumMicrophoneModel microphoneModel;
    public boolean needRebootWhenUpgraded;
    public String otaMicrophoneBasicBinVersion;
    public String otaMicrophoneKey;
    public String otaUpgradeMicrophoneBinPath;
    public String usbUpgradeMicrophoneBinName;

    public EntityMicrophone() {
    }

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

    public EntityMicrophone(EnumMicrophoneModel enumMicrophoneModel, EnumDeviceType enumDeviceType, int i, String str, boolean z, String str2, boolean z2, String str3, String str4, String str5, boolean z3) {
        this.microphoneModel = enumMicrophoneModel;
        this.deviceType = enumDeviceType;
        this.fwMicrophoneType = i;
        this.microPhoneCurrentVersion = str;
        this.isSupportUsbUpgrade = z;
        this.usbUpgradeMicrophoneBinName = str2;
        this.isSupportOtaUpgrade = z2;
        this.otaUpgradeMicrophoneBinPath = str3;
        this.otaMicrophoneBasicBinVersion = str4;
        this.otaMicrophoneKey = str5;
        this.needRebootWhenUpgraded = z3;
    }

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

    public void readFromParcel(Parcel parcel) {
        this.microphoneModel = (EnumMicrophoneModel) parcel.readSerializable();
        this.deviceType = (EnumDeviceType) parcel.readSerializable();
        this.fwMicrophoneType = parcel.readInt();
        this.microPhoneCurrentVersion = parcel.readString();
        this.isSupportUsbUpgrade = parcel.readByte() != 0;
        this.usbUpgradeMicrophoneBinName = parcel.readString();
        this.isSupportOtaUpgrade = parcel.readByte() != 0;
        this.otaUpgradeMicrophoneBinPath = parcel.readString();
        this.otaMicrophoneBasicBinVersion = parcel.readString();
        this.otaMicrophoneKey = parcel.readString();
        this.needRebootWhenUpgraded = parcel.readByte() != 0;
    }

    public String toString() {
        Locale locale = Locale.US;
        Object[] objArr = new Object[11];
        EnumMicrophoneModel enumMicrophoneModel = this.microphoneModel;
        objArr[0] = enumMicrophoneModel == null ? "null" : enumMicrophoneModel.name();
        EnumDeviceType enumDeviceType = this.deviceType;
        objArr[1] = enumDeviceType != null ? enumDeviceType.name() : "null";
        objArr[2] = Integer.valueOf(this.fwMicrophoneType);
        objArr[3] = this.microPhoneCurrentVersion;
        objArr[4] = Boolean.valueOf(this.isSupportUsbUpgrade);
        objArr[5] = this.usbUpgradeMicrophoneBinName;
        objArr[6] = Boolean.valueOf(this.isSupportOtaUpgrade);
        objArr[7] = this.otaUpgradeMicrophoneBinPath;
        objArr[8] = this.otaMicrophoneBasicBinVersion;
        objArr[9] = this.otaMicrophoneKey;
        objArr[10] = Boolean.valueOf(this.needRebootWhenUpgraded);
        return String.format(locale, "EntityMicroPhone[microphoneModel: %s, deviceType: %s, fwMicrophoneType: %d, microPhoneCurrentVersion: %s, isSupportUsbUpgrade: %b, usbUpgradeMicrophoneBinName: %s, isSupportOtaUpgrade: %b, otaUpgradeMicrophoneBinPath: %s, otaMicrophoneBasicBinVersion: %s, otaMicrophoneKey: %s, needRebootWhenUpgraded: %b]", objArr);
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeSerializable(this.microphoneModel);
        parcel.writeSerializable(this.deviceType);
        parcel.writeInt(this.fwMicrophoneType);
        parcel.writeString(this.microPhoneCurrentVersion);
        parcel.writeByte(this.isSupportUsbUpgrade ? (byte) 1 : (byte) 0);
        parcel.writeString(this.usbUpgradeMicrophoneBinName);
        parcel.writeByte(this.isSupportOtaUpgrade ? (byte) 1 : (byte) 0);
        parcel.writeString(this.otaUpgradeMicrophoneBinPath);
        parcel.writeString(this.otaMicrophoneBasicBinVersion);
        parcel.writeString(this.otaMicrophoneKey);
        parcel.writeByte(this.needRebootWhenUpgraded ? (byte) 1 : (byte) 0);
    }
}
