package com.ifpdos.mcusdk;

import android.os.Parcel;
import android.os.Parcelable;
import d.f.a.r2.h3;

/* JADX INFO: loaded from: classes.dex */
public class McuCommonResponse implements Parcelable {
    public static final Parcelable.Creator<McuCommonResponse> CREATOR = new a();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f2022b;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public Byte f2023e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public Byte f2024f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public byte[] f2025g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public boolean f2026h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public String f2027i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public int f2028j;

    public static class a implements Parcelable.Creator<McuCommonResponse> {
        @Override // android.os.Parcelable.Creator
        public McuCommonResponse createFromParcel(Parcel parcel) {
            return new McuCommonResponse(parcel);
        }

        @Override // android.os.Parcelable.Creator
        public McuCommonResponse[] newArray(int i2) {
            return new McuCommonResponse[i2];
        }
    }

    public McuCommonResponse(int i2, Byte b2, Byte b3, byte[] bArr, boolean z) {
        this.f2022b = i2;
        this.f2023e = b2;
        this.f2024f = b3;
        this.f2025g = bArr;
        this.f2026h = z;
    }

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

    public String toString() {
        StringBuilder sbB = d.b.a.a.a.B("[ ");
        sbB.append(d.f.c.a.values()[this.f2022b]);
        sbB.append(" ]: [ ");
        sbB.append(h3.e(this.f2023e.byteValue()));
        sbB.append(" ] [ ");
        sbB.append(h3.e(this.f2024f.byteValue()));
        sbB.append(" ][ ");
        sbB.append(h3.d(this.f2025g));
        sbB.append(" ] [ ");
        sbB.append(this.f2027i);
        sbB.append("] [ ");
        return d.b.a.a.a.s(sbB, this.f2028j, " ]");
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i2) {
        parcel.writeInt(this.f2022b);
        if (this.f2023e == null) {
            parcel.writeByte((byte) 0);
        } else {
            parcel.writeByte((byte) 1);
            parcel.writeByte(this.f2023e.byteValue());
        }
        if (this.f2024f == null) {
            parcel.writeByte((byte) 0);
        } else {
            parcel.writeByte((byte) 1);
            parcel.writeByte(this.f2024f.byteValue());
        }
        parcel.writeByteArray(this.f2025g);
        parcel.writeByte(this.f2026h ? (byte) 1 : (byte) 0);
        parcel.writeString(this.f2027i);
        parcel.writeInt(this.f2028j);
    }

    public McuCommonResponse(Parcel parcel) {
        this.f2022b = parcel.readInt();
        if (parcel.readByte() == 0) {
            this.f2023e = null;
        } else {
            this.f2023e = Byte.valueOf(parcel.readByte());
        }
        if (parcel.readByte() == 0) {
            this.f2024f = null;
        } else {
            this.f2024f = Byte.valueOf(parcel.readByte());
        }
        this.f2025g = parcel.createByteArray();
        this.f2026h = parcel.readByte() != 0;
        this.f2027i = parcel.readString();
        this.f2028j = parcel.readInt();
    }
}
