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 aMarketBoardResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaveragePricerecord component.Returns the value of thecurrentAveragePricerecord component.Returns the value of thedataCenterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.Returns the value of thelastUploadTimerecord component.listings()Returns the value of thelistingsrecord component.maxPrice()Returns the value of themaxPricerecord component.minPrice()Returns the value of theminPricerecord component.Returns the value of therecentHistoryrecord component.region()Returns the value of theregionrecord component.Returns the value of thesaleVelocityrecord component.Returns the value of thestackSizeHistogramrecord component.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.Returns the value of theworldUploadTimesrecord 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 aMarketBoardResponserecord class.- Parameters:
item- the value for theitemrecord componentworld- the value for theworldrecord componentdataCenter- the value for thedataCenterrecord componentregion- the value for theregionrecord componentlastUploadTime- the value for thelastUploadTimerecord componentlistings- the value for thelistingsrecord componentrecentHistory- the value for therecentHistoryrecord componentcurrentAveragePrice- the value for thecurrentAveragePricerecord componentsaleVelocity- the value for thesaleVelocityrecord componentaveragePrice- the value for theaveragePricerecord componentminPrice- the value for theminPricerecord componentmaxPrice- the value for themaxPricerecord componentstackSizeHistogram- the value for thestackSizeHistogramrecord componentworldUploadTimes- the value for theworldUploadTimesrecord 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 theitemrecord component.- Returns:
- the value of the
itemrecord component
-
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
dataCenter
Returns the value of thedataCenterrecord component.- Returns:
- the value of the
dataCenterrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
lastUploadTime
Returns the value of thelastUploadTimerecord component.- Returns:
- the value of the
lastUploadTimerecord component
-
listings
Returns the value of thelistingsrecord component.- Returns:
- the value of the
listingsrecord component
-
recentHistory
Returns the value of therecentHistoryrecord component.- Returns:
- the value of the
recentHistoryrecord component
-
currentAveragePrice
Returns the value of thecurrentAveragePricerecord component.- Returns:
- the value of the
currentAveragePricerecord component
-
saleVelocity
Returns the value of thesaleVelocityrecord component.- Returns:
- the value of the
saleVelocityrecord component
-
averagePrice
Returns the value of theaveragePricerecord component.- Returns:
- the value of the
averagePricerecord component
-
minPrice
Returns the value of theminPricerecord component.- Returns:
- the value of the
minPricerecord component
-
maxPrice
Returns the value of themaxPricerecord component.- Returns:
- the value of the
maxPricerecord component
-
stackSizeHistogram
Returns the value of thestackSizeHistogramrecord component.- Returns:
- the value of the
stackSizeHistogramrecord component
-
worldUploadTimes
Returns the value of theworldUploadTimesrecord component.- Returns:
- the value of the
worldUploadTimesrecord component
-