Package com.zendesk.sdk.network.impl
Class StubArticleVoteStorage
- java.lang.Object
-
- com.zendesk.sdk.network.impl.StubArticleVoteStorage
-
- All Implemented Interfaces:
- ArticleVoteStorage, SdkStorage.UserStorage
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 voidclearUserData()This method will be called when user data must be clearedjava.lang.StringgetCacheKey()Gets the cache key for the user storage.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
-
clearUserData
public void clearUserData()
Description copied from interface:SdkStorage.UserStorageThis method will be called when user data must be cleared- Specified by:
clearUserDatain interfaceSdkStorage.UserStorage
-
getCacheKey
public java.lang.String getCacheKey()
Description copied from interface:SdkStorage.UserStorageGets the cache key for the user storage.- Specified by:
getCacheKeyin interfaceSdkStorage.UserStorage- Returns:
- the cache key for the user storage
-
-