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 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
public void storeArticleVote(java.lang.Long articleId, ArticleVote articleVote)Description copied from interface:ArticleVoteStorageStores anArticleVoteon the device- Specified by:
storeArticleVotein 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:ArticleVoteStorageGets a storedArticleVotefrom the device- Specified by:
getStoredArticleVotein interfaceArticleVoteStorage- 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
public void removeStoredArticleVote(java.lang.Long articleId)
Description copied from interface:ArticleVoteStorageRemoves anArticleVotefrom the device- Specified by:
removeStoredArticleVotein interfaceArticleVoteStorage- Parameters:
articleId- the id of the article whose vote is to be removed
-
-