mirror of
https://github.com/cubixle/iabtcfv2.git
synced 2026-04-24 23:04:44 +01:00
Add comment on functions
This commit is contained in:
@@ -16,22 +16,29 @@ type TCData struct {
|
||||
PublisherTC *PublisherTC
|
||||
}
|
||||
|
||||
// Returns true if user has given consent to purpose id
|
||||
func (t *TCData) IsPurposeAllowed(id int) bool {
|
||||
return t.CoreString.IsPurposeAllowed(id)
|
||||
}
|
||||
|
||||
// Returns true if legitimate interest is established for purpose id
|
||||
// and user didn't exercise their right to object
|
||||
func (t *TCData) IsPurposeLIAllowed(id int) bool {
|
||||
return t.CoreString.IsPurposeLIAllowed(id)
|
||||
}
|
||||
|
||||
// Returns true if user has given consent to vendor id processing their personal data
|
||||
func (t *TCData) IsVendorAllowed(id int) bool {
|
||||
return t.CoreString.IsVendorAllowed(id)
|
||||
}
|
||||
|
||||
// Returns true if transparency for vendor id's legitimate interest is established
|
||||
// and user didn't exercise their right to object
|
||||
func (t *TCData) IsVendorLIAllowed(id int) bool {
|
||||
return t.CoreString.IsVendorLIAllowed(id)
|
||||
}
|
||||
|
||||
// Returns structure as a base64 raw url encoded string
|
||||
func (t *TCData) ToTCString() string {
|
||||
var segments []string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user