package testcode.actions; import org.eclipse.jdt.annotation.NonNull; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; /** * An accept done by some party indicates that that party agrees with the bid. * Usually the contained {@link Bid} must be a bid that was previously * {@link Offer}ed by some party. */ public class Accept extends ActionWithBid { /** * @param actor the accepting party. * @param bid the bid that was offered before (usually by some other Party * ) */ @JsonCreator public Accept(@JsonProperty("actor") @NonNull PartyId actor, @JsonProperty("bid") @NonNull Bid bid) { super(actor, bid); } @Override public @NonNull String toString() { return "Accept[" + getActor().toString() + "," + getBid().toString() + "]"; } }