Package zendesk.support
Interface ArticleVoteStorage
-
public interface ArticleVoteStorageProvides storage of anArticleVotefor each article with an article id.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description ArticleVotegetStoredArticleVote(java.lang.Long articleId)Gets a storedArticleVotefrom the devicevoidremoveStoredArticleVote(java.lang.Long articleId)Removes anArticleVotefrom the devicevoidstoreArticleVote(java.lang.Long articleId, ArticleVote articleVote)Stores anArticleVoteon the device
-
-
-
Method Detail
-
storeArticleVote
void storeArticleVote(java.lang.Long articleId, ArticleVote articleVote)Stores anArticleVoteon the device- Parameters:
articleId- The id of the article containing the votearticleVote- The article vote to store
-
getStoredArticleVote
ArticleVote getStoredArticleVote(java.lang.Long articleId)
Gets a storedArticleVotefrom the device- Parameters:
articleId- The id of the article containing the vote- Returns:
- The stored
ArticleVoteor null if one is not stored or if the storage is unavailable.
-
removeStoredArticleVote
void removeStoredArticleVote(java.lang.Long articleId)
Removes anArticleVotefrom the device- Parameters:
articleId- The id of the article whose vote is to be removed
-
-