Line | |
---|
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 accept done by some party indicates that that party agrees with the bid.
|
---|
11 | * Usually the contained {@link Bid} must be a bid that was previously
|
---|
12 | * {@link Offer}ed by some party.
|
---|
13 | */
|
---|
14 | @JsonTypeName("accept")
|
---|
15 | public class Accept extends ActionWithBid {
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * @param id the accepting party.
|
---|
19 | * @param bid the bid that was offered before (usually by some other Party )
|
---|
20 | */
|
---|
21 | @JsonCreator
|
---|
22 | public Accept(@JsonProperty("actor") PartyId id,
|
---|
23 | @JsonProperty("bid") Bid bid) {
|
---|
24 | super(id, bid);
|
---|
25 | }
|
---|
26 |
|
---|
27 | @Override
|
---|
28 | public String toString() {
|
---|
29 | return "Accept[" + getActor() + "," + getBid() + "]";
|
---|
30 | }
|
---|
31 |
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.