source: events/src/main/java/geniusweb/actions/Offer.java@ 4

Last change on this file since 4 was 1, checked in by bart, 5 years ago

Initial Release

File size: 698 bytes
RevLine 
[1]1package geniusweb.actions;
2
3import com.fasterxml.jackson.annotation.JsonCreator;
4import com.fasterxml.jackson.annotation.JsonProperty;
5import com.fasterxml.jackson.annotation.JsonTypeName;
6
7import geniusweb.issuevalue.Bid;
8
9/**
10 * An offer represents a proposal from some actor that others may accept.
11 * Executing an Offer action usually means that the party doing the action
12 * accepts the offer himself.
13 */
14@JsonTypeName("offer")
15public class Offer extends ActionWithBid {
16
17 @JsonCreator
18 public Offer(@JsonProperty("actor") PartyId id,
19 @JsonProperty("bid") Bid bid) {
20 super(id, bid);
21 }
22
23 @Override
24 public String toString() {
25 return "Offer[" + getActor() + "," + getBid() + "]";
26 }
27
28}
Note: See TracBrowser for help on using the repository browser.