Bazaar Buy Order
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())
Properties
Link copied to clipboard
Item this order belongs to
Link copied to clipboard
Gets MongoDB representation of this object
Link copied to clipboard
Original amount ordered
Link copied to clipboard
UUIDs of players who sold items to this order
Link copied to clipboard
Total coins accumulated in this order