public class AbstractTally extends BaseSocialComponent implements TallySocialComponent
Constructor and Description |
---|
AbstractTally(Resource resource,
ClientUtilities clientUtils) |
Modifier and Type | Method and Description |
---|---|
void |
addResponse(String value) |
boolean |
getCanUserRespond() |
ResponseValue |
getCurrentUserResponse() |
String |
getName() |
Map<String,Long> |
getResponseTallies() |
Long |
getTotalNumberOfResponses() |
void |
removeCurrentUserResponse() |
getAsMap, getId, getProperties, getResource, getResourceType, getUrl, toJSONString
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsMap, getId, getProperties, getResource, getResourceType, getUrl, toJSONString
public AbstractTally(Resource resource, ClientUtilities clientUtils)
public String getName()
getName
in interface TallySocialComponent
public Long getTotalNumberOfResponses()
getTotalNumberOfResponses
in interface TallySocialComponent
public ResponseValue getCurrentUserResponse() throws TallyException
getCurrentUserResponse
in interface TallySocialComponent
TallyException
- if there was an error retrieving the current users response.public Map<String,Long> getResponseTallies()
getResponseTallies
in interface TallySocialComponent
public void addResponse(String value)
public void removeCurrentUserResponse()
public boolean getCanUserRespond()
getCanUserRespond
in interface TallySocialComponent
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"