Class GetInventoryRequest
java.lang.Object
com.amilesend.discogs.model.PaginatedRequestBase
com.amilesend.discogs.model.marketplace.GetInventoryRequest
- All Implemented Interfaces:
QueryParameterBasedRequest
The request to retrieve the paginated list of inventory for a seller
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGetInventoryRequest.GetInventoryRequestBuilder<C extends GetInventoryRequest, B extends GetInventoryRequest.GetInventoryRequestBuilder<C,B>> static enumDefines the supported attributes to sort on for requests.Nested classes/interfaces inherited from class PaginatedRequestBase
PaginatedRequestBase.PaginatedRequestBaseBuilder<C,B> -
Method Summary
Modifier and TypeMethodDescriptionstatic GetInventoryRequest.GetInventoryRequestBuilder<?, ?> builder()booleangetSort()The attribute to sort on (optional).The sort order (optional).The items status (e.g., "for sale") (optional).The seller's 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
-
getUsername
The seller's username (required). -
getStatus
The items status (e.g., "for sale") (optional). -
getSort
The attribute to sort on (optional). -
getSortOrder
The sort order (optional). -
equals
- Overrides:
equalsin classPaginatedRequestBase
-
hashCode
public int hashCode()- Overrides:
hashCodein classPaginatedRequestBase
-
toString
- Overrides:
toStringin classPaginatedRequestBase
-