adding setters and getters for properties in eventprops for swift wrappers (#1239)

This commit is contained in:
absaroj 2024-01-30 18:54:52 -08:00 коммит произвёл GitHub
Родитель 5d539d18ea
Коммит bad56a0b93
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 44 добавлений и 0 удалений

Просмотреть файл

@ -45,6 +45,50 @@ public final class EventProperties {
odwEventProperties = ODWEventProperties(name: name, properties: properties, piiTags: piiTags)
}
/// Event name.
public var name:String {
get {
odwEventProperties.name
}
set {
odwEventProperties.name = newValue
}
}
/// Event priority.
public var priority:EventPriority {
get {
odwEventProperties.priority
}
set {
odwEventProperties.priority = newValue
}
}
/// Event properties. Key is property name, value is property value.
public var properties:[String: Any] {
get {
odwEventProperties.properties
}
}
/// Event PII (personal identifiable information ) tags. Key is property name, value is ODWPiiKind value.
public var piiTags: [String: NSNumber] {
get {
odwEventProperties.piiTags
}
}
/// Base Type of an event. This field is populated in Records.Type
public var eventType:String {
get {
odwEventProperties.eventType
}
set {
odwEventProperties.eventType = newValue
}
}
/**
Sets the base type of the event, populated in Records.Type.