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

Last change on this file was 1116, checked in by wouter, 6 weeks ago

#363 small cleanup in test code

File size: 842 bytes
Line 
1package testcode.actions;
2
3import org.eclipse.jdt.annotation.NonNull;
4
5import com.fasterxml.jackson.annotation.JsonCreator;
6import com.fasterxml.jackson.annotation.JsonProperty;
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 actor the accepting party.
17 * @param bid the bid that was offered before (usually by some other Party
18 * )
19 */
20 @JsonCreator
21 public Accept(@JsonProperty("actor") @NonNull PartyId actor,
22 @JsonProperty("bid") @NonNull Bid bid) {
23 super(actor, bid);
24 }
25
26 @Override
27 public @NonNull String toString() {
28 return "Accept[" + getActor().toString() + "," + getBid().toString()
29 + "]";
30 }
31
32}
Note: See TracBrowser for help on using the repository browser.