Line | |
---|
1 | package testcode.actions;
|
---|
2 |
|
---|
3 | import com.fasterxml.jackson.annotation.JsonCreator;
|
---|
4 | import com.fasterxml.jackson.annotation.JsonProperty;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * An accept done by some party indicates that that party agrees with the bid.
|
---|
8 | * Usually the contained {@link Bid} must be a bid that was previously
|
---|
9 | * {@link Offer}ed by some party.
|
---|
10 | */
|
---|
11 | public class Accept extends ActionWithBid {
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * @param id the accepting party.
|
---|
15 | * @param bid the bid that was offered before (usually by some other Party )
|
---|
16 | */
|
---|
17 | @JsonCreator
|
---|
18 | public Accept(@JsonProperty("actor") PartyId id,
|
---|
19 | @JsonProperty("bid") Bid bid) {
|
---|
20 | super(id, bid);
|
---|
21 | }
|
---|
22 |
|
---|
23 | @Override
|
---|
24 | public String toString() {
|
---|
25 | return "Accept[" + getActor() + "," + getBid() + "]";
|
---|
26 | }
|
---|
27 |
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.