Last change
on this file since 53 was 52, checked in by ruud, 21 months ago |
Fixed small issues in domaineditor.
|
File size:
753 bytes
|
Rev | Line | |
---|
[52] | 1 | package geniusweb.actions;
|
---|
| 2 |
|
---|
| 3 | import com.fasterxml.jackson.annotation.JsonCreator;
|
---|
| 4 | import com.fasterxml.jackson.annotation.JsonProperty;
|
---|
| 5 |
|
---|
| 6 | import geniusweb.issuevalue.Bid;
|
---|
| 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 id the accepting party.
|
---|
| 17 | * @param bid the bid that was offered before (usually by some other Party )
|
---|
| 18 | */
|
---|
| 19 | @JsonCreator
|
---|
| 20 | public Accept(@JsonProperty("actor") PartyId id,
|
---|
| 21 | @JsonProperty("bid") Bid bid) {
|
---|
| 22 | super(id, bid);
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | @Override
|
---|
| 26 | public String toString() {
|
---|
| 27 | return "Accept[" + getActor() + "," + getBid() + "]";
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.