class IABConsentString::Consent::VendorConsent
Public Instance Methods
@return [Set<Purpose>] the set of allowed purposes which are permitted according to this consent string
# File lib/iab_consent_string/consent/vendor_consent.rb, line 50 def getAllowedPurposes raise NotImplementedError end
@return [Integer] an integer equivalent of allowed purpose id bits according to this consent string
# File lib/iab_consent_string/consent/vendor_consent.rb, line 55 def getAllowedPurposesBits raise NotImplementedError end
@return [Set<Integer>] the set of purpose id's which are permitted according to this consent string
# File lib/iab_consent_string/consent/vendor_consent.rb, line 45 def getAllowedPurposesIds raise NotImplementedError end
@return [Integer] the Consent
Manager Provider ID that last updated the consent string
# File lib/iab_consent_string/consent/vendor_consent.rb, line 20 def getCmpId raise NotImplementedError end
@return [Integer] the Consent
Manager Provider version
# File lib/iab_consent_string/consent/vendor_consent.rb, line 25 def getCmpVersion raise NotImplementedError end
@return [Char(2)] the two-letter ISO639-1 language code that CMP asked for consent in
# File lib/iab_consent_string/consent/vendor_consent.rb, line 35 def getConsentLanguage raise NotImplementedError end
@return [Timestamp] the time (milli since epoch) at which the consent string was created
# File lib/iab_consent_string/consent/vendor_consent.rb, line 10 def getConsentRecordCreated raise NotImplementedError end
@return [Timestamp] the time (milli since epoch) at which the consent string was last updated
# File lib/iab_consent_string/consent/vendor_consent.rb, line 15 def getConsentRecordLastUpdated raise NotImplementedError end
@return [Integer] the screen number in the CMP where consent was given
# File lib/iab_consent_string/consent/vendor_consent.rb, line 30 def getConsentScreen raise NotImplementedError end
@return [Integer] the maximum VendorId for which consent values are given.
# File lib/iab_consent_string/consent/vendor_consent.rb, line 60 def getMaxVendorId raise NotImplementedError end
@return [Integer] version of vendor list used in most recent consent string update.
# File lib/iab_consent_string/consent/vendor_consent.rb, line 40 def getVendorListVersion raise NotImplementedError end
@return [Integer] the version of consent string format
# File lib/iab_consent_string/consent/vendor_consent.rb, line 5 def getVersion raise NotImplementedError end
Check wether specified purpose is allowed @param purpose [Purpose] purpose to check @return [Boolean] true if purpose is allowed in this consent, false otherwise
# File lib/iab_consent_string/consent/vendor_consent.rb, line 74 def isPurposeAllowed(purpose) raise NotImplementedError end
Check wether purpose with specified ID is allowed @param purposeId [Integer] purpose ID @return [Boolean] true if purpose is allowed in this consent, false otherwise
# File lib/iab_consent_string/consent/vendor_consent.rb, line 67 def isPurposeIdAllowed(purposeId) raise NotImplementedError end
Check wether vendor with specified ID is allowed @param vendorId [Integer] vendor ID @return [Boolean] true if vendor is allowed in this consent, false otherwise
# File lib/iab_consent_string/consent/vendor_consent.rb, line 81 def isVendorAllowed(vendorId) raise NotImplementedError end
@return [Array<Byte>] the value of this consent as byte array
# File lib/iab_consent_string/consent/vendor_consent.rb, line 86 def toByteArray raise NotImplementedError end