Package zendesk.support
Class ArticleVote
- java.lang.Object
-
- zendesk.support.ArticleVote
-
public class ArticleVote extends java.lang.ObjectThis 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 booleanequals(java.lang.Object o)java.util.DategetCreatedAt()Gets the time at which the vote was createdjava.lang.LonggetId()Gets the ID of the Votejava.lang.LonggetItemId()Gets the id of the item for which the Vote was castjava.lang.StringgetItemType()Gets the type of the item.java.util.DategetUpdatedAt()Gets the time at which the vote was updatedjava.lang.StringgetUrl()Gets the API URL of the Vote resourcejava.lang.LonggetUserId()Gets the ID of theUserwho created the Votejava.lang.IntegergetValue()Gets the value of the VoteinthashCode()
-
-
-
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 theUserwho created the Vote- Returns:
- the ID of the
Userwho 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-