package com.linecorp.linesdk.auth.internal;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.linecorp.linesdk.a.f;

public final class d implements Parcelable {
    public static final Parcelable.Creator<d> CREATOR = new Parcelable.Creator<d>() {
        static {
            Covode.recordClassIndex(46058);
        }

        public final /* bridge */ /* synthetic */ Object[] newArray(int i) {
            return new d[i];
        }

        public final /* synthetic */ Object createFromParcel(Parcel parcel) {
            return new d(parcel, (byte) 0);
        }
    };
    public f LIZ;
    public String LIZIZ;
    public String LIZJ;
    public int LIZLLL;

    public final int describeContents() {
        return 0;
    }

    public d() {
        this.LIZLLL = a.LIZ;
    }

    public enum a {
        ;

        public static int[] LIZ() {
            return (int[]) LJ.clone();
        }

        /* access modifiers changed from: public */
        static {
            Covode.recordClassIndex(46059);
            LIZ = 1;
            LIZIZ = 2;
            LIZJ = 3;
            LIZLLL = 4;
            LJ = new int[]{1, 2, 3, 4};
        }
    }

    static {
        Covode.recordClassIndex(46057);
    }

    public d(Parcel parcel) {
        f fVar;
        this.LIZLLL = a.LIZ;
        String readString = parcel.readString();
        String readString2 = parcel.readString();
        if (TextUtils.isEmpty(readString) || TextUtils.isEmpty(readString2)) {
            fVar = null;
        } else {
            fVar = new f(readString, readString2);
        }
        this.LIZ = fVar;
        this.LIZIZ = parcel.readString();
        this.LIZLLL = a.LIZ()[parcel.readByte()];
        this.LIZJ = parcel.readString();
    }

    public /* synthetic */ d(Parcel parcel, byte b) {
        this(parcel);
    }

    public final void writeToParcel(Parcel parcel, int i) {
        String str;
        f fVar = this.LIZ;
        String str2 = null;
        if (fVar == null) {
            str = null;
        } else {
            str = fVar.LIZ;
        }
        parcel.writeString(str);
        f fVar2 = this.LIZ;
        if (fVar2 != null) {
            str2 = fVar2.LIZIZ;
        }
        parcel.writeString(str2);
        parcel.writeString(this.LIZIZ);
        parcel.writeByte((byte) (this.LIZLLL - 1));
        parcel.writeString(this.LIZJ);
    }
}
