Class GetCollectionItemsByFolderRequest
java.lang.Object
com.amilesend.discogs.model.PaginatedRequestBase
com.amilesend.discogs.model.collection.GetCollectionItemsByFolderRequest
- All Implemented Interfaces:
QueryParameterBasedRequest
The request to retrieve a paginated list of collection items by folder.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGetCollectionItemsByFolderRequest.GetCollectionItemsByFolderRequestBuilder<C extends GetCollectionItemsByFolderRequest, B extends GetCollectionItemsByFolderRequest.GetCollectionItemsByFolderRequestBuilder<C,B>> static enumDescribes the attributes to sort on.Nested classes/interfaces inherited from class PaginatedRequestBase
PaginatedRequestBase.PaginatedRequestBaseBuilder<C,B> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanlongThe folder identifier (required).getSort()The attribute to sort on (optional).The sort order (optional).The username (required).inthashCode()okhttp3.HttpUrl.BuilderpopulateQueryParameters(okhttp3.HttpUrl.Builder urlBuilder) Helper method to populate query parameters of aHttpUrl.Builder.toString()Methods inherited from class PaginatedRequestBase
getPage, getPerPage
-
Method Details
-
populateQueryParameters
public okhttp3.HttpUrl.Builder populateQueryParameters( okhttp3.HttpUrl.Builder urlBuilder) Description copied from interface:QueryParameterBasedRequestHelper method to populate query parameters of aHttpUrl.Builder.- Specified by:
populateQueryParametersin interfaceQueryParameterBasedRequest- Overrides:
populateQueryParametersin classPaginatedRequestBase- Parameters:
urlBuilder- the HttpUrl.Builder instance- Returns:
- the HttpUrl.Builder instance
-
builder
public static GetCollectionItemsByFolderRequest.GetCollectionItemsByFolderRequestBuilder<?,?> builder() -
getUsername
The username (required). -
getFolderId
public long getFolderId()The folder identifier (required). -
getSort
The attribute to sort on (optional).- See Also:
-
getSortOrder
-
equals
- Overrides:
equalsin classPaginatedRequestBase
-
hashCode
public int hashCode()- Overrides:
hashCodein classPaginatedRequestBase
-
toString
- Overrides:
toStringin classPaginatedRequestBase
-