DataStoreDelegate

Functions

Link copied to clipboard
abstract fun addPoints(points: Int)

add points to the total points

Link copied to clipboard
abstract fun addPublishedMessage(channel: String, messageId: String)

add published message in messageList in current channel

Link copied to clipboard

store array of NumberPredictionSavedWidgetVote containing widgetId and optionId and number of votes

Link copied to clipboard
abstract fun addWidgetPredictionVoted(id: String, optionId: String)

store array of SavedWidgetVote

Link copied to clipboard
abstract fun flushPublishedMessage(vararg channels: String)

removes list of published messages for given channel

Link copied to clipboard
abstract fun getAccessToken(): String?

returns User Access Token for a user profile

Link copied to clipboard

returns json string containing map of chatroom with its message timestamps

Link copied to clipboard
abstract fun getPublishedMessages(channel: String): MutableSet<String>

returns list of published messages for given channel

Link copied to clipboard
abstract fun getTotalPoints(): Int

returns total points for a user

Link copied to clipboard
abstract fun getWidgetClaimToken(): String?

returns json string containing map of widgetId associated with claim token

Link copied to clipboard

returns array of NumberPredictionSavedWidgetVote

Link copied to clipboard

returns array of SavedWidgetVote containing widgetId and optionId

Link copied to clipboard

returns widget selected option id

Link copied to clipboard
abstract fun pointTutorialSeen()

returns boolean for checking status if PointTutorial is seen or not

Link copied to clipboard
abstract fun setAccessToken(accessToken: String)

store User Access Token for a user profile

Link copied to clipboard

store json string containing map of chatroom with its message timestamps

Link copied to clipboard
abstract fun setWidgetClaimToken(token: String)

store json string containing map of widgetId associated with claim token

Link copied to clipboard

returns boolean for showing PointTutorial or not