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 void
clearUserData()
This method will be called when user data must be clearedjava.lang.String
getCacheKey()
Gets the cache key for the user storage.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
-
clearUserData
public void clearUserData()
Description copied from interface:SdkStorage.UserStorage
This method will be called when user data must be cleared- Specified by:
clearUserData
in interfaceSdkStorage.UserStorage
-
getCacheKey
public java.lang.String getCacheKey()
Description copied from interface:SdkStorage.UserStorage
Gets the cache key for the user storage.- Specified by:
getCacheKey
in interfaceSdkStorage.UserStorage
- Returns:
- the cache key for the user storage
-
-