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