UserCondition

@Serializable
data class UserCondition(val comparisonAttribute: String, val comparator: Int = -1, val stringValue: String? = null, val doubleValue: Double? = null, val stringArrayValue: Array<String>? = null) : ConditionAccessor(source)

User Condition.

Constructors

Link copied to clipboard
constructor(comparisonAttribute: String, comparator: Int = -1, stringValue: String? = null, doubleValue: Double? = null, stringArrayValue: Array<String>? = null)

Properties

Link copied to clipboard
@SerialName(value = "c")
val comparator: Int

The operator which defines the relation between the comparison attribute and the comparison value.

Link copied to clipboard
@SerialName(value = "a")
val comparisonAttribute: String

The User Object attribute that the condition is based on. Can be "User ID", "Email", "Country" or any custom attribute.

Link copied to clipboard
@SerialName(value = "d")
val doubleValue: Double? = null

The Double value that the attribute is compared or {@code null} if the comparator use a different type.

Link copied to clipboard
@Transient
open override val prerequisiteFlagCondition: PrerequisiteFlagCondition? = null
Link copied to clipboard
@Transient
open override val segmentCondition: SegmentCondition? = null
Link copied to clipboard
@SerialName(value = "l")
val stringArrayValue: Array<String>? = null

The String Array value that the attribute is compared or {@code null} if the comparator use a different type.

Link copied to clipboard
@SerialName(value = "s")
val stringValue: String? = null

The String value that the attribute is compared or {@code null} if the comparator use a different type.

Link copied to clipboard
@Transient
open override val userCondition: UserCondition