Package com.zendesk.sdk.storage
Interface RequestStorage
-
- All Superinterfaces:
- SdkStorage.UserStorage
public interface RequestStorage extends SdkStorage.UserStorage
Provides storage of Request IDs and Comment last read timestamps.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.Integer
getCommentCount(java.lang.String requestId)
Stores a comment count when this request was last readjava.util.List<java.lang.String>
getStoredRequestIds()
Get the request IDs stored on the device.void
setCommentCount(java.lang.String requestId, int commentCount)
Gets the comment count of when the request was last readvoid
storeRequestId(java.lang.String requestId)
Stores a request ID on the device-
Methods inherited from interface com.zendesk.sdk.storage.SdkStorage.UserStorage
clearUserData, getCacheKey
-
-
-
-
Method Detail
-
getStoredRequestIds
java.util.List<java.lang.String> getStoredRequestIds()
Get the request IDs stored on the device.- Returns:
- The list of request IDs stored on the device. If none are present or if storage was not initialised correctly it will return an empty list.
-
storeRequestId
void storeRequestId(java.lang.String requestId)
Stores a request ID on the device- Parameters:
requestId
- The request ID to store on the device.
-
setCommentCount
void setCommentCount(java.lang.String requestId, int commentCount)
Gets the comment count of when the request was last read- Parameters:
requestId
- The request idcommentCount
- The comment count when the request was last read
-
getCommentCount
java.lang.Integer getCommentCount(java.lang.String requestId)
Stores a comment count when this request was last read- Parameters:
requestId
- The id of the request- Returns:
- The timestamp that the request was last read
-
-