source: events/src/main/java/geniusweb/actions/Accept.java@ 50

Last change on this file since 50 was 50, checked in by bart, 2 years ago

Fixed small issues in domaineditor.

File size: 753 bytes
Line 
1package geniusweb.actions;
2
3import com.fasterxml.jackson.annotation.JsonCreator;
4import com.fasterxml.jackson.annotation.JsonProperty;
5
6import 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 */
13public 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.