-
- All Implemented Interfaces:
-
android.os.Parcelable
,com.foursquare.api.types.FoursquareType
public final class Category implements FoursquareType, Parcelable
Data class of a category associated to a Venue.
Contains information like name, icon and subcategories.
-
-
Constructor Summary
Constructors Constructor Description Category(String id, String name, String shortName, String pluralName, Photo photo, Boolean primary)
Secondary constructor without specifying categories Category(String id, String name, String shortName, String pluralName, Photo icon, Boolean isPrimary, List<Category> categories)
-
Method Summary
Modifier and Type Method Description final Photo
getImage()
final Boolean
getHasChildren()
final String
getId()
The category's id. final String
getName()
Simple name of the category. final String
getShortName()
E.g. final String
getPluralName()
E.g. final Boolean
getIsPrimary()
When in the context of a venue, tells us if this is the primary category or not. final List<Category>
getCategories()
Categories can be nested within one another too. -
-
Method Detail
-
getHasChildren
final Boolean getHasChildren()
-
getShortName
final String getShortName()
E.g. SOUTHERN / SOUL instead of SOUTHERN OR SOUL FOOD RESTAURANT.
-
getPluralName
final String getPluralName()
E.g. Bars instead of Bar.
-
getIsPrimary
final Boolean getIsPrimary()
When in the context of a venue, tells us if this is the primary category or not.
-
getCategories
final List<Category> getCategories()
Categories can be nested within one another too.
-
-
-
-