ContentCardsUpdatedEvent

class ContentCardsUpdatedEvent(contentCards: List<Card>, userId: String?, timestampSeconds: Long, isFromOfflineStorage: Boolean)

Return

The user id this update belongs to

Parameters

contentCards

The list of cards

userId

The user id for this update (Note: it is possible to receive events from previous users, so you may want to verify this is your current user)

timestampSeconds

The timestamp of the event, in seconds

isFromOfflineStorage

Whether this update came from offline storage or a server update

Constructors

ContentCardsUpdatedEvent
Link copied to clipboard
fun ContentCardsUpdatedEvent(contentCards: List<Card>, userId: String?, timestampSeconds: Long, isFromOfflineStorage: Boolean)
The list of cards

Types

Companion
Link copied to clipboard
object Companion

Functions

getLastUpdatedInSecondsFromEpoch
Link copied to clipboard
fun getLastUpdatedInSecondsFromEpoch(): Long
isTimestampOlderThan
Link copied to clipboard
fun isTimestampOlderThan(ageSeconds: Long): Boolean
toString
Link copied to clipboard
open override fun toString(): String

Properties

allCards
Link copied to clipboard
val allCards: MutableList<Card>
cardCount
Link copied to clipboard
val cardCount: Int
The total number of cards in this update, including control cards.
contentCards
Link copied to clipboard
private val contentCards: List<Card>
The list of cards
isEmpty
Link copied to clipboard
val isEmpty: Boolean
isFromOfflineStorage
Link copied to clipboard
val isFromOfflineStorage: Boolean
Whether this update came from offline storage or a server update
timestampSeconds
Link copied to clipboard
val timestampSeconds: Long
The timestamp of the event, in seconds
unviewedCardCount
Link copied to clipboard
val unviewedCardCount: Int
The number of unviewed cards in this update, excluding control cards.
userId
Link copied to clipboard
val userId: String?
The user id for this update (Note: it is possible to receive events from previous users, so you may want to verify this is your current user)