Class PoiCategory

java.lang.Object
es.situm.sdk.model.Resource
es.situm.sdk.model.cartography.PoiCategory
All Implemented Interfaces:
android.os.Parcelable, MapperInterface, Filterable

public class PoiCategory extends Resource implements android.os.Parcelable, MapperInterface
Category of Point of Interest.

Instances are immutable.

  • Field Details

    • DEFAULT

      public static final PoiCategory DEFAULT
    • CREATOR

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

    • getCode

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

      @NonNull public final String getName()
      Returns the category name appropriate for display to the user
    • getLocalizedName

      @NonNull public String getLocalizedName(String langCode)
      Returns the name of the POI category in the language specified. If there is no name for that language it will return the default value
      Parameters:
      langCode - Language code in ISO 639. It must have two digits, for example "es", "en"
      Returns:
      Localized name
    • 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 String getUnselectedIconBase64()
    • getSelectedIconBase64

      public String getSelectedIconBase64()
    • toMap

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

      public static PoiCategory fromMap(Map<String,Object> map) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Resource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Resource
    • toString

      public 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