package com.vinfast.companion.map.search;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
@kotlinx.parcelize.Parcelize
@kotlin.Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0002\b\u0010\b\u0087\b\u0018\u0000 )2\u00020\u0001:\u0001*B/\u0012\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0005\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0007¢\u0006\u0004\b\t\u0010\nJ\r\u0010\f\u001a\u00020\u000b¢\u0006\u0004\b\f\u0010\rJ\r\u0010\u000e\u001a\u00020\u0002¢\u0006\u0004\b\u000e\u0010\u000fJ\r\u0010\u0011\u001a\u00020\u0010¢\u0006\u0004\b\u0011\u0010\u0012J\u001d\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u0015\u001a\u00020\u0010¢\u0006\u0004\b\u0017\u0010\u0018J\u0010\u0010\u0019\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\u0019\u0010\u000fJ\u0010\u0010\u001a\u001a\u00020\u0010HÖ\u0001¢\u0006\u0004\b\u001a\u0010\u0012J\u001a\u0010\u001d\u001a\u00020\u000b2\b\u0010\u001c\u001a\u0004\u0018\u00010\u001bHÖ\u0003¢\u0006\u0004\b\u001d\u0010\u001eR\u0019\u0010\u0003\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u001f\u0010 \u001a\u0004\b!\u0010\u000fR\u0019\u0010\u0004\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u000e\u0010 \u001a\u0004\b\"\u0010\u000fR\u0019\u0010\u0006\u001a\u0004\u0018\u00010\u00058\u0006¢\u0006\f\n\u0004\b\"\u0010#\u001a\u0004\b$\u0010%R\u0019\u0010\b\u001a\u0004\u0018\u00010\u00078\u0006¢\u0006\f\n\u0004\b!\u0010&\u001a\u0004\b'\u0010(¨\u0006+"}, d2 = {"Lcom/vinfast/companion/map/search/ResponseSearchPayload;", "Landroid/os/Parcelable;", "", "selectHereId", "searchQuery", "Lcom/vinfast/companion/map/model/MapLocation;", "singlePlace", "Lcom/vinfast/companion/map/model/VinFastServicePlace;", "vinFastPlace", "<init>", "(Ljava/lang/String;Ljava/lang/String;Lcom/vinfast/companion/map/model/MapLocation;Lcom/vinfast/companion/map/model/VinFastServicePlace;)V", "", "h", "()Z", "b", "()Ljava/lang/String;", "", "describeContents", "()I", "Landroid/os/Parcel;", "dest", "flags", "", "writeToParcel", "(Landroid/os/Parcel;I)V", "toString", "hashCode", "", "other", "equals", "(Ljava/lang/Object;)Z", "a", "Ljava/lang/String;", "d", "c", "Lcom/vinfast/companion/map/model/MapLocation;", "f", "()Lcom/vinfast/companion/map/model/MapLocation;", "Lcom/vinfast/companion/map/model/VinFastServicePlace;", "g", "()Lcom/vinfast/companion/map/model/VinFastServicePlace;", "e", "Companion", "hereSdk_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final /* data */ class ResponseSearchPayload implements android.os.Parcelable {

    /* JADX INFO: renamed from: a, reason: from kotlin metadata and from toString */
    private final java.lang.String selectHereId;

    /* JADX INFO: renamed from: b, reason: from kotlin metadata and from toString */
    private final java.lang.String searchQuery;

    /* JADX INFO: renamed from: c, reason: from kotlin metadata and from toString */
    private final com.vinfast.companion.map.model.MapLocation singlePlace;

    /* JADX INFO: renamed from: d, reason: from kotlin metadata and from toString */
    private final com.vinfast.companion.map.model.VinFastServicePlace vinFastPlace;

    /* JADX INFO: renamed from: e, reason: from kotlin metadata */
    public static final com.vinfast.companion.map.search.ResponseSearchPayload.Companion INSTANCE = new com.vinfast.companion.map.search.ResponseSearchPayload.Companion(null);

    @org.jetbrains.annotations.NotNull
    public static final android.os.Parcelable.Creator<com.vinfast.companion.map.search.ResponseSearchPayload> CREATOR = new com.vinfast.companion.map.search.ResponseSearchPayload.Creator();

    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0015\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004¢\u0006\u0004\b\u0007\u0010\bJ\u0015\u0010\u000b\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\t¢\u0006\u0004\b\u000b\u0010\fJ\u0015\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u000e\u001a\u00020\r¢\u0006\u0004\b\u000f\u0010\u0010J\u0015\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u000e\u001a\u00020\r¢\u0006\u0004\b\u0011\u0010\u0010J\u0015\u0010\u0014\u001a\u00020\u00062\u0006\u0010\u0013\u001a\u00020\u0012¢\u0006\u0004\b\u0014\u0010\u0015¨\u0006\u0016"}, d2 = {"Lcom/vinfast/companion/map/search/ResponseSearchPayload$Companion;", "", "<init>", "()V", "", "searchQuery", "Lcom/vinfast/companion/map/search/ResponseSearchPayload;", "d", "(Ljava/lang/String;)Lcom/vinfast/companion/map/search/ResponseSearchPayload;", "Lcom/vinfast/companion/map/model/RecentSearch;", "recent", "c", "(Lcom/vinfast/companion/map/model/RecentSearch;)Lcom/vinfast/companion/map/search/ResponseSearchPayload;", "Lcom/vinfast/companion/map/model/MapLocation;", "mapLocation", "b", "(Lcom/vinfast/companion/map/model/MapLocation;)Lcom/vinfast/companion/map/search/ResponseSearchPayload;", "e", "Lcom/vinfast/companion/map/model/FavoritePlace;", "favoritePlace", "a", "(Lcom/vinfast/companion/map/model/FavoritePlace;)Lcom/vinfast/companion/map/search/ResponseSearchPayload;", "hereSdk_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
    public static final class Companion {
        public /* synthetic */ Companion(kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final com.vinfast.companion.map.search.ResponseSearchPayload a(com.vinfast.companion.map.model.FavoritePlace favoritePlace) {
            kotlin.jvm.internal.Intrinsics.l(favoritePlace, "favoritePlace");
            com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlaceA = favoritePlace.a();
            return new com.vinfast.companion.map.search.ResponseSearchPayload(favoritePlace.getHereId(), favoritePlace.getTitle(), null, vinFastServicePlaceA);
        }

        public final com.vinfast.companion.map.search.ResponseSearchPayload b(com.vinfast.companion.map.model.MapLocation mapLocation) {
            kotlin.jvm.internal.Intrinsics.l(mapLocation, "mapLocation");
            return new com.vinfast.companion.map.search.ResponseSearchPayload(mapLocation.getId(), null, null, null);
        }

        public final com.vinfast.companion.map.search.ResponseSearchPayload c(com.vinfast.companion.map.model.RecentSearch recent) {
            kotlin.jvm.internal.Intrinsics.l(recent, "recent");
            return new com.vinfast.companion.map.search.ResponseSearchPayload(recent.getHereId(), recent.getTitle(), null, recent.getVinFastServicePlace());
        }

        public final com.vinfast.companion.map.search.ResponseSearchPayload d(java.lang.String searchQuery) {
            kotlin.jvm.internal.Intrinsics.l(searchQuery, "searchQuery");
            return new com.vinfast.companion.map.search.ResponseSearchPayload(null, searchQuery, null, null);
        }

        public final com.vinfast.companion.map.search.ResponseSearchPayload e(com.vinfast.companion.map.model.MapLocation mapLocation) {
            kotlin.jvm.internal.Intrinsics.l(mapLocation, "mapLocation");
            return new com.vinfast.companion.map.search.ResponseSearchPayload(null, mapLocation.getTitle(), mapLocation, null);
        }

        private Companion() {
        }
    }

    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(k = 3, mv = {2, 2, 0}, xi = 48)
    public static final class Creator implements android.os.Parcelable.Creator<com.vinfast.companion.map.search.ResponseSearchPayload> {
        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
        public final com.vinfast.companion.map.search.ResponseSearchPayload createFromParcel(android.os.Parcel parcel) {
            kotlin.jvm.internal.Intrinsics.l(parcel, "parcel");
            return new com.vinfast.companion.map.search.ResponseSearchPayload(parcel.readString(), parcel.readString(), parcel.readInt() == 0 ? null : com.vinfast.companion.map.model.MapLocation.CREATOR.createFromParcel(parcel), parcel.readInt() != 0 ? com.vinfast.companion.map.model.VinFastServicePlace.CREATOR.createFromParcel(parcel) : null);
        }

        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
        public final com.vinfast.companion.map.search.ResponseSearchPayload[] newArray(int i) {
            return new com.vinfast.companion.map.search.ResponseSearchPayload[i];
        }
    }

    public ResponseSearchPayload(java.lang.String str, java.lang.String str2, com.vinfast.companion.map.model.MapLocation mapLocation, com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace) {
        this.selectHereId = str;
        this.searchQuery = str2;
        this.singlePlace = mapLocation;
        this.vinFastPlace = vinFastServicePlace;
    }

    public final java.lang.String b() {
        return "hasPlace=" + (this.singlePlace != null) + ", selectHereId=" + this.selectHereId + ", (vinfastPlace=" + this.vinFastPlace + "), searchQuery=" + this.searchQuery;
    }

    /* JADX INFO: renamed from: c, reason: from getter */
    public final java.lang.String getSearchQuery() {
        return this.searchQuery;
    }

    /* JADX INFO: renamed from: d, reason: from getter */
    public final java.lang.String getSelectHereId() {
        return this.selectHereId;
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    public boolean equals(java.lang.Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof com.vinfast.companion.map.search.ResponseSearchPayload)) {
            return false;
        }
        com.vinfast.companion.map.search.ResponseSearchPayload responseSearchPayload = (com.vinfast.companion.map.search.ResponseSearchPayload) other;
        return kotlin.jvm.internal.Intrinsics.g(this.selectHereId, responseSearchPayload.selectHereId) && kotlin.jvm.internal.Intrinsics.g(this.searchQuery, responseSearchPayload.searchQuery) && kotlin.jvm.internal.Intrinsics.g(this.singlePlace, responseSearchPayload.singlePlace) && kotlin.jvm.internal.Intrinsics.g(this.vinFastPlace, responseSearchPayload.vinFastPlace);
    }

    /* JADX INFO: renamed from: f, reason: from getter */
    public final com.vinfast.companion.map.model.MapLocation getSinglePlace() {
        return this.singlePlace;
    }

    /* JADX INFO: renamed from: g, reason: from getter */
    public final com.vinfast.companion.map.model.VinFastServicePlace getVinFastPlace() {
        return this.vinFastPlace;
    }

    public final boolean h() {
        return (this.selectHereId == null && this.searchQuery == null && this.singlePlace == null && this.vinFastPlace == null) ? false : true;
    }

    public int hashCode() {
        java.lang.String str = this.selectHereId;
        int iHashCode = (str == null ? 0 : str.hashCode()) * 31;
        java.lang.String str2 = this.searchQuery;
        int iHashCode2 = (iHashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
        com.vinfast.companion.map.model.MapLocation mapLocation = this.singlePlace;
        int iHashCode3 = (iHashCode2 + (mapLocation == null ? 0 : mapLocation.hashCode())) * 31;
        com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace = this.vinFastPlace;
        return iHashCode3 + (vinFastServicePlace != null ? vinFastServicePlace.hashCode() : 0);
    }

    public java.lang.String toString() {
        return "ResponseSearchPayload(selectHereId=" + this.selectHereId + ", searchQuery=" + this.searchQuery + ", singlePlace=" + this.singlePlace + ", vinFastPlace=" + this.vinFastPlace + ")";
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(android.os.Parcel dest, int flags) {
        kotlin.jvm.internal.Intrinsics.l(dest, "dest");
        dest.writeString(this.selectHereId);
        dest.writeString(this.searchQuery);
        com.vinfast.companion.map.model.MapLocation mapLocation = this.singlePlace;
        if (mapLocation == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            mapLocation.writeToParcel(dest, flags);
        }
        com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace = this.vinFastPlace;
        if (vinFastServicePlace == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            vinFastServicePlace.writeToParcel(dest, flags);
        }
    }
}
