source: java2python/src/test/java/testcode/actions/Accept.java@ 383

Last change on this file since 383 was 380, checked in by wouter, 2 years ago

#115 work in progress to move zip code to PyProgram and PyModule

File size: 718 bytes
Line 
1package testcode.actions;
2
3import com.fasterxml.jackson.annotation.JsonCreator;
4import 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 */
11public 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.