|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+package io.zipcoder.tc_spring_poll_application.dtos;
|
|
|
2
|
+
|
|
|
3
|
+import java.util.Collection;
|
|
|
4
|
+
|
|
|
5
|
+/**
|
|
|
6
|
+ * project: spring-demo
|
|
|
7
|
+ * package: io.zipcoder.tc_spring_poll_application.dtos
|
|
|
8
|
+ * author: https://github.com/vvmk
|
|
|
9
|
+ * date: 4/6/18
|
|
|
10
|
+ */
|
|
|
11
|
+public class VoteResult {
|
|
|
12
|
+ private int totalVotes;
|
|
|
13
|
+ private Collection<OptionCount> results;
|
|
|
14
|
+
|
|
|
15
|
+ public int getTotalVotes() {
|
|
|
16
|
+ return totalVotes;
|
|
|
17
|
+ }
|
|
|
18
|
+
|
|
|
19
|
+ public void setTotalVotes(int totalVotes) {
|
|
|
20
|
+ this.totalVotes = totalVotes;
|
|
|
21
|
+ }
|
|
|
22
|
+
|
|
|
23
|
+ public Collection<OptionCount> getResults() {
|
|
|
24
|
+ return results;
|
|
|
25
|
+ }
|
|
|
26
|
+
|
|
|
27
|
+ public void setResults(Collection<OptionCount> results) {
|
|
|
28
|
+ this.results = results;
|
|
|
29
|
+ }
|
|
|
30
|
+}
|