Record Class ListingView
java.lang.Object
java.lang.Record
de.chojo.universalis.entities.views.ListingView
- Record Components:
lastReviewTime
- The time that this listing was posted, in seconds since the UNIX epoch.pricePerUnit
- The price per unit sold.quantity
- The stack size sold. //TODO: Add some richer mapping for stainsstainId
- The ID of the dye on this item.worldName
- The world name, if applicable.worldId
- The world ID, if applicable.creatorName
- The creator's character name.creatorId
- A SHA256 hash of the creator's ID.hq
- Whether the item is high-quality.isCrafted
- Whether the item is crafted.listingId
- A SHA256 hash of the ID of this listing. Due to some current client-side bugs, this will almost always be null.materia
- The materia on this item.onMannequin
- Whether the item is being sold on a mannequin.retainerCity
- The city ID of the retainer.retainerId
- A SHA256 hash of the retainer's ID.retainerName
- The retainer's name.sellerId
- A SHA256 hash of the seller's ID.total
- The total price.tax
- The Gil sales tax (GST) to be added to the total price during purchase.
public record ListingView(LocalDateTime lastReviewTime, int pricePerUnit, int quantity, int stainId, String worldName, int worldId, String creatorName, String creatorId, boolean hq, boolean isCrafted, String listingId, List<MateriaView> materia, boolean onMannequin, City retainerCity, String retainerId, String retainerName, String sellerId, int total, int tax)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionListingView
(LocalDateTime lastReviewTime, int pricePerUnit, int quantity, int stainId, String worldName, int worldId, String creatorName, String creatorId, boolean hq, boolean isCrafted, String listingId, List<MateriaView> materia, boolean onMannequin, City retainerCity, String retainerId, String retainerName, String sellerId, int total, int tax) Creates an instance of aListingView
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatorId
record component.Returns the value of thecreatorName
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.boolean
hq()
Returns the value of thehq
record component.boolean
Returns the value of theisCrafted
record component.Returns the value of thelastReviewTime
record component.Returns the value of thelistingId
record component.materia()
Returns the value of themateria
record component.boolean
Returns the value of theonMannequin
record component.int
Returns the value of thepricePerUnit
record component.int
quantity()
Returns the value of thequantity
record component.Returns the value of theretainerCity
record component.Returns the value of theretainerId
record component.Returns the value of theretainerName
record component.sellerId()
Returns the value of thesellerId
record component.int
stainId()
Returns the value of thestainId
record component.int
tax()
Returns the value of thetax
record component.Converts theListingView
to aListing
object.Converts theListingView
to aListing
object.final String
toString()
Returns a string representation of this record class.int
total()
Returns the value of thetotal
record component.int
worldId()
Returns the value of theworldId
record component.Returns the value of theworldName
record component.
-
Constructor Details
-
ListingView
public ListingView(LocalDateTime lastReviewTime, int pricePerUnit, int quantity, int stainId, String worldName, int worldId, String creatorName, String creatorId, boolean hq, boolean isCrafted, String listingId, List<MateriaView> materia, boolean onMannequin, City retainerCity, String retainerId, String retainerName, String sellerId, int total, int tax) Creates an instance of aListingView
record class.- Parameters:
lastReviewTime
- the value for thelastReviewTime
record componentpricePerUnit
- the value for thepricePerUnit
record componentquantity
- the value for thequantity
record componentstainId
- the value for thestainId
record componentworldName
- the value for theworldName
record componentworldId
- the value for theworldId
record componentcreatorName
- the value for thecreatorName
record componentcreatorId
- the value for thecreatorId
record componenthq
- the value for thehq
record componentisCrafted
- the value for theisCrafted
record componentlistingId
- the value for thelistingId
record componentmateria
- the value for themateria
record componentonMannequin
- the value for theonMannequin
record componentretainerCity
- the value for theretainerCity
record componentretainerId
- the value for theretainerId
record componentretainerName
- the value for theretainerName
record componentsellerId
- the value for thesellerId
record componenttotal
- the value for thetotal
record componenttax
- the value for thetax
record component
-
-
Method Details
-
toListing
Converts theListingView
to aListing
object.- Returns:
- list of sales
-
toListing
Converts theListingView
to aListing
object.- Parameters:
world
- world for the sale- Returns:
- list of sales
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
lastReviewTime
Returns the value of thelastReviewTime
record component.- Returns:
- the value of the
lastReviewTime
record component
-
pricePerUnit
public int pricePerUnit()Returns the value of thepricePerUnit
record component.- Returns:
- the value of the
pricePerUnit
record component
-
quantity
public int quantity()Returns the value of thequantity
record component.- Returns:
- the value of the
quantity
record component
-
stainId
public int stainId()Returns the value of thestainId
record component.- Returns:
- the value of the
stainId
record component
-
worldName
Returns the value of theworldName
record component.- Returns:
- the value of the
worldName
record component
-
worldId
public int worldId()Returns the value of theworldId
record component.- Returns:
- the value of the
worldId
record component
-
creatorName
Returns the value of thecreatorName
record component.- Returns:
- the value of the
creatorName
record component
-
creatorId
Returns the value of thecreatorId
record component.- Returns:
- the value of the
creatorId
record component
-
hq
public boolean hq()Returns the value of thehq
record component.- Returns:
- the value of the
hq
record component
-
isCrafted
public boolean isCrafted()Returns the value of theisCrafted
record component.- Returns:
- the value of the
isCrafted
record component
-
listingId
Returns the value of thelistingId
record component.- Returns:
- the value of the
listingId
record component
-
materia
Returns the value of themateria
record component.- Returns:
- the value of the
materia
record component
-
onMannequin
public boolean onMannequin()Returns the value of theonMannequin
record component.- Returns:
- the value of the
onMannequin
record component
-
retainerCity
Returns the value of theretainerCity
record component.- Returns:
- the value of the
retainerCity
record component
-
retainerId
Returns the value of theretainerId
record component.- Returns:
- the value of the
retainerId
record component
-
retainerName
Returns the value of theretainerName
record component.- Returns:
- the value of the
retainerName
record component
-
sellerId
Returns the value of thesellerId
record component.- Returns:
- the value of the
sellerId
record component
-
total
public int total()Returns the value of thetotal
record component.- Returns:
- the value of the
total
record component
-
tax
public int tax()Returns the value of thetax
record component.- Returns:
- the value of the
tax
record component
-