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

Last change on this file since 32 was 32, checked in by bart, 3 years ago

Multiple learns with repeated tournament, maven use https.

File size: 831 bytes
Line 
1package geniusweb.actions;
2
3import com.fasterxml.jackson.annotation.JsonCreator;
4import com.fasterxml.jackson.annotation.JsonProperty;
5import com.fasterxml.jackson.annotation.JsonTypeName;
6
7import 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")
15public 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.