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

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        public EntityFwCamera[] newArray(int i2) {
            return new EntityFwCamera[i2];
        }
    };
    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;

    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;
        Object[] objArr = new Object[16];
        objArr[0] = EntityFwCamera.class.getSimpleName();
        EnumCameraModel enumCameraModel = this.cameraModel;
        objArr[1] = enumCameraModel == null ? "null" : enumCameraModel.name();
        EnumDeviceType enumDeviceType = this.deviceType;
        objArr[2] = enumDeviceType == null ? "null" : enumDeviceType.name();
        EnumDeviceSwitchMode enumDeviceSwitchMode = this.switchMode;
        objArr[3] = enumDeviceSwitchMode != null ? enumDeviceSwitchMode.name() : "null";
        objArr[4] = Integer.valueOf(this.fwCameraType);
        objArr[5] = this.cameraCurrentVersion;
        objArr[6] = Boolean.valueOf(this.isSupportUsbUpgrade);
        objArr[7] = this.usbUpgradeCameraBinName;
        objArr[8] = Boolean.valueOf(this.isSupportOtaUpgrade);
        objArr[9] = this.otaUpgradeCameraBinPath;
        objArr[10] = this.otaCameraBasicBinVersion;
        objArr[11] = this.otaCameraKey;
        objArr[12] = Boolean.valueOf(this.needRebootWhenUpgraded);
        objArr[13] = Boolean.valueOf(this.isSupportSwitch);
        objArr[14] = Boolean.valueOf(this.isDistortionCorrectionEnableSupport);
        objArr[15] = Boolean.valueOf(this.isSupportSetPreviewMode);
        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]", objArr);
    }

    @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 z, String str2, boolean z2, String str3, String str4, String str5, boolean z3, boolean z4, boolean z5) {
        this.cameraModel = enumCameraModel;
        this.deviceType = enumDeviceType;
        this.switchMode = enumDeviceSwitchMode;
        this.fwCameraType = i2;
        this.cameraCurrentVersion = str;
        this.isSupportUsbUpgrade = z;
        this.usbUpgradeCameraBinName = str2;
        this.isSupportOtaUpgrade = z2;
        this.otaUpgradeCameraBinPath = str3;
        this.otaCameraBasicBinVersion = str4;
        this.otaCameraKey = str5;
        this.needRebootWhenUpgraded = z3;
        this.isSupportSwitch = z4;
        this.isDistortionCorrectionEnableSupport = z5;
    }

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