|
|
@@ -1,4 +1,26 @@
|
|
1
|
1
|
package dtos;
|
|
2
|
2
|
|
|
|
3
|
+import java.util.Collection;
|
|
|
4
|
+
|
|
3
|
5
|
public class VoteResult {
|
|
|
6
|
+
|
|
|
7
|
+ private int totalVotes;
|
|
|
8
|
+ private Collection<OptionCount> results;
|
|
|
9
|
+
|
|
|
10
|
+ public int getTotalVotes() {
|
|
|
11
|
+ return totalVotes;
|
|
|
12
|
+ }
|
|
|
13
|
+
|
|
|
14
|
+ public void setTotalVotes(int totalVotes) {
|
|
|
15
|
+ this.totalVotes = totalVotes;
|
|
|
16
|
+ }
|
|
|
17
|
+
|
|
|
18
|
+ public Collection<OptionCount> getResults() {
|
|
|
19
|
+ return results;
|
|
|
20
|
+ }
|
|
|
21
|
+
|
|
|
22
|
+ public void setResults(Collection<OptionCount> results) {
|
|
|
23
|
+ this.results = results;
|
|
|
24
|
+ }
|
|
|
25
|
+
|
|
4
|
26
|
}
|