Class SeriesGamesRequest
- java.lang.Object
-
- com.treescrub.spedran.ResourceCollectionRequest<Game>
-
- com.treescrub.spedran.requests.builders.series.SeriesGamesRequest
-
public class SeriesGamesRequest extends ResourceCollectionRequest<Game>
-
-
Constructor Summary
Constructors Constructor Description SeriesGamesRequest(Series series)SeriesGamesRequest(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SeriesGamesRequestabbreviation(String abbreviation)Search for an exact game abbreviation.SeriesGamesRequestasBulk()SeriesGamesRequestdeveloper(Developer developer)Restricts the results to games with the givenDeveloper.SeriesGamesRequestdeveloper(String id)Restricts the results to games with the givenDeveloper.SeriesGamesRequestengine(Engine engine)Restricts the results to games with the givenEngine.SeriesGamesRequestengine(String id)Restricts the results to games with the givenEngine.SeriesGamesRequestgameType(Gametype gametype)Restricts the results to games with the givenGametype.SeriesGamesRequestgameType(String id)Restricts the results to games with the givenGametype.SeriesGamesRequestgenre(Genre genre)Restricts the results to games with the givenGenre.SeriesGamesRequestgenre(String id)Restricts the results to games with the givenGenre.SeriesGamesRequestmoderator(User user)Restricts the results to games where the givenUseris a moderator.SeriesGamesRequestmoderator(String id)Restricts the results to games where the givenUseris a moderator.SeriesGamesRequestname(String name)Use a fuzzy search to filter game names and abbreviations.SeriesGamesRequestplatform(Platform platform)Restricts the results to games with the givenPlatform.SeriesGamesRequestplatform(String id)Restricts the results to games with the givenPlatform.SeriesGamesRequestpublisher(Publisher publisher)Restricts the results to games with the givenPublisher.SeriesGamesRequestpublisher(String id)Restricts the results to games with the givenPublisher.SeriesGamesRequestregion(Region region)Restricts the results to games with the givenRegion.SeriesGamesRequestregion(String id)Restricts the results to games with the givenRegion.SeriesGamesRequestreleaseYear(int year)Restricts the results to games with the given release year.SeriesGamesRequestsortByAbbreviation()Sorts the results alphanumerically by the abbreviation of the games.SeriesGamesRequestsortByCreationDate()Sorts the results by the creation date of the games on SRC.SeriesGamesRequestsortByInternationalName()Sorts the results alphanumerically by the international name of the games.SeriesGamesRequestsortByJapaneseName()Sorts the results alphanumerically by the Japanese name of the games.SeriesGamesRequestsortByNameSimilarity()Sorts the results by similarity whenGamesRequest.name(String)is set.SeriesGamesRequestsortByReleaseDate()Sorts the results by the release date of the games.SeriesGamesRequestsortDirection(SortDirection direction)Sets the direction (ascending or descending) of the sorting.-
Methods inherited from class com.treescrub.spedran.ResourceCollectionRequest
complete
-
-
-
-
Method Detail
-
name
public SeriesGamesRequest name(String name)
Use a fuzzy search to filter game names and abbreviations.- Parameters:
name- theStringto search for- Returns:
- this
GamesRequestbuilder
-
abbreviation
public SeriesGamesRequest abbreviation(String abbreviation)
Search for an exact game abbreviation.- Parameters:
abbreviation- the abbreviation to search for- Returns:
- this
GamesRequestbuilder
-
releaseYear
public SeriesGamesRequest releaseYear(int year)
Restricts the results to games with the given release year.- Parameters:
year- the year a game was released- Returns:
- this
GamesRequestbuilder
-
gameType
public SeriesGamesRequest gameType(String id)
Restricts the results to games with the givenGametype.- Parameters:
id- the gametype ID- Returns:
- this
GamesRequestbuilder
-
gameType
public SeriesGamesRequest gameType(Gametype gametype)
Restricts the results to games with the givenGametype.- Parameters:
gametype- the gametype- Returns:
- this
GamesRequestbuilder
-
platform
public SeriesGamesRequest platform(String id)
Restricts the results to games with the givenPlatform.- Parameters:
id- the platform ID- Returns:
- this
GamesRequestbuilder
-
platform
public SeriesGamesRequest platform(Platform platform)
Restricts the results to games with the givenPlatform.- Parameters:
platform- the platform- Returns:
- this
GamesRequestbuilder
-
region
public SeriesGamesRequest region(String id)
Restricts the results to games with the givenRegion.- Parameters:
id- the region ID- Returns:
- this
GamesRequestbuilder
-
region
public SeriesGamesRequest region(Region region)
Restricts the results to games with the givenRegion.- Parameters:
region- the region- Returns:
- this
GamesRequestbuilder
-
genre
public SeriesGamesRequest genre(String id)
Restricts the results to games with the givenGenre.- Parameters:
id- the genre ID- Returns:
- this
GamesRequestbuilder
-
genre
public SeriesGamesRequest genre(Genre genre)
Restricts the results to games with the givenGenre.- Parameters:
genre- the genre- Returns:
- this
GamesRequestbuilder
-
engine
public SeriesGamesRequest engine(String id)
Restricts the results to games with the givenEngine.- Parameters:
id- the engine ID- Returns:
- this
GamesRequestbuilder
-
engine
public SeriesGamesRequest engine(Engine engine)
Restricts the results to games with the givenEngine.- Parameters:
engine- the engine- Returns:
- this
GamesRequestbuilder
-
developer
public SeriesGamesRequest developer(String id)
Restricts the results to games with the givenDeveloper.- Parameters:
id- the developer ID- Returns:
- this
GamesRequestbuilder
-
developer
public SeriesGamesRequest developer(Developer developer)
Restricts the results to games with the givenDeveloper.- Parameters:
developer- the developer- Returns:
- this
GamesRequestbuilder
-
publisher
public SeriesGamesRequest publisher(String id)
Restricts the results to games with the givenPublisher.- Parameters:
id- the publisher ID- Returns:
- this
GamesRequestbuilder
-
publisher
public SeriesGamesRequest publisher(Publisher publisher)
Restricts the results to games with the givenPublisher.- Parameters:
publisher- the publisher- Returns:
- this
GamesRequestbuilder
-
moderator
public SeriesGamesRequest moderator(String id)
Restricts the results to games where the givenUseris a moderator.- Parameters:
id- the user ID- Returns:
- this
GamesRequestbuilder
-
moderator
public SeriesGamesRequest moderator(User user)
Restricts the results to games where the givenUseris a moderator.- Parameters:
user- the user- Returns:
- this
GamesRequestbuilder
-
asBulk
public SeriesGamesRequest asBulk()
-
sortByInternationalName
public SeriesGamesRequest sortByInternationalName()
Sorts the results alphanumerically by the international name of the games.- Returns:
- this
GamesRequestbuilder
-
sortByJapaneseName
public SeriesGamesRequest sortByJapaneseName()
Sorts the results alphanumerically by the Japanese name of the games.- Returns:
- this
GamesRequestbuilder
-
sortByAbbreviation
public SeriesGamesRequest sortByAbbreviation()
Sorts the results alphanumerically by the abbreviation of the games.- Returns:
- this
GamesRequestbuilder
-
sortByReleaseDate
public SeriesGamesRequest sortByReleaseDate()
Sorts the results by the release date of the games.- Returns:
- this
GamesRequestbuilder
-
sortByCreationDate
public SeriesGamesRequest sortByCreationDate()
Sorts the results by the creation date of the games on SRC.- Returns:
- this
GamesRequestbuilder
-
sortByNameSimilarity
public SeriesGamesRequest sortByNameSimilarity()
Sorts the results by similarity whenGamesRequest.name(String)is set.- Returns:
- this
GamesRequestbuilder
-
sortDirection
public SeriesGamesRequest sortDirection(SortDirection direction)
Sets the direction (ascending or descending) of the sorting.- Parameters:
direction- the sort direction- Returns:
- this
GamesRequestbuilder
-
-