BazaarSellOrder

class BazaarSellOrder(val item: Identifier, var qty: Int, val pricePer: Double, var sold: Int, val buyers: MutableList<UUID>, val createdBy: UUID, val originalAmount: Int, val createdAt: Long = Instant.now().toEpochMilli()) : BazaarOrder, Serializable, MongoConvert<MongoBazaarOrder> , Comparable<BazaarSellOrder> (source)

A bazaar SELL order

Constructors

Link copied to clipboard
constructor(item: Identifier, qty: Int, pricePer: Double, sold: Int, buyers: MutableList<UUID>, createdBy: UUID, originalAmount: Int, createdAt: Long = Instant.now().toEpochMilli())

Functions

Link copied to clipboard
open operator override fun compareTo(other: BazaarSellOrder): Int

Properties

Link copied to clipboard

UUIDs of players who bought items off this order

Link copied to clipboard

Epoch milliseconds when this order was created

Link copied to clipboard

By whom this order was created

Link copied to clipboard

Item this order belongs to

Link copied to clipboard
open override val mongo: MongoBazaarOrder

Gets MongoDB representation of this object

Link copied to clipboard

Original amount ordered

Link copied to clipboard

Price per single item

Link copied to clipboard
var qty: Int

Quantity of items ordered to sell

Link copied to clipboard
var sold: Int

Amount of items already sold

Link copied to clipboard
open override val totalPrice: BigDecimal

Total coins accumulated in this order