Create SegmentType and TcfVersion constants

This commit is contained in:
Thomas LAY
2020-04-06 14:30:24 +02:00
parent 32689c75f9
commit 34eb7e045a
5 changed files with 74 additions and 54 deletions
+19
View File
@@ -0,0 +1,19 @@
package iabtcfv2
type SegmentType int
const (
SegmentTypeUndefined SegmentType = -1
SegmentTypeCoreString SegmentType = 0
SegmentTypeDisclosedVendors SegmentType = 1
SegmentTypeAllowedVendors SegmentType = 2
SegmentTypePublisherTC SegmentType = 3
)
type TcfVersion int
const (
TcfVersionUndefined TcfVersion = -1
TcfVersion1 TcfVersion = 1
TcfVersion2 TcfVersion = 2
)