public class SetsServiceImpl extends AbstractBricksetService
| Constructor and Description |
|---|
SetsServiceImpl(String apiKey)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<AdditionalImages> |
getAdditionalImages(int setId)
Get a list of URLs of additional set images for the specified set.
|
List<Instruction> |
getInstructions(int setId)
Get a list of instructions for the specified set.
|
List<Reviews> |
getReviews(int setId)
Get user reviews for the specified set.
|
List<Set> |
getSets(SetParameters params)
Retrieve a list of sets, or more information about a particular one.
|
List<Set> |
getSets(SetParameters params,
String userHash)
Retrieve a list of sets, or more information about a particular one.
|
List<Subtheme> |
getSubthemes(String theme)
Get a list of subthemes for a given theme, with the total number of sets in
each.
|
List<Theme> |
getThemes()
Get a list of themes, with the total number of sets in each.
|
List<Year> |
getYears(String theme)
Get a list of years for a given theme, with the total number of sets in each.
|
returnJsonResponse, returnJsonResponsepublic SetsServiceImpl(String apiKey)
apiKey - api keypublic List<Set> getSets(SetParameters params) throws BricksetException
params - query paratemersBricksetException - if status is not successpublic List<Set> getSets(SetParameters params, String userHash) throws BricksetException
params - query paratemersuserHash - userhashBricksetException - if status is not successpublic List<AdditionalImages> getAdditionalImages(int setId) throws BricksetException
setId - the set id.BricksetException - if status is not successpublic List<Instruction> getInstructions(int setId) throws BricksetException
setId - a set id.BricksetException - if status is not successpublic List<Reviews> getReviews(int setId) throws BricksetException
setId - a set id.BricksetException - if status is not successBricksetException - if status is not successpublic List<Theme> getThemes() throws BricksetException
BricksetException - if status is not successpublic List<Subtheme> getSubthemes(String theme) throws BricksetException
theme - a themeBricksetException - if status is not successpublic List<Year> getYears(String theme) throws BricksetException
theme - Theme. An empty string get totals for all sets.BricksetException - if status is not successCopyright © 2020. All rights reserved.