Class HistoryRequestImpl
java.lang.Object
de.chojo.universalis.rest.requests.RequestBuilder<HistoryResponse>
de.chojo.universalis.rest.routes.requests.HistoryRequestImpl
- All Implemented Interfaces:
Request<HistoryResponse>,DataCenterScope<RegionHistoryRequest>,ItemScope<HistoryRequest>,LimitedRequest<HistoryRequest>,RegionScope<RegionHistoryRequest>,WorldScope<RegionHistoryRequest>,BlankHistoryRequest,RegionHistoryRequest,HistoryRequest
Implementation for a
HistoryRequest-
Field Summary
Fields inherited from class de.chojo.universalis.rest.requests.RequestBuilder
rest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondataCenter(DataCenter dataCenter) Data center scope of the request.historyTime(Duration duration) The amount of time before now to take entries within the history data returned byMarketBoardResponse.recentHistory().Items to lookupitems(Collection<Item> items) Items to lookupItem ids to lookupitemsIds(Collection<Integer> itemIds) Item ids to lookuplimit(int limit) Set the limit of retrieved entries for this requestRegion scope of the request.The amount of time before now to calculate stats over.World scope of the request.Methods inherited from class de.chojo.universalis.rest.requests.RequestBuilder
complete, parameter, path, path, queue, toString
-
Constructor Details
-
HistoryRequestImpl
Create a new history request- Parameters:
rest- rest client
-
-
Method Details
-
region
Description copied from interface:RegionScopeRegion scope of the request.Calling this again will remove other scopes.
- Specified by:
regionin interfaceRegionScope<RegionHistoryRequest>- Parameters:
region- region- Returns:
- request builder
-
dataCenter
Description copied from interface:DataCenterScopeData center scope of the request.Calling this again will remove other scopes.
- Specified by:
dataCenterin interfaceDataCenterScope<RegionHistoryRequest>- Parameters:
dataCenter- data center- Returns:
- request builder
-
world
Description copied from interface:WorldScopeWorld scope of the request.Calling this again will remove other scopes.
- Specified by:
worldin interfaceWorldScope<RegionHistoryRequest>- Parameters:
world- world- Returns:
- request builder
-
items
Description copied from interface:ItemScopeItems to lookup- Specified by:
itemsin interfaceItemScope<HistoryRequest>- Parameters:
items- items- Returns:
- request builder
-
items
Description copied from interface:ItemScopeItems to lookup- Specified by:
itemsin interfaceItemScope<HistoryRequest>- Parameters:
items- items- Returns:
- request builder
-
itemsIds
Description copied from interface:ItemScopeItem ids to lookup- Specified by:
itemsIdsin interfaceItemScope<HistoryRequest>- Parameters:
itemIds- item ids- Returns:
- request builder
-
itemsIds
Description copied from interface:ItemScopeItem ids to lookup- Specified by:
itemsIdsin interfaceItemScope<HistoryRequest>- Parameters:
itemIds- item ids- Returns:
- request builder
-
limit
Description copied from interface:HistoryRequestSet the limit of retrieved entries for this requestDefault: 1800 Max: 999999
- Specified by:
limitin interfaceHistoryRequest- Specified by:
limitin interfaceLimitedRequest<HistoryRequest>- Parameters:
limit- limit- Returns:
- request builder
-
historyTime
Description copied from interface:HistoryRequestThe amount of time before now to take entries within the history data returned byMarketBoardResponse.recentHistory().- Specified by:
historyTimein interfaceHistoryRequest- Parameters:
duration- duration- Returns:
- request
-
statsTime
Description copied from interface:HistoryRequestThe amount of time before now to calculate stats over. By default, this is 7 days.- Specified by:
statsTimein interfaceHistoryRequest- Parameters:
duration- duration- Returns:
- request
-