source: java2python/jackson-t/src/test/java/testcode/actions/Accept.java@ 465

Last change on this file since 465 was 404, checked in by wouter, 2 years ago

#122 refactoring, creating separate packages for java core and jackson-translator (jackson-t)

File size: 753 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 actor 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 actor,
19 @JsonProperty("bid") Bid bid) {
20 super(actor, bid);
21 }
22
23 @Override
24 public String toString() {
25 return "Accept[" + getActor().toString() + "," + getBid().toString()
26 + "]";
27 }
28
29}
Note: See TracBrowser for help on using the repository browser.