Package com.treescrub.spedran.data
Class Category
- java.lang.Object
-
- com.treescrub.spedran.data.Resource
-
- com.treescrub.spedran.data.IdentifiableResource
-
- com.treescrub.spedran.data.IdentifiableNamedResource
-
- com.treescrub.spedran.data.Category
-
public class Category extends IdentifiableNamedResource
A category of runs which has its own specific rules.
Common category names areAny%,100%, and so on.
This class is immutable and thread-safe.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CategoryPlayersgetPlayers()Gets the player count restriction for this category.CategoryRecordsRequestgetRecords()Gets a newCategoryRecordsRequestbuilder object to request records for this category.StringgetRules()Gets the moderator defined rules text for this category.RunsRequestgetRuns()Gets a newRunsRequestbuilder object to request all runs in this category.CategoryVariablesRequestgetVariables()Gets a newCategoryVariablesRequestbuilder object to request variables for this category.StringgetWeblink()Gets the link to this category on SRC.booleanisMiscellaneous()Is this category considered a miscellaneous category.booleanisPerLevel()Iftrue, this category has specific levels, otherwise this category does not have levels.StringtoString()-
Methods inherited from class com.treescrub.spedran.data.IdentifiableNamedResource
getName
-
Methods inherited from class com.treescrub.spedran.data.IdentifiableResource
equals, getId, hashCode
-
-
-
-
Method Detail
-
getRuns
public RunsRequest getRuns()
Gets a newRunsRequestbuilder object to request all runs in this category.- Returns:
- a
RunsRequestbuilder
-
getRecords
public CategoryRecordsRequest getRecords()
Gets a newCategoryRecordsRequestbuilder object to request records for this category.- Returns:
- a
CategoryRecordsRequestbuilder
-
getVariables
public CategoryVariablesRequest getVariables()
Gets a newCategoryVariablesRequestbuilder object to request variables for this category.- Returns:
- a
CategoryVariablesRequestbuilder
-
getWeblink
public String getWeblink()
Gets the link to this category on SRC.
SRC API currently returns a link that does not work!- Returns:
- a link to the category on SRC
-
isPerLevel
public boolean isPerLevel()
Iftrue, this category has specific levels, otherwise this category does not have levels.- Returns:
trueif this category is per level, otherwisefalse
-
getRules
public String getRules()
Gets the moderator defined rules text for this category.- Returns:
- rules text
-
getPlayers
public CategoryPlayers getPlayers()
Gets the player count restriction for this category.- Returns:
- a
CategoryPlayers
-
isMiscellaneous
public boolean isMiscellaneous()
Is this category considered a miscellaneous category.- Returns:
- is miscellaneous
-
-