Flattened, JSON-friendly snapshot of a bid event, broadcast over the auctionBid websocket so connected clients can update an auction's leading bid live without a page reload. Combines fields from the new bid, the previous leading bid it replaced (if any), and the auction's current totals, avoiding the need for the client to hold or dereference the underlying entities. Built and sent by AuctionWebsockets whenever a bid is placed or an auction starts closing.


Properties

PropertyReturnsDescription
actionAuctionBidActionWhat kind of bid event this snapshot represents, e.g. a fresh bid, an outbid, or a self-outbid.
auctionCurrentBidCountIntegerRunning total of bids placed on the auction, as at the time this bid was placed.
auctionCurrentBidValueBigDecimalThe auction's current leading bid value, as at the time this bid was placed.
auctionEndDatelongWhen the auction closes.
beanTypeStringDiscriminator identifying the JSON payload shape to websocket clients.
bidDatelongWhen this bid was placed.
bidderFormattedNameStringDisplay name of the profile who placed the new bid, formatted for presentation.
bidderHrefStringLink to the bidder's profile.
bidderNameStringLogin name of the profile who placed the new bid.
bidValueBigDecimalThe amount bid, in the auction's reward points bucket.
idlongDatabase identifier of the underlying AuctionBid.
oldBidderFormattedNameStringDisplay name of the profile whose bid was replaced, formatted for presentation.
oldBidderHrefStringLink to the profile whose bid was replaced.
oldBidderNameStringLogin name of the profile whose bid was replaced.
oldBidValueBigDecimalThe value of the bid that was replaced by the new leading bid.

Methods

getBeanType() · getBidDate() · getBidValue() · getBidderName() · getBidderHref() · getBidderFormattedName() · getOldBidValue() · getOldBidderName() · getOldBidderHref() · getOldBidderFormattedName() · getAuctionCurrentBidCount() · getAuctionEndDate() · getAuctionCurrentBidValue() · getId() · getAction()

getBeanType()

Returns: String

Discriminator identifying the JSON payload shape to websocket clients.

getBidDate()

Returns: long

When this bid was placed.

getBidValue()

Returns: BigDecimal

The amount bid, in the auction's reward points bucket.

getBidderName()

Returns: String

Login name of the profile who placed the new bid.

getBidderHref()

Returns: String

Link to the bidder's profile.

getBidderFormattedName()

Returns: String

Display name of the profile who placed the new bid, formatted for presentation.

getOldBidValue()

Returns: BigDecimal

The value of the bid that was replaced by the new leading bid.

getOldBidderName()

Returns: String

Login name of the profile whose bid was replaced.

getOldBidderHref()

Returns: String

Link to the profile whose bid was replaced.

getOldBidderFormattedName()

Returns: String

Display name of the profile whose bid was replaced, formatted for presentation.

getAuctionCurrentBidCount()

Returns: Integer

Running total of bids placed on the auction, as at the time this bid was placed.

getAuctionEndDate()

Returns: long

When the auction closes.

getAuctionCurrentBidValue()

Returns: BigDecimal

The auction's current leading bid value, as at the time this bid was placed.

getId()

Returns: long

Database identifier of the underlying AuctionBid.

getAction()

Returns: AuctionBidAction

What kind of bid event this snapshot represents, e.g. a fresh bid, an outbid, or a self-outbid.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.