package com.vinfast.companion.map.model;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
@kotlin.Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0006\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0016\b\u0086\b\u0018\u0000 %2\u00020\u0001:\u00011Bm\u0012\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\u0002\u0012\u0006\u0010\b\u001a\u00020\u0002\u0012\u0006\u0010\n\u001a\u00020\t\u0012\u0006\u0010\u000b\u001a\u00020\t\u0012\b\u0010\f\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\r\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u000f\u001a\u0004\u0018\u00010\u000e\u0012\b\u0010\u0010\u001a\u0004\u0018\u00010\u0002¢\u0006\u0004\b\u0011\u0010\u0012J\u000f\u0010\u0014\u001a\u0004\u0018\u00010\u0013¢\u0006\u0004\b\u0014\u0010\u0015J\u0010\u0010\u0016\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\u0016\u0010\u0017J\u0010\u0010\u0019\u001a\u00020\u0018HÖ\u0001¢\u0006\u0004\b\u0019\u0010\u001aJ\u001a\u0010\u001d\u001a\u00020\u001c2\b\u0010\u001b\u001a\u0004\u0018\u00010\u0001HÖ\u0003¢\u0006\u0004\b\u001d\u0010\u001eR\u0019\u0010\u0003\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u0014\u0010\u001f\u001a\u0004\b \u0010\u0017R\u0017\u0010\u0005\u001a\u00020\u00048\u0006¢\u0006\f\n\u0004\b \u0010!\u001a\u0004\b\"\u0010#R\u0019\u0010\u0006\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\"\u0010\u001f\u001a\u0004\b$\u0010\u0017R\u0019\u0010\u0007\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b$\u0010\u001f\u001a\u0004\b%\u0010\u0017R\u0017\u0010\b\u001a\u00020\u00028\u0006¢\u0006\f\n\u0004\b&\u0010\u001f\u001a\u0004\b&\u0010\u0017R\u0017\u0010\n\u001a\u00020\t8\u0006¢\u0006\f\n\u0004\b'\u0010(\u001a\u0004\b'\u0010)R\u0017\u0010\u000b\u001a\u00020\t8\u0006¢\u0006\f\n\u0004\b*\u0010(\u001a\u0004\b*\u0010)R\u0019\u0010\f\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b+\u0010\u001f\u001a\u0004\b,\u0010\u0017R\u0019\u0010\r\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b-\u0010\u001f\u001a\u0004\b.\u0010\u0017R\u0019\u0010\u000f\u001a\u0004\u0018\u00010\u000e8\u0006¢\u0006\f\n\u0004\b,\u0010/\u001a\u0004\b-\u00100R\u0019\u0010\u0010\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b.\u0010\u001f\u001a\u0004\b+\u0010\u0017¨\u00062"}, d2 = {"Lcom/vinfast/companion/map/model/FavoritePlace;", "", "", "address", "Lcom/vinfast/companion/map/model/FavoriteType;", "favoriteType", "hereId", "vinfastId", "id", "", "lat", "lng", "title", "userId", "Lcom/vinfast/companion/map/model/MapLocationCategory;", "placeCategory", "nickname", "<init>", "(Ljava/lang/String;Lcom/vinfast/companion/map/model/FavoriteType;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;DDLjava/lang/String;Ljava/lang/String;Lcom/vinfast/companion/map/model/MapLocationCategory;Ljava/lang/String;)V", "Lcom/vinfast/companion/map/model/VinFastServicePlace;", "a", "()Lcom/vinfast/companion/map/model/VinFastServicePlace;", "toString", "()Ljava/lang/String;", "", "hashCode", "()I", "other", "", "equals", "(Ljava/lang/Object;)Z", "Ljava/lang/String;", "b", "Lcom/vinfast/companion/map/model/FavoriteType;", "c", "()Lcom/vinfast/companion/map/model/FavoriteType;", "d", "l", "e", "f", "D", "()D", "g", "h", "j", "i", "k", "Lcom/vinfast/companion/map/model/MapLocationCategory;", "()Lcom/vinfast/companion/map/model/MapLocationCategory;", "Companion", "hereSdk_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final /* data */ class FavoritePlace {

    /* JADX INFO: renamed from: l, reason: from kotlin metadata */
    public static final com.vinfast.companion.map.model.FavoritePlace.Companion INSTANCE = new com.vinfast.companion.map.model.FavoritePlace.Companion(null);

    /* JADX INFO: renamed from: a, reason: from kotlin metadata and from toString */
    private final java.lang.String address;

    /* JADX INFO: renamed from: b, reason: from kotlin metadata and from toString */
    private final com.vinfast.companion.map.model.FavoriteType favoriteType;

    /* 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 vinfastId;

    /* JADX INFO: renamed from: e, reason: from kotlin metadata and from toString */
    private final java.lang.String id;

    /* JADX INFO: renamed from: f, reason: from kotlin metadata and from toString */
    private final double lat;

    /* JADX INFO: renamed from: g, reason: from kotlin metadata and from toString */
    private final double lng;

    /* JADX INFO: renamed from: h, reason: from kotlin metadata and from toString */
    private final java.lang.String title;

    /* JADX INFO: renamed from: i, reason: from kotlin metadata and from toString */
    private final java.lang.String userId;

    /* JADX INFO: renamed from: j, reason: from kotlin metadata and from toString */
    private final com.vinfast.companion.map.model.MapLocationCategory placeCategory;

    /* JADX INFO: renamed from: k, reason: from kotlin metadata and from toString */
    private final java.lang.String nickname;

    /* 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\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"Lcom/vinfast/companion/map/model/FavoritePlace$Companion;", "", "<init>", "()V", "Lcom/vinfast/companion/map/api/response/FavoritePlaceDto;", "dto", "Lcom/vinfast/companion/map/model/FavoritePlace;", "a", "(Lcom/vinfast/companion/map/api/response/FavoritePlaceDto;)Lcom/vinfast/companion/map/model/FavoritePlace;", "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.FavoritePlace a(com.vinfast.companion.map.api.response.FavoritePlaceDto dto) {
            kotlin.jvm.internal.Intrinsics.l(dto, "dto");
            java.lang.String address = dto.getAddress();
            com.vinfast.companion.map.model.FavoriteType favoriteTypeA = com.vinfast.companion.map.model.FavoriteType.INSTANCE.a(dto.getFavoriteType());
            java.lang.String hereId = dto.getHereId();
            java.lang.String vinfastId = dto.getVinfastId();
            java.lang.String id = dto.getId();
            java.lang.Double lat = dto.getLat();
            double dDoubleValue = lat != null ? lat.doubleValue() : 0.0d;
            java.lang.Double lng = dto.getLng();
            double dDoubleValue2 = lng != null ? lng.doubleValue() : 0.0d;
            java.lang.String title = dto.getTitle();
            java.lang.String userId = dto.getUserId();
            java.lang.String placeCategory = dto.getPlaceCategory();
            return new com.vinfast.companion.map.model.FavoritePlace(address, favoriteTypeA, hereId, vinfastId, id, dDoubleValue, dDoubleValue2, title, userId, placeCategory != null ? com.vinfast.companion.map.model.MapLocationCategory.valueOf(placeCategory) : null, dto.getNickname());
        }

        private Companion() {
        }
    }

    public FavoritePlace(java.lang.String str, com.vinfast.companion.map.model.FavoriteType favoriteType, java.lang.String str2, java.lang.String str3, java.lang.String str4, double d, double d2, java.lang.String str5, java.lang.String str6, com.vinfast.companion.map.model.MapLocationCategory mapLocationCategory, java.lang.String str7) {
        kotlin.jvm.internal.Intrinsics.l(favoriteType, "favoriteType");
        kotlin.jvm.internal.Intrinsics.l(str4, "id");
        this.address = str;
        this.favoriteType = favoriteType;
        this.hereId = str2;
        this.vinfastId = str3;
        this.id = str4;
        this.lat = d;
        this.lng = d2;
        this.title = str5;
        this.userId = str6;
        this.placeCategory = mapLocationCategory;
        this.nickname = str7;
    }

    public final com.vinfast.companion.map.model.VinFastServicePlace a() {
        if (this.vinfastId == null || this.placeCategory == null) {
            return null;
        }
        return new com.vinfast.companion.map.model.VinFastServicePlace(this.vinfastId, this.placeCategory, this.title, this.address, this.lat, this.lng);
    }

    /* JADX INFO: renamed from: b, reason: from getter */
    public final java.lang.String getAddress() {
        return this.address;
    }

    /* JADX INFO: renamed from: c, reason: from getter */
    public final com.vinfast.companion.map.model.FavoriteType getFavoriteType() {
        return this.favoriteType;
    }

    /* JADX INFO: renamed from: d, reason: from getter */
    public final java.lang.String getHereId() {
        return this.hereId;
    }

    /* JADX INFO: renamed from: e, reason: from getter */
    public final java.lang.String getId() {
        return this.id;
    }

    public boolean equals(java.lang.Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof com.vinfast.companion.map.model.FavoritePlace)) {
            return false;
        }
        com.vinfast.companion.map.model.FavoritePlace favoritePlace = (com.vinfast.companion.map.model.FavoritePlace) other;
        return kotlin.jvm.internal.Intrinsics.g(this.address, favoritePlace.address) && kotlin.jvm.internal.Intrinsics.g(this.favoriteType, favoritePlace.favoriteType) && kotlin.jvm.internal.Intrinsics.g(this.hereId, favoritePlace.hereId) && kotlin.jvm.internal.Intrinsics.g(this.vinfastId, favoritePlace.vinfastId) && kotlin.jvm.internal.Intrinsics.g(this.id, favoritePlace.id) && java.lang.Double.compare(this.lat, favoritePlace.lat) == 0 && java.lang.Double.compare(this.lng, favoritePlace.lng) == 0 && kotlin.jvm.internal.Intrinsics.g(this.title, favoritePlace.title) && kotlin.jvm.internal.Intrinsics.g(this.userId, favoritePlace.userId) && this.placeCategory == favoritePlace.placeCategory && kotlin.jvm.internal.Intrinsics.g(this.nickname, favoritePlace.nickname);
    }

    /* JADX INFO: renamed from: f, reason: from getter */
    public final double getLat() {
        return this.lat;
    }

    /* JADX INFO: renamed from: g, reason: from getter */
    public final double getLng() {
        return this.lng;
    }

    /* JADX INFO: renamed from: h, reason: from getter */
    public final java.lang.String getNickname() {
        return this.nickname;
    }

    public int hashCode() {
        java.lang.String str = this.address;
        int iHashCode = (((str == null ? 0 : str.hashCode()) * 31) + this.favoriteType.hashCode()) * 31;
        java.lang.String str2 = this.hereId;
        int iHashCode2 = (iHashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
        java.lang.String str3 = this.vinfastId;
        int iHashCode3 = (((((((iHashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31) + this.id.hashCode()) * 31) + java.lang.Double.hashCode(this.lat)) * 31) + java.lang.Double.hashCode(this.lng)) * 31;
        java.lang.String str4 = this.title;
        int iHashCode4 = (iHashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
        java.lang.String str5 = this.userId;
        int iHashCode5 = (iHashCode4 + (str5 == null ? 0 : str5.hashCode())) * 31;
        com.vinfast.companion.map.model.MapLocationCategory mapLocationCategory = this.placeCategory;
        int iHashCode6 = (iHashCode5 + (mapLocationCategory == null ? 0 : mapLocationCategory.hashCode())) * 31;
        java.lang.String str6 = this.nickname;
        return iHashCode6 + (str6 != null ? str6.hashCode() : 0);
    }

    /* JADX INFO: renamed from: i, reason: from getter */
    public final com.vinfast.companion.map.model.MapLocationCategory getPlaceCategory() {
        return this.placeCategory;
    }

    /* 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 java.lang.String getVinfastId() {
        return this.vinfastId;
    }

    public java.lang.String toString() {
        return "FavoritePlace(address=" + this.address + ", favoriteType=" + this.favoriteType + ", hereId=" + this.hereId + ", vinfastId=" + this.vinfastId + ", id=" + this.id + ", lat=" + this.lat + ", lng=" + this.lng + ", title=" + this.title + ", userId=" + this.userId + ", placeCategory=" + this.placeCategory + ", nickname=" + this.nickname + ")";
    }
}
