From 290daf8eab592a6a1b68ca18dbfa9545b47b27f2 Mon Sep 17 00:00:00 2001 From: Thodoris1999 Date: Sun, 16 Sep 2018 13:02:45 +0300 Subject: [PATCH] add remove vote url --- app/src/main/java/gr/thmmy/mthmmy/model/Poll.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/model/Poll.java b/app/src/main/java/gr/thmmy/mthmmy/model/Poll.java index 49fbba8b..1b8e07a7 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/model/Poll.java +++ b/app/src/main/java/gr/thmmy/mthmmy/model/Poll.java @@ -6,14 +6,16 @@ public class Poll { private final String question; private Entry[] entries; private int availableVoteCount; - private String pollFormUrl, sc; + private String pollFormUrl, sc, removeVoteUrl; - public Poll(String question, Entry[] entries, int availableVoteCount, String pollFormUrl, String sc) { + public Poll(String question, Entry[] entries, int availableVoteCount, String pollFormUrl, String sc, + String removeVoteUrl) { this.question = question; this.entries = entries; this.availableVoteCount = availableVoteCount; this.pollFormUrl = pollFormUrl; this.sc = sc; + this.removeVoteUrl = removeVoteUrl; } public String getQuestion() { @@ -36,6 +38,10 @@ public class Poll { return sc; } + public String getRemoveVoteUrl() { + return removeVoteUrl; + } + public int totalVotes() { int sum = 0; for (Entry entry : entries) {