package com.ss.android.ugc.aweme.ecommerce.delivery.repo.dto;

import X.C47;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import com.ss.android.ugc.aweme.ecommerce.address.dto.Address;
import java.util.Objects;

public final class ReachableAddress implements Parcelable {
    public static final Parcelable.Creator<ReachableAddress> CREATOR = new C47();
    @c(LIZ = "address_reachable")
    public boolean LIZ;
    @c(LIZ = "shipping_address")
    public final Address LIZIZ;
    @c(LIZ = "invalid_hint_message")
    public final String LIZJ;
    @c(LIZ = "address_valid")
    public final Boolean LIZLLL;
    @c(LIZ = "available_for_incentive")
    public final Boolean LJ;
    @c(LIZ = "unavailable_incentive_hint")
    public final String LJFF;
    @c(LIZ = "address_default_selection")
    public final Boolean LJI;
    public boolean LJII;

    static {
        Covode.recordClassIndex(69990);
    }

    private Object[] LIZ() {
        return new Object[]{Boolean.valueOf(this.LIZ), this.LIZIZ, this.LIZJ, this.LIZLLL, this.LJ, this.LJFF, this.LJI, Boolean.valueOf(this.LJII)};
    }

    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ReachableAddress)) {
            return false;
        }
        return M12.LIZ(((ReachableAddress) obj).LIZ(), LIZ());
    }

    public final int hashCode() {
        return Objects.hash(LIZ());
    }

    public final String toString() {
        return M12.LIZ("ReachableAddress:%s,%s,%s,%s,%s,%s,%s,%s", LIZ());
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeInt(this.LIZ ? 1 : 0);
        Address address = this.LIZIZ;
        if (address != null) {
            parcel.writeInt(1);
            address.writeToParcel(parcel, 0);
        } else {
            parcel.writeInt(0);
        }
        parcel.writeString(this.LIZJ);
        Boolean bool = this.LIZLLL;
        if (bool != null) {
            parcel.writeInt(1);
            parcel.writeInt(bool.booleanValue() ? 1 : 0);
        } else {
            parcel.writeInt(0);
        }
        Boolean bool2 = this.LJ;
        if (bool2 != null) {
            parcel.writeInt(1);
            parcel.writeInt(bool2.booleanValue() ? 1 : 0);
        } else {
            parcel.writeInt(0);
        }
        parcel.writeString(this.LJFF);
        Boolean bool3 = this.LJI;
        if (bool3 != null) {
            parcel.writeInt(1);
            parcel.writeInt(bool3.booleanValue() ? 1 : 0);
        } else {
            parcel.writeInt(0);
        }
        parcel.writeInt(this.LJII ? 1 : 0);
    }

    public ReachableAddress(boolean z, Address address, String str, Boolean bool, Boolean bool2, String str2, Boolean bool3, boolean z2) {
        this.LIZ = z;
        this.LIZIZ = address;
        this.LIZJ = str;
        this.LIZLLL = bool;
        this.LJ = bool2;
        this.LJFF = str2;
        this.LJI = bool3;
        this.LJII = z2;
    }
}
