Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class Consent(val id: Long, val text: String, val details: String?, val state: ConsentState)

Consent, The consent is an item in a ConsentGroup that a user can accept or decline.

Link copied to clipboard
data class ConsentGroup(val identifier: String, val title: String?, val text: String?, val subConsentsTitle: String?, val textActions: List<TextAction>, val mainConsents: List<Consent>, val subConsents: List<Consent>)

ConsentGroup, This object should be presented to the user the following way.

Link copied to clipboard

Load strategy for getting consents.

Link copied to clipboard

ConsentState, indicates what a user have answered to a specific consent.

Link copied to clipboard
data class ConsentUserResponse(val id: Long, val accepted: Boolean)

ConsentResponse, the response for a single consent. When a user accept or decline a main or sub consent a ConsentResponse should be sent to update the value.

Link copied to clipboard
data class TextAction(val highlight: String, val content: String, val type: ActionType)

TextAction, This object is used to add action to some part of a bigger text.