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

Last change on this file since 505 was 505, checked in by wouter, 17 months ago

#161 restructuring test code, each test program in its own dir.

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.