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 EntityFwCamera implements Parcelable {
    public static final Parcelable.Creator<EntityFwCamera> CREATOR = new a();
    public String cameraCurrentVersion;
    public EnumCameraModel cameraModel;
    public EnumDeviceType deviceType;
    public int fwCameraType;
    public boolean isDistortionCorrectionEnableSupport;
    public boolean isSupportOtaUpgrade;
    public boolean isSupportSetPreviewMode;
    public boolean isSupportSwitch;
    public boolean isSupportUsbUpgrade;
    public boolean needRebootWhenUpgraded;
    public String otaCameraBasicBinVersion;
    public String otaCameraKey;
    public String otaUpgradeCameraBinPath;
    public EnumDeviceSwitchMode switchMode;
    public String usbUpgradeCameraBinName;

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

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

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

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

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

    public void readFromParcel(Parcel parcel) {
        this.cameraModel = (EnumCameraModel) parcel.readSerializable();
        this.deviceType = (EnumDeviceType) parcel.readSerializable();
        this.switchMode = (EnumDeviceSwitchMode) parcel.readSerializable();
        this.fwCameraType = parcel.readInt();
        this.cameraCurrentVersion = parcel.readString();
        this.isSupportUsbUpgrade = parcel.readByte() != 0;
        this.usbUpgradeCameraBinName = parcel.readString();
        this.isSupportOtaUpgrade = parcel.readByte() != 0;
        this.otaUpgradeCameraBinPath = parcel.readString();
        this.otaCameraBasicBinVersion = parcel.readString();
        this.otaCameraKey = parcel.readString();
        this.needRebootWhenUpgraded = parcel.readByte() != 0;
        this.isSupportSwitch = parcel.readByte() != 0;
        this.isDistortionCorrectionEnableSupport = parcel.readByte() != 0;
        this.isSupportSetPreviewMode = parcel.readByte() != 0;
    }

    public String toString() {
        Locale locale = Locale.US;
        String simpleName = getClass().getSimpleName();
        EnumCameraModel enumCameraModel = this.cameraModel;
        String strName = enumCameraModel == null ? "null" : enumCameraModel.name();
        EnumDeviceType enumDeviceType = this.deviceType;
        String strName2 = enumDeviceType == null ? "null" : enumDeviceType.name();
        EnumDeviceSwitchMode enumDeviceSwitchMode = this.switchMode;
        return String.format(locale, "%s [cameraModel: %s, deviceType: %s, switchMode: %s, fwCameraType: %d, cameraCurrentVersion: %s, isSupportUsbUpgrade: %b, usbUpgradeCameraBinName: %s, isSupportOtaUpgrade: %b, otaUpgradeCameraBinPath: %s, otaCameraBasicBinVersion: %s, otaCameraKey: %s, needRebootWhenUpgraded: %b isSupportSwitch: %b isDistortionCorrectionEnableSupport %b isSupportSetPreviewMode %b]", simpleName, strName, strName2, enumDeviceSwitchMode != null ? enumDeviceSwitchMode.name() : "null", Integer.valueOf(this.fwCameraType), this.cameraCurrentVersion, Boolean.valueOf(this.isSupportUsbUpgrade), this.usbUpgradeCameraBinName, Boolean.valueOf(this.isSupportOtaUpgrade), this.otaUpgradeCameraBinPath, this.otaCameraBasicBinVersion, this.otaCameraKey, Boolean.valueOf(this.needRebootWhenUpgraded), Boolean.valueOf(this.isSupportSwitch), Boolean.valueOf(this.isDistortionCorrectionEnableSupport), Boolean.valueOf(this.isSupportSetPreviewMode));
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        parcel.writeSerializable(this.cameraModel);
        parcel.writeSerializable(this.deviceType);
        parcel.writeSerializable(this.switchMode);
        parcel.writeInt(this.fwCameraType);
        parcel.writeString(this.cameraCurrentVersion);
        parcel.writeByte(this.isSupportUsbUpgrade ? (byte) 1 : (byte) 0);
        parcel.writeString(this.usbUpgradeCameraBinName);
        parcel.writeByte(this.isSupportOtaUpgrade ? (byte) 1 : (byte) 0);
        parcel.writeString(this.otaUpgradeCameraBinPath);
        parcel.writeString(this.otaCameraBasicBinVersion);
        parcel.writeString(this.otaCameraKey);
        parcel.writeByte(this.needRebootWhenUpgraded ? (byte) 1 : (byte) 0);
        parcel.writeByte(this.isSupportSwitch ? (byte) 1 : (byte) 0);
        parcel.writeByte(this.isDistortionCorrectionEnableSupport ? (byte) 1 : (byte) 0);
        parcel.writeByte(this.isSupportSetPreviewMode ? (byte) 1 : (byte) 0);
    }

    public EntityFwCamera() {
    }

    public EntityFwCamera(EnumCameraModel enumCameraModel, EnumDeviceType enumDeviceType, EnumDeviceSwitchMode enumDeviceSwitchMode, int i2, String str, boolean z2, String str2, boolean z3, String str3, String str4, String str5, boolean z4, boolean z5, boolean z6) {
        this.cameraModel = enumCameraModel;
        this.deviceType = enumDeviceType;
        this.switchMode = enumDeviceSwitchMode;
        this.fwCameraType = i2;
        this.cameraCurrentVersion = str;
        this.isSupportUsbUpgrade = z2;
        this.usbUpgradeCameraBinName = str2;
        this.isSupportOtaUpgrade = z3;
        this.otaUpgradeCameraBinPath = str3;
        this.otaCameraBasicBinVersion = str4;
        this.otaCameraKey = str5;
        this.needRebootWhenUpgraded = z4;
        this.isSupportSwitch = z5;
        this.isDistortionCorrectionEnableSupport = z6;
    }

    public EntityFwCamera(EnumCameraModel enumCameraModel, EnumDeviceType enumDeviceType, EnumDeviceSwitchMode enumDeviceSwitchMode, int i2, String str, boolean z2, String str2, boolean z3, String str3, String str4, String str5, boolean z4, boolean z5, boolean z6, boolean z7) {
        this.cameraModel = enumCameraModel;
        this.deviceType = enumDeviceType;
        this.switchMode = enumDeviceSwitchMode;
        this.fwCameraType = i2;
        this.cameraCurrentVersion = str;
        this.isSupportUsbUpgrade = z2;
        this.usbUpgradeCameraBinName = str2;
        this.isSupportOtaUpgrade = z3;
        this.otaUpgradeCameraBinPath = str3;
        this.otaCameraBasicBinVersion = str4;
        this.otaCameraKey = str5;
        this.needRebootWhenUpgraded = z4;
        this.isSupportSwitch = z5;
        this.isDistortionCorrectionEnableSupport = z6;
        this.isSupportSetPreviewMode = z7;
    }
}
