Rev | Line | |
---|
[1] | 1 | package geniusweb.actions;
|
---|
| 2 |
|
---|
| 3 | import com.fasterxml.jackson.annotation.JsonCreator;
|
---|
| 4 | import com.fasterxml.jackson.annotation.JsonProperty;
|
---|
| 5 | import com.fasterxml.jackson.annotation.JsonTypeName;
|
---|
| 6 |
|
---|
| 7 | import 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")
|
---|
| 15 | public 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.