get Arc XPStory
fun getArcXPStory( id: String, listener: ArcXPContentCallback? = null, shouldIgnoreCache: Boolean = false): LiveData<Either<ArcXPException, ArcXPStory>>
Content copied to clipboard
getArcXPStory This function requests a story / article result by ANS ID
returns result with ans type = "story" either through callback interface or livedata
Return
LiveData subscribe to this livedata for successful results (or use callback interface) Note: this returns the same live data, so can subscribe directly to storyLiveData once for results
Parameters
id
ANS ID
listener
Callback interface for optional callback override ArcXPContentCallback.onGetContentSuccess for success override ArcXPContentCallback.onError for failure or leave null and use livedata result and error livedata
should Ignore Cache
if true, we ignore caching for this call only