Package zendesk.support
Class ArticleVote
- java.lang.Object
-
- zendesk.support.ArticleVote
-
public class ArticleVote extends java.lang.Object
This is a class model for an Article vote. Votes are typically returned as a response fromHelpCenterProvider#upvoteArticle(Long, ZendeskCallback)
orHelpCenterProvider#downvoteArticle(Long, ZendeskCallback)
- See Also:
- Article Vote JSON format
-
-
Constructor Summary
Constructors Constructor and Description ArticleVote()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(java.lang.Object o)
java.util.Date
getCreatedAt()
Gets the time at which the vote was createdjava.lang.Long
getId()
Gets the ID of the Votejava.lang.Long
getItemId()
Gets the id of the item for which the Vote was castjava.lang.String
getItemType()
Gets the type of the item.java.util.Date
getUpdatedAt()
Gets the time at which the vote was updatedjava.lang.String
getUrl()
Gets the API URL of the Vote resourcejava.lang.Long
getUserId()
Gets the ID of theUser
who created the Votejava.lang.Integer
getValue()
Gets the value of the Voteint
hashCode()
-
-
-
Method Detail
-
getId
public java.lang.Long getId()
Gets the ID of the Vote- Returns:
- the ID of the vote
-
getUrl
public java.lang.String getUrl()
Gets the API URL of the Vote resource- Returns:
- the API URL of the Vote resource
-
getUserId
public java.lang.Long getUserId()
Gets the ID of theUser
who created the Vote- Returns:
- the ID of the
User
who created the Vote
-
getValue
public java.lang.Integer getValue()
Gets the value of the Vote- Returns:
- 1 for a positive vote, -1 for a negative vote
-
getItemId
public java.lang.Long getItemId()
Gets the id of the item for which the Vote was cast- Returns:
- the id of the item for which the Vote was cast
-
getItemType
public java.lang.String getItemType()
Gets the type of the item. Can be "Article", "Post" or "PostComment"- Returns:
- the type of the item. Can be "Article", "Post" or "PostComment"
-
getCreatedAt
public java.util.Date getCreatedAt()
Gets the time at which the vote was created- Returns:
- the time at which the vote was created
-
getUpdatedAt
public java.util.Date getUpdatedAt()
Gets the time at which the vote was updated- Returns:
- the time at which the vote was updated
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-