public class Votes extends Resource
apirev, DEFAULT_API_REV, id, restclient, self| Modifier | Constructor and Description |
|---|---|
protected |
Votes(RestClient restclient,
net.sf.json.JSONObject json)
Creates votes from a JSON payload.
|
| Modifier and Type | Method and Description |
|---|---|
static Votes |
get(RestClient restclient,
String issue)
Retrieves the given votes record.
|
int |
getVotes() |
boolean |
hasVoted() |
String |
toString() |
getApiRev, getAuthUri, getBaseUri, getId, getSelf, getUrl, setApiRevprotected Votes(RestClient restclient, net.sf.json.JSONObject json)
restclient - REST client instancejson - JSON payloadpublic static Votes get(RestClient restclient, String issue) throws JiraException
restclient - REST client instanceissue - Internal JIRA ID of the issueJiraException - when the retrieval failspublic int getVotes()
public boolean hasVoted()
Copyright © 2022. All rights reserved.