Returns the consent for a given campaign, if any available.
The campaign ID to get the consent for.
the CampaignConsent for the given campaign or null, if consent unknown.
Returns the consent for a given feature, if any available.
The feature to get the consent for.
the FeatureConsent for the given feature or null, if consent unknown.
User denies consent to run a specific campaign.
User denies consent to evaluate a Feature.
User consents to run a specific campaign.
The campaign ID.
The campaign.
User consents to evaluate a Feature.
Checks the consent state of a campaign.
The campaign ID to check the consent state of.
the current state of consent.
Checks the consent state of a feature.
The feature to check the consent state of.
the current state of consent.
Generated using TypeDoc
This class keeps track of all granted or denied consents of a user.
There are two different types of consents:
The time of the consent is recorded along with its state: If it was actually granted or denied.
Consents for common features are given indefinitely, since they are only ever recorded along with running campaigns.
Consents for campaigns only last for a certain amount of days.