Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

This is part of the RcMessageFragment returned in the RealityCheckMessage.
It gives information on how a text segment needs to be formatted
See Entries below.

Link copied to clipboard
sealed class RcError : Exception

RcError is used to represent errors that can occur
when trying to get the RealityCheckMessage information from the server.
See Types section for the available errors.

Link copied to clipboard
data class RcMessageFragment(val content: String, val type: MessageFragmentType, val colorrgb: String?, val backgroundcolorrgb: String?)

RcMessageFragment is part of the RealityCheckMessage, more specifically RealityCheckMessage.rcMessageFragments which is a lists of this object.
It contains a part of the message from the RealityCheckMessage.loginText.
And it contains information on how the text should be displayed to the user using MessageFragmentType.

Link copied to clipboard
interface RcTokenProvider

To use RcTokenProvider, create an implementation of it where the method getValidToken() will return a valid token.
It is Needed for authorization when contacting server
After setting it up, provide it as a parameter to the RcRepositoryProvider.

Link copied to clipboard
data class RealityCheckMessage(val win: Int, val wager: Int, val loginAt: Date?, val loginHours: Int, val difference: Int, val createdAt: Date?, val loginMinutes: Int, val loginText: String, val notificationId: String, val showCancelButton: Boolean, val showContinueButton: Boolean, val designVariant: DesignVariant, val responsibleGamingLink: String, val showAccountHistoryButton: Boolean, val showResponsibleGamingLink: Boolean, val rcMessageFragments: List<RcMessageFragment>)

RealityCheckMessage is the object that is returned every hour of active login time. See each property for more information.