package com.vinfast.companion.map.model;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
@kotlinx.parcelize.Parcelize
@kotlin.Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0007\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0015\b\u0087\b\u0018\u0000 #2\u00020\u0001:\u00012B[\u0012\n\b\u0002\u0010\u0003\u001a\u0004\u0018\u00010\u0002\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0004\u0012\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u0004\u0012\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u0004\u0012\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u0004\u0012\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\t\u0012\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u000b¢\u0006\u0004\b\r\u0010\u000eJ\r\u0010\u000f\u001a\u00020\u0002¢\u0006\u0004\b\u000f\u0010\u0010J\u001d\u0010\u0015\u001a\u00020\u00142\u0006\u0010\u0012\u001a\u00020\u00112\u0006\u0010\u0013\u001a\u00020\u0002¢\u0006\u0004\b\u0015\u0010\u0016Jd\u0010\u0017\u001a\u00020\u00002\n\b\u0002\u0010\u0003\u001a\u0004\u0018\u00010\u00022\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00042\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00042\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00042\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u00042\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\t2\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u000bHÆ\u0001¢\u0006\u0004\b\u0017\u0010\u0018J\u0010\u0010\u0019\u001a\u00020\u0004HÖ\u0001¢\u0006\u0004\b\u0019\u0010\u001aJ\u0010\u0010\u001b\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\u001b\u0010\u0010J\u001a\u0010\u001f\u001a\u00020\u001e2\b\u0010\u001d\u001a\u0004\u0018\u00010\u001cHÖ\u0003¢\u0006\u0004\b\u001f\u0010 R\u0019\u0010\u0003\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b!\u0010\"\u001a\u0004\b#\u0010$R\u0019\u0010\u0005\u001a\u0004\u0018\u00010\u00048\u0006¢\u0006\f\n\u0004\b\u0017\u0010%\u001a\u0004\b&\u0010\u001aR\u0019\u0010\u0006\u001a\u0004\u0018\u00010\u00048\u0006¢\u0006\f\n\u0004\b'\u0010%\u001a\u0004\b(\u0010\u001aR\u0019\u0010\u0007\u001a\u0004\u0018\u00010\u00048\u0006¢\u0006\f\n\u0004\b)\u0010%\u001a\u0004\b)\u0010\u001aR\u0019\u0010\b\u001a\u0004\u0018\u00010\u00048\u0006¢\u0006\f\n\u0004\b*\u0010%\u001a\u0004\b+\u0010\u001aR\u0019\u0010\n\u001a\u0004\u0018\u00010\t8\u0006¢\u0006\f\n\u0004\b,\u0010-\u001a\u0004\b.\u0010/R\u0019\u0010\f\u001a\u0004\u0018\u00010\u000b8\u0006¢\u0006\f\n\u0004\b(\u00100\u001a\u0004\b,\u00101¨\u00063"}, d2 = {"Lcom/vinfast/companion/map/model/RecentSearch;", "Landroid/os/Parcelable;", "", "id", "", "title", "hereId", "address", "userId", "Lcom/vinfast/companion/map/model/VinFastServicePlace;", "vinFastServicePlace", "", "createAt", "<init>", "(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/vinfast/companion/map/model/VinFastServicePlace;Ljava/lang/Long;)V", "describeContents", "()I", "Landroid/os/Parcel;", "dest", "flags", "", "writeToParcel", "(Landroid/os/Parcel;I)V", "b", "(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/vinfast/companion/map/model/VinFastServicePlace;Ljava/lang/Long;)Lcom/vinfast/companion/map/model/RecentSearch;", "toString", "()Ljava/lang/String;", "hashCode", "", "other", "", "equals", "(Ljava/lang/Object;)Z", "a", "Ljava/lang/Integer;", "h", "()Ljava/lang/Integer;", "Ljava/lang/String;", "j", "c", "g", "d", "e", "k", "f", "Lcom/vinfast/companion/map/model/VinFastServicePlace;", "l", "()Lcom/vinfast/companion/map/model/VinFastServicePlace;", "Ljava/lang/Long;", "()Ljava/lang/Long;", "Companion", "hereSdk_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final /* data */ class RecentSearch implements android.os.Parcelable {

    /* JADX INFO: renamed from: a, reason: from kotlin metadata and from toString */
    private final java.lang.Integer id;

    /* JADX INFO: renamed from: b, reason: from kotlin metadata and from toString */
    private final java.lang.String title;

    /* JADX INFO: renamed from: c, reason: from kotlin metadata and from toString */
    private final java.lang.String hereId;

    /* JADX INFO: renamed from: d, reason: from kotlin metadata and from toString */
    private final java.lang.String address;

    /* JADX INFO: renamed from: e, reason: from kotlin metadata and from toString */
    private final java.lang.String userId;

    /* JADX INFO: renamed from: f, reason: from kotlin metadata and from toString */
    private final com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace;

    /* JADX INFO: renamed from: g, reason: from kotlin metadata and from toString */
    private final java.lang.Long createAt;

    /* JADX INFO: renamed from: h, reason: from kotlin metadata */
    public static final com.vinfast.companion.map.model.RecentSearch.Companion INSTANCE = new com.vinfast.companion.map.model.RecentSearch.Companion(null);

    @org.jetbrains.annotations.NotNull
    public static final android.os.Parcelable.Creator<com.vinfast.companion.map.model.RecentSearch> CREATOR = new com.vinfast.companion.map.model.RecentSearch.Creator();

    /* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
    @kotlin.Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\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\b¨\u0006\t"}, d2 = {"Lcom/vinfast/companion/map/model/RecentSearch$Companion;", "", "<init>", "()V", "Lcom/vinfast/companion/map/dao/entity/RecentSearchEntity;", "entity", "Lcom/vinfast/companion/map/model/RecentSearch;", "a", "(Lcom/vinfast/companion/map/dao/entity/RecentSearchEntity;)Lcom/vinfast/companion/map/model/RecentSearch;", "hereSdk_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
    @kotlin.jvm.internal.SourceDebugExtension
    public static final class Companion {
        public /* synthetic */ Companion(kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final com.vinfast.companion.map.model.RecentSearch a(com.vinfast.companion.map.dao.entity.RecentSearchEntity entity) {
            kotlin.jvm.internal.Intrinsics.l(entity, "entity");
            java.lang.String vinFastId = entity.getVinFastId();
            java.lang.String placeCategory = entity.getPlaceCategory();
            com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace = null;
            com.vinfast.companion.map.model.MapLocationCategory mapLocationCategoryValueOf = placeCategory != null ? com.vinfast.companion.map.model.MapLocationCategory.valueOf(placeCategory) : null;
            java.lang.Double latitude = entity.getLatitude();
            java.lang.Double longitude = entity.getLongitude();
            if (vinFastId != null && mapLocationCategoryValueOf != null && latitude != null && longitude != null) {
                vinFastServicePlace = new com.vinfast.companion.map.model.VinFastServicePlace(vinFastId, mapLocationCategoryValueOf, entity.getTitle(), entity.getAddress(), latitude.doubleValue(), longitude.doubleValue());
            }
            return new com.vinfast.companion.map.model.RecentSearch(entity.getId(), entity.getTitle(), entity.getHereId(), entity.getAddress(), entity.getUserId(), vinFastServicePlace, java.lang.Long.valueOf(entity.getCreateAt()));
        }

        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.model.RecentSearch> {
        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
        public final com.vinfast.companion.map.model.RecentSearch createFromParcel(android.os.Parcel parcel) {
            kotlin.jvm.internal.Intrinsics.l(parcel, "parcel");
            return new com.vinfast.companion.map.model.RecentSearch(parcel.readInt() == 0 ? null : java.lang.Integer.valueOf(parcel.readInt()), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readInt() == 0 ? null : com.vinfast.companion.map.model.VinFastServicePlace.CREATOR.createFromParcel(parcel), parcel.readInt() != 0 ? java.lang.Long.valueOf(parcel.readLong()) : null);
        }

        @Override // android.os.Parcelable.Creator
        /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
        public final com.vinfast.companion.map.model.RecentSearch[] newArray(int i) {
            return new com.vinfast.companion.map.model.RecentSearch[i];
        }
    }

    public RecentSearch(java.lang.Integer num, java.lang.String str, java.lang.String str2, java.lang.String str3, java.lang.String str4, com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace, java.lang.Long l) {
        this.id = num;
        this.title = str;
        this.hereId = str2;
        this.address = str3;
        this.userId = str4;
        this.vinFastServicePlace = vinFastServicePlace;
        this.createAt = l;
    }

    public static /* synthetic */ com.vinfast.companion.map.model.RecentSearch c(com.vinfast.companion.map.model.RecentSearch recentSearch, java.lang.Integer num, java.lang.String str, java.lang.String str2, java.lang.String str3, java.lang.String str4, com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace, java.lang.Long l, int i, java.lang.Object obj) {
        if ((i & 1) != 0) {
            num = recentSearch.id;
        }
        if ((i & 2) != 0) {
            str = recentSearch.title;
        }
        if ((i & 4) != 0) {
            str2 = recentSearch.hereId;
        }
        if ((i & 8) != 0) {
            str3 = recentSearch.address;
        }
        if ((i & 16) != 0) {
            str4 = recentSearch.userId;
        }
        if ((i & 32) != 0) {
            vinFastServicePlace = recentSearch.vinFastServicePlace;
        }
        if ((i & 64) != 0) {
            l = recentSearch.createAt;
        }
        com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace2 = vinFastServicePlace;
        java.lang.Long l2 = l;
        java.lang.String str5 = str4;
        java.lang.String str6 = str2;
        return recentSearch.b(num, str, str6, str3, str5, vinFastServicePlace2, l2);
    }

    public final com.vinfast.companion.map.model.RecentSearch b(java.lang.Integer id, java.lang.String title, java.lang.String hereId, java.lang.String address, java.lang.String userId, com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace, java.lang.Long createAt) {
        return new com.vinfast.companion.map.model.RecentSearch(id, title, hereId, address, userId, vinFastServicePlace, createAt);
    }

    /* JADX INFO: renamed from: d, reason: from getter */
    public final java.lang.String getAddress() {
        return this.address;
    }

    @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.model.RecentSearch)) {
            return false;
        }
        com.vinfast.companion.map.model.RecentSearch recentSearch = (com.vinfast.companion.map.model.RecentSearch) other;
        return kotlin.jvm.internal.Intrinsics.g(this.id, recentSearch.id) && kotlin.jvm.internal.Intrinsics.g(this.title, recentSearch.title) && kotlin.jvm.internal.Intrinsics.g(this.hereId, recentSearch.hereId) && kotlin.jvm.internal.Intrinsics.g(this.address, recentSearch.address) && kotlin.jvm.internal.Intrinsics.g(this.userId, recentSearch.userId) && kotlin.jvm.internal.Intrinsics.g(this.vinFastServicePlace, recentSearch.vinFastServicePlace) && kotlin.jvm.internal.Intrinsics.g(this.createAt, recentSearch.createAt);
    }

    /* JADX INFO: renamed from: f, reason: from getter */
    public final java.lang.Long getCreateAt() {
        return this.createAt;
    }

    /* JADX INFO: renamed from: g, reason: from getter */
    public final java.lang.String getHereId() {
        return this.hereId;
    }

    /* JADX INFO: renamed from: h, reason: from getter */
    public final java.lang.Integer getId() {
        return this.id;
    }

    public int hashCode() {
        java.lang.Integer num = this.id;
        int iHashCode = (num == null ? 0 : num.hashCode()) * 31;
        java.lang.String str = this.title;
        int iHashCode2 = (iHashCode + (str == null ? 0 : str.hashCode())) * 31;
        java.lang.String str2 = this.hereId;
        int iHashCode3 = (iHashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
        java.lang.String str3 = this.address;
        int iHashCode4 = (iHashCode3 + (str3 == null ? 0 : str3.hashCode())) * 31;
        java.lang.String str4 = this.userId;
        int iHashCode5 = (iHashCode4 + (str4 == null ? 0 : str4.hashCode())) * 31;
        com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace = this.vinFastServicePlace;
        int iHashCode6 = (iHashCode5 + (vinFastServicePlace == null ? 0 : vinFastServicePlace.hashCode())) * 31;
        java.lang.Long l = this.createAt;
        return iHashCode6 + (l != null ? l.hashCode() : 0);
    }

    /* JADX INFO: renamed from: j, reason: from getter */
    public final java.lang.String getTitle() {
        return this.title;
    }

    /* JADX INFO: renamed from: k, reason: from getter */
    public final java.lang.String getUserId() {
        return this.userId;
    }

    /* JADX INFO: renamed from: l, reason: from getter */
    public final com.vinfast.companion.map.model.VinFastServicePlace getVinFastServicePlace() {
        return this.vinFastServicePlace;
    }

    public java.lang.String toString() {
        return "RecentSearch(id=" + this.id + ", title=" + this.title + ", hereId=" + this.hereId + ", address=" + this.address + ", userId=" + this.userId + ", vinFastServicePlace=" + this.vinFastServicePlace + ", createAt=" + this.createAt + ")";
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(android.os.Parcel dest, int flags) {
        kotlin.jvm.internal.Intrinsics.l(dest, "dest");
        java.lang.Integer num = this.id;
        if (num == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            dest.writeInt(num.intValue());
        }
        dest.writeString(this.title);
        dest.writeString(this.hereId);
        dest.writeString(this.address);
        dest.writeString(this.userId);
        com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace = this.vinFastServicePlace;
        if (vinFastServicePlace == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            vinFastServicePlace.writeToParcel(dest, flags);
        }
        java.lang.Long l = this.createAt;
        if (l == null) {
            dest.writeInt(0);
        } else {
            dest.writeInt(1);
            dest.writeLong(l.longValue());
        }
    }

    public /* synthetic */ RecentSearch(java.lang.Integer num, java.lang.String str, java.lang.String str2, java.lang.String str3, java.lang.String str4, com.vinfast.companion.map.model.VinFastServicePlace vinFastServicePlace, java.lang.Long l, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) {
        this((i & 1) != 0 ? null : num, (i & 2) != 0 ? null : str, (i & 4) != 0 ? null : str2, (i & 8) != 0 ? null : str3, (i & 16) != 0 ? null : str4, (i & 32) != 0 ? null : vinFastServicePlace, (i & 64) != 0 ? null : l);
    }
}
