Package es.situm.sdk.model.cartography
Class PoiCategory
- java.lang.Object
-
- es.situm.sdk.model.Resource
-
- es.situm.sdk.model.cartography.PoiCategory
-
- All Implemented Interfaces:
android.os.Parcelable
,Filterable
public class PoiCategory extends Resource implements android.os.Parcelable
Category of Point of Interest.Instances are immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PoiCategory.Builder
Builder to construct aPoiCategory
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<PoiCategory>
CREATOR
static PoiCategory
DEFAULT
-
Fields inherited from class es.situm.sdk.model.Resource
EMPTY_IDENTIFIER, EMPTY_IDENTIFIER_BACKWARDS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
boolean
equals(Object o)
String
getCode()
Returns unique code of the categoryString
getName()
Returns the category name appropriate for display to the userI18nString
getNameAsI18n()
Returns the category name appropriate for display to the user with different value depending on the languageURL
getSelectedIconUrl()
URL
getUnselectedIconUrl()
int
hashCode()
boolean
isPublic()
Returns whether the category is public or notString
toString()
void
writeToParcel(android.os.Parcel dest, int flags)
-
Methods inherited from class es.situm.sdk.model.Resource
getCreatedAt, getCustomFields, getIdentifier, getUpdatedAt
-
-
-
-
Field Detail
-
DEFAULT
public static final PoiCategory DEFAULT
-
CREATOR
public static final android.os.Parcelable.Creator<PoiCategory> CREATOR
-
-
Method Detail
-
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
-
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
-
describeContents
public final int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public final void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
-