Class PoiCategory

    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<PoiCategory> CREATOR
    • Method Detail

      • getCode

        @NonNull
        public final java.lang.String getCode()
        Returns unique code of the category
      • getName

        @NonNull
        public final java.lang.String getName()
        Returns the category name appropriate for display to the user
      • getNameAsI18n

        @NonNull
        public I18nString getNameAsI18n()
        Returns the category name appropriate for display to the user with different value depending on the language
      • getUnselectedIconUrl

        @NonNull
        public final URL getUnselectedIconUrl()
      • getSelectedIconUrl

        @NonNull
        public final URL getSelectedIconUrl()
      • isPublic

        public final boolean isPublic()
        Returns whether the category is public or not
        Returns:
        true if the category is public, otherwise not
      • getUnselectedIconBase64

        public java.lang.String getUnselectedIconBase64()
      • getSelectedIconBase64

        public java.lang.String getSelectedIconBase64()
      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: MapperInterface
        Method to transform object into Map
        Specified by:
        toMap in interface MapperInterface
        Returns:
        Map with the information of the object mapped
      • fromMap

        public static PoiCategory fromMap​(java.util.Map<java.lang.String,​java.lang.Object> map)
                                   throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Resource
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Resource
      • describeContents

        public final int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public final void writeToParcel​(android.os.Parcel dest,
                                        int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable