Package com.zendesk.sdk.network.impl
Class StubArticleVoteStorage
- java.lang.Object
-
- com.zendesk.sdk.network.impl.StubArticleVoteStorage
-
- All Implemented Interfaces:
- ArticleVoteStorage
public class StubArticleVoteStorage extends java.lang.Object implements ArticleVoteStorage
-
-
Constructor Summary
Constructors Constructor and Description StubArticleVoteStorage()
-
Method Summary
All Methods Instance Methods Concrete 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
public void storeArticleVote(java.lang.Long articleId, ArticleVote articleVote)
Description copied from interface:ArticleVoteStorage
Stores anArticleVote
on the device- Specified by:
storeArticleVote
in interfaceArticleVoteStorage
- Parameters:
articleId
- The id of the article containing the votearticleVote
- The article vote to store
-
getStoredArticleVote
public ArticleVote getStoredArticleVote(java.lang.Long articleId)
Description copied from interface:ArticleVoteStorage
Gets a storedArticleVote
from the device- Specified by:
getStoredArticleVote
in interfaceArticleVoteStorage
- 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
public void removeStoredArticleVote(java.lang.Long articleId)
Description copied from interface:ArticleVoteStorage
Removes anArticleVote
from the device- Specified by:
removeStoredArticleVote
in interfaceArticleVoteStorage
- Parameters:
articleId
- the id of the article whose vote is to be removed
-
-