Class ArticleVote



  • public class ArticleVote
    extends java.lang.Object
    This is a class model for an Article vote. Votes are typically returned as a response from HelpCenterProvider#upvoteArticle(Long, ZendeskCallback) or HelpCenterProvider#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 created
      java.lang.Long getId()
      Gets the ID of the Vote
      java.lang.Long getItemId()
      Gets the id of the item for which the Vote was cast
      java.lang.String getItemType()
      Gets the type of the item.
      java.util.Date getUpdatedAt()
      Gets the time at which the vote was updated
      java.lang.String getUrl()
      Gets the API URL of the Vote resource
      java.lang.Long getUserId()
      Gets the ID of the User who created the Vote
      java.lang.Integer getValue()
      Gets the value of the Vote
      int hashCode() 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArticleVote

        public ArticleVote()
    • 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 the User 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object