Package com.treescrub.spedran.data
Class Series
- java.lang.Object
-
- com.treescrub.spedran.data.Resource
-
- com.treescrub.spedran.data.IdentifiableResource
-
- com.treescrub.spedran.data.Series
-
public class Series extends IdentifiableResource
A collection of multiple games as part of one franchise.
For example: Super Mario, Sonic, Doom, Halo, and so on.
The special series namedN/Ais a placeholder when a game is not part of a series.
This class is immutable and thread-safe.
-
-
Constructor Summary
Constructors Constructor Description Series(kong.unirest.json.JSONObject data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAbbreviation()Gets the abbreviation for this series as used on SRC.GameAssetsgetAssets()Gets theGameAssetsfor this series.Optional<Instant>getCreationTime()Gets the time that this series was created on SRC.Optional<String>getDiscord()Gets the Discord invite link for the Discord server dedicated to this series.SeriesGamesRequestgetGames()Gets a newSeriesGamesRequestbuilder object to request games that are part of this series.Map<String,ModeratorType>getModerators()Gets aMapof user IDs as keys and moderator types as values.NamesgetNames()Gets theNamesfor this series.StringgetWeblink()Gets the link to this series on SRC.StringtoString()-
Methods inherited from class com.treescrub.spedran.data.IdentifiableResource
equals, getId, hashCode
-
-
-
-
Method Detail
-
getGames
public SeriesGamesRequest getGames()
Gets a newSeriesGamesRequestbuilder object to request games that are part of this series.- Returns:
- a
SeriesGamesRequestbuilder
-
getNames
public Names getNames()
Gets theNamesfor this series.- Returns:
- a
Namesfor the series name
-
getAbbreviation
public String getAbbreviation()
Gets the abbreviation for this series as used on SRC.- Returns:
- the abbreviation
-
getWeblink
public String getWeblink()
Gets the link to this series on SRC.- Returns:
- the link
-
getDiscord
public Optional<String> getDiscord()
Gets the Discord invite link for the Discord server dedicated to this series.- Returns:
- an
Optionalwith the invite link
-
getModerators
public Map<String,ModeratorType> getModerators()
Gets aMapof user IDs as keys and moderator types as values.- Returns:
- an unmodifiable
Mapof user IDs to moderator types - See Also:
User,Spedran.getUser(String)
-
getCreationTime
public Optional<Instant> getCreationTime()
Gets the time that this series was created on SRC.
-
getAssets
public GameAssets getAssets()
Gets theGameAssetsfor this series.- Returns:
- a
GameAssetsobject
-
-