source: src/main/java/bargainingchips/protocol/ValidationResult.java@ 325

Last change on this file since 325 was 319, checked in by Tim Baarslag, 6 years ago

validate gives a ValidationResult

File size: 614 bytes
Line 
1package bargainingchips.protocol;
2
3import bargainingchips.actions.Offer;
4
5public class ValidationResult
6{
7 boolean valid;
8 boolean hasEnded;
9 Offer outcome;
10
11 public ValidationResult()
12 {
13 valid = false;
14 hasEnded = false;
15 outcome = null;
16 }
17
18 public ValidationResult(boolean valid, boolean hasEnded, Offer outcome)
19 {
20 super();
21 this.valid = valid;
22 this.hasEnded = hasEnded;
23 this.outcome = outcome;
24 }
25
26 public boolean isValid()
27 {
28 return valid;
29 }
30
31 public boolean hasEnded()
32 {
33 return hasEnded;
34 }
35
36 public Offer getOutcome()
37 {
38 return outcome;
39 }
40}
Note: See TracBrowser for help on using the repository browser.