public class VoteStatService extends Object
| Constructor and Description |
|---|
VoteStatService() |
| Modifier and Type | Method and Description |
|---|---|
static VoteStatService |
getInstance() |
Map<String,Integer> |
getNbVotesByCampaign()
Return number of votes by campaign
|
Map<String,Map<String,Integer>> |
getNbVotesByDateAllCampaigns()
Return number of votes by campaign then by date
|
Map<String,Integer> |
getNbVotesByLocation(int campaignId)
Return number of votes by location for a campaign
|
List<Map<String,String>> |
getNbVotesByProject(int campaignId)
Return number of votes by project for a campaign
|
Map<String,Integer> |
getNbVotesByTheme(int campaignId)
Return number of votes by theme for a campaign
|
public static VoteStatService getInstance()
public Map<String,Integer> getNbVotesByCampaign()
public Map<String,Map<String,Integer>> getNbVotesByDateAllCampaigns()
public Map<String,Integer> getNbVotesByTheme(int campaignId)
campaignId - The id of the campaignpublic Map<String,Integer> getNbVotesByLocation(int campaignId)
campaignId - The id of the campaignCopyright © 2020 City of Paris. All rights reserved.