Record Class MarketBoardResponse
java.lang.Object
java.lang.Record
de.chojo.universalis.rest.response.MarketBoardResponse
- Record Components:
item
- itemworld
- worlddataCenter
- data centerregion
- regionlastUploadTime
- last upload timelistings
- listingsrecentHistory
- recent historycurrentAveragePrice
- current average pricesaleVelocity
- sale velocityaveragePrice
- average priceminPrice
- min pricemaxPrice
- max pricestackSizeHistogram
- stack size histogramworldUploadTimes
- world upload times
public record MarketBoardResponse(Item item, @Nullable World world, @Nullable DataCenter dataCenter, @Nullable Region region, LocalDateTime lastUploadTime, List<Listing> listings, List<Sale> recentHistory, QualityIndicator<Float> currentAveragePrice, QualityIndicator<Float> saleVelocity, QualityIndicator<Float> averagePrice, QualityIndicator<Integer> minPrice, QualityIndicator<Integer> maxPrice, QualityIndicator<Map<Integer,Integer>> stackSizeHistogram, Map<World,LocalDateTime> worldUploadTimes)
extends Record
Response of a
MarketBoardRequest
-
Constructor Summary
ConstructorsConstructorDescriptionMarketBoardResponse
(Item item, @Nullable World world, @Nullable DataCenter dataCenter, @Nullable Region region, LocalDateTime lastUploadTime, List<Listing> listings, List<Sale> recentHistory, QualityIndicator<Float> currentAveragePrice, QualityIndicator<Float> saleVelocity, QualityIndicator<Float> averagePrice, QualityIndicator<Integer> minPrice, QualityIndicator<Integer> maxPrice, QualityIndicator<Map<Integer, Integer>> stackSizeHistogram, Map<World, LocalDateTime> worldUploadTimes) Creates an instance of aMarketBoardResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaveragePrice
record component.Returns the value of thecurrentAveragePrice
record component.Returns the value of thedataCenter
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.item()
Returns the value of theitem
record component.Returns the value of thelastUploadTime
record component.listings()
Returns the value of thelistings
record component.maxPrice()
Returns the value of themaxPrice
record component.minPrice()
Returns the value of theminPrice
record component.Returns the value of therecentHistory
record component.region()
Returns the value of theregion
record component.Returns the value of thesaleVelocity
record component.Returns the value of thestackSizeHistogram
record component.final String
toString()
Returns a string representation of this record class.world()
Returns the value of theworld
record component.Returns the value of theworldUploadTimes
record component.
-
Constructor Details
-
MarketBoardResponse
public MarketBoardResponse(Item item, @Nullable @Nullable World world, @Nullable @Nullable DataCenter dataCenter, @Nullable @Nullable Region region, LocalDateTime lastUploadTime, List<Listing> listings, List<Sale> recentHistory, QualityIndicator<Float> currentAveragePrice, QualityIndicator<Float> saleVelocity, QualityIndicator<Float> averagePrice, QualityIndicator<Integer> minPrice, QualityIndicator<Integer> maxPrice, QualityIndicator<Map<Integer, Integer>> stackSizeHistogram, Map<World, LocalDateTime> worldUploadTimes) Creates an instance of aMarketBoardResponse
record class.- Parameters:
item
- the value for theitem
record componentworld
- the value for theworld
record componentdataCenter
- the value for thedataCenter
record componentregion
- the value for theregion
record componentlastUploadTime
- the value for thelastUploadTime
record componentlistings
- the value for thelistings
record componentrecentHistory
- the value for therecentHistory
record componentcurrentAveragePrice
- the value for thecurrentAveragePrice
record componentsaleVelocity
- the value for thesaleVelocity
record componentaveragePrice
- the value for theaveragePrice
record componentminPrice
- the value for theminPrice
record componentmaxPrice
- the value for themaxPrice
record componentstackSizeHistogram
- the value for thestackSizeHistogram
record componentworldUploadTimes
- the value for theworldUploadTimes
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
item
Returns the value of theitem
record component.- Returns:
- the value of the
item
record component
-
world
Returns the value of theworld
record component.- Returns:
- the value of the
world
record component
-
dataCenter
Returns the value of thedataCenter
record component.- Returns:
- the value of the
dataCenter
record component
-
region
Returns the value of theregion
record component.- Returns:
- the value of the
region
record component
-
lastUploadTime
Returns the value of thelastUploadTime
record component.- Returns:
- the value of the
lastUploadTime
record component
-
listings
Returns the value of thelistings
record component.- Returns:
- the value of the
listings
record component
-
recentHistory
Returns the value of therecentHistory
record component.- Returns:
- the value of the
recentHistory
record component
-
currentAveragePrice
Returns the value of thecurrentAveragePrice
record component.- Returns:
- the value of the
currentAveragePrice
record component
-
saleVelocity
Returns the value of thesaleVelocity
record component.- Returns:
- the value of the
saleVelocity
record component
-
averagePrice
Returns the value of theaveragePrice
record component.- Returns:
- the value of the
averagePrice
record component
-
minPrice
Returns the value of theminPrice
record component.- Returns:
- the value of the
minPrice
record component
-
maxPrice
Returns the value of themaxPrice
record component.- Returns:
- the value of the
maxPrice
record component
-
stackSizeHistogram
Returns the value of thestackSizeHistogram
record component.- Returns:
- the value of the
stackSizeHistogram
record component
-
worldUploadTimes
Returns the value of theworldUploadTimes
record component.- Returns:
- the value of the
worldUploadTimes
record component
-