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 classPoiCategory.BuilderBuilder to construct aPoiCategory
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<PoiCategory>CREATORstatic PoiCategoryDEFAULT-
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 intdescribeContents()booleanequals(Object o)StringgetCode()Returns unique code of the categoryStringgetName()Returns the category name appropriate for display to the userI18nStringgetNameAsI18n()Returns the category name appropriate for display to the user with different value depending on the languageURLgetSelectedIconUrl()URLgetUnselectedIconUrl()inthashCode()booleanisPublic()Returns whether the category is public or notStringtoString()voidwriteToParcel(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:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public final void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
-