EngineResponse
public struct EngineResponse : Codable, Equatable
Response object containing visitor profile data returned by the Moments API.
-
The complete list of audiences the visitor is currently assigned to.
Declaration
Swift
public let audiences: [String]? -
The complete list of badges assigned to the visitor.
Declaration
Swift
public let badges: [String]? -
All AudienceStream
Booleanattributes currently assigned to the visitor.Declaration
Swift
public let flags: [String : Bool]? -
All AudienceStream
Dateattributes currently assigned to the visitor, which are millisecond-precise Unix timestamps.Declaration
Swift
public let dates: [String : Int64]? -
All AudienceStream
Numberattributes currently assigned to the visitor.Declaration
Swift
public let metrics: [String : Double]? -
All AudienceStream
Stringattributes currently assigned to the visitor.Declaration
Swift
public let properties: [String : String]? -
Creates an EngineResponse with the specified visitor profile data.
Declaration
Swift
public init(audiences: [String]? = nil, badges: [String]? = nil, flags: [String: Bool]? = nil, dates: [String: Int64]? = nil, metrics: [String: Double]? = nil, properties: [String: String]? = nil)Parameters
audiencesThe complete list of audiences the visitor is currently assigned to.
badgesThe complete list of badges assigned to the visitor.
flagsAll AudienceStream
Booleanattributes currently assigned to the visitor.datesAll AudienceStream
Dateattributes currently assigned to the visitor, which are millisecond-precise Unix timestamps.metricsAll AudienceStream
Numberattributes currently assigned to the visitor.propertiesAll AudienceStream
Stringattributes currently assigned to the visitor.
View on GitHub