DataStoreDelegateKotlinImpl

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun addPoints(points: Int)

add points to the total points

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

add published message in messageList in current channel

Link copied to clipboard
open override fun addWidgetNumberPredictionVoted(id: String, widgetVoteList: List<NumberPredictionVotes>)

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

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

store array of SavedWidgetVote

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

removes list of published messages for given channel

Link copied to clipboard
open override fun getAccessToken(): String?

returns User Access Token for a user profile

Link copied to clipboard
open override fun getChatRoomMessageReceived(): String?

returns json string containing map of chatroom with its message timestamps

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

returns list of published messages for given channel

Link copied to clipboard
open override fun getTotalPoints(): Int

returns total points for a user

Link copied to clipboard
open override 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
open override fun pointTutorialSeen()

returns boolean for checking status if PointTutorial is seen or not

Link copied to clipboard
open override fun setAccessToken(accessToken: String)

store User Access Token for a user profile

Link copied to clipboard
open override fun setChatRoomMessageReceived(data: String)

store json string containing map of chatroom with its message timestamps

Link copied to clipboard
open override fun setWidgetClaimToken(token: String)

store json string containing map of widgetId associated with claim token

Link copied to clipboard
open override fun shouldShowPointTutorial(): Boolean

returns boolean for showing PointTutorial or not