Package org.dajlab.bricksetapi.v3.vo
Class SetParameters
- java.lang.Object
-
- org.dajlab.bricksetapi.v3.vo.SetParameters
-
public class SetParameters extends Object
-
-
Constructor Summary
Constructors Constructor Description SetParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetParametersaddSetNumber(String setNumber)Full set number, in the format {number}-{variant}, e.g. 6876-1SetParametersaddSubtheme(String subtheme)SetParametersaddTheme(String theme)SetParametersaddYear(String year)BooleangetExtendedData()OrderByEnumgetOrderBy()protected BooleangetOwned()IntegergetPageNumber()IntegergetPageSize()StringgetQuery()IntegergetSetId()List<String>getSetNumber()List<String>getSubtheme()StringgetTag()List<String>getTheme()CalendargetUpdatedSince()protected BooleangetWanted()List<String>getYear()SetParametersonlyOwned()Retrieve a user's owned setsSetParametersonlyWanted()Retrieve a user's wanted sets.voidsetExtendedData(Boolean extendedData)Set to true to retrieve the full data set, including tags, description and notes.SetParameterssetOrderBy(OrderByEnum orderBy)Sort orderprotected voidsetOwned(Boolean owned)Set to true to retrieve a user's owned setsSetParameterssetPageNumber(Integer pageNumber)Specify which page of records to retrieve, use in conjunction with pageSize (default: 1)SetParameterssetPageSize(Integer pageSize)Specify how many records to retrieve (default: 20, max: 500)SetParameterssetQuery(String query)Search term: searches set number, name, theme, subtheme, barcodeSetParameterssetSetId(Integer setId)Internal SetID.voidsetTag(String tag)SetParameterssetUpdatedSince(Calendar updatedSince)protected voidsetWanted(Boolean wanted)Set to true to retrieve a user's wanted setsSetParameterswithExtendedData()Retrieve the full data set, including tags, description and notes.
-
-
-
Method Detail
-
onlyOwned
public final SetParameters onlyOwned()
Retrieve a user's owned sets- Returns:
- this
-
onlyWanted
public final SetParameters onlyWanted()
Retrieve a user's wanted sets.- Returns:
- this
-
setSetId
public final SetParameters setSetId(Integer setId)
Internal SetID.- Parameters:
setId- the setId to set- Returns:
- this
-
setQuery
public final SetParameters setQuery(String query)
Search term: searches set number, name, theme, subtheme, barcode- Parameters:
query- the query to set- Returns:
- this
-
addTheme
public final SetParameters addTheme(String theme)
- Parameters:
theme- the theme to set- Returns:
- this
-
addSubtheme
public final SetParameters addSubtheme(String subtheme)
- Parameters:
subtheme- the subtheme to set- Returns:
- this
-
addSetNumber
public final SetParameters addSetNumber(String setNumber)
Full set number, in the format {number}-{variant}, e.g. 6876-1- Parameters:
setNumber- the setNumber to set- Returns:
- this
-
addYear
public final SetParameters addYear(String year)
- Parameters:
year- the year to set- Returns:
- this
-
setOwned
protected final void setOwned(Boolean owned)
Set to true to retrieve a user's owned sets- Parameters:
owned- the owned to set
-
setWanted
protected final void setWanted(Boolean wanted)
Set to true to retrieve a user's wanted sets- Parameters:
wanted- the wanted to set
-
setUpdatedSince
public final SetParameters setUpdatedSince(Calendar updatedSince)
- Parameters:
updatedSince- the updatedSince to set- Returns:
- this
-
setOrderBy
public final SetParameters setOrderBy(OrderByEnum orderBy)
Sort order- Parameters:
orderBy- the orderBy to set- Returns:
- this
-
setPageSize
public final SetParameters setPageSize(Integer pageSize)
Specify how many records to retrieve (default: 20, max: 500)- Parameters:
pageSize- the pageSize to set- Returns:
- this
-
setPageNumber
public final SetParameters setPageNumber(Integer pageNumber)
Specify which page of records to retrieve, use in conjunction with pageSize (default: 1)- Parameters:
pageNumber- the pageNumber to set- Returns:
- this
-
withExtendedData
public SetParameters withExtendedData()
Retrieve the full data set, including tags, description and notes.- Returns:
- this
-
getSetId
public final Integer getSetId()
- Returns:
- the setId
-
getQuery
public final String getQuery()
- Returns:
- the query
-
getOwned
protected final Boolean getOwned()
- Returns:
- the owned
-
getWanted
protected final Boolean getWanted()
- Returns:
- the wanted
-
getUpdatedSince
public final Calendar getUpdatedSince()
- Returns:
- the updatedSince
-
getOrderBy
public final OrderByEnum getOrderBy()
- Returns:
- the orderBy
-
getPageSize
public final Integer getPageSize()
- Returns:
- the pageSize
-
getPageNumber
public final Integer getPageNumber()
- Returns:
- the pageNumber
-
getTag
public String getTag()
- Returns:
- the tag
-
setTag
public void setTag(String tag)
- Parameters:
tag- the tag to set
-
getExtendedData
public Boolean getExtendedData()
- Returns:
- the extendedData
-
setExtendedData
public void setExtendedData(Boolean extendedData)
Set to true to retrieve the full data set, including tags, description and notes.- Parameters:
extendedData- the extendedData to set
-
-