Package zendesk.support
Interface ArticleVoteStorage
-
public interface ArticleVoteStorage
Provides storage of anArticleVote
for each article with an article id.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description ArticleVote
getStoredArticleVote(java.lang.Long articleId)
Gets a storedArticleVote
from the devicevoid
removeStoredArticleVote(java.lang.Long articleId)
Removes anArticleVote
from the devicevoid
storeArticleVote(java.lang.Long articleId, ArticleVote articleVote)
Stores anArticleVote
on the device
-
-
-
Method Detail
-
storeArticleVote
void storeArticleVote(java.lang.Long articleId, ArticleVote articleVote)
Stores anArticleVote
on 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 storedArticleVote
from the device- Parameters:
articleId
- The id of the article containing the vote- Returns:
- The stored
ArticleVote
or null if one is not stored or if the storage is unavailable.
-
removeStoredArticleVote
void removeStoredArticleVote(java.lang.Long articleId)
Removes anArticleVote
from the device- Parameters:
articleId
- The id of the article whose vote is to be removed
-
-