BazaarBuyOrder

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

A bazaar BUY order

Constructors

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

Functions

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

Properties

Link copied to clipboard
var bought: Int

Amount of items already bought

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 buy

Link copied to clipboard

UUIDs of players who sold items to this order

Link copied to clipboard
open override val totalPrice: BigDecimal

Total coins accumulated in this order