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 Boolean attributes currently assigned to the visitor.

    Declaration

    Swift

    public let flags: [String : Bool]?
  • All AudienceStream Date attributes currently assigned to the visitor, which are millisecond-precise Unix timestamps.

    Declaration

    Swift

    public let dates: [String : Int64]?
  • All AudienceStream Number attributes currently assigned to the visitor.

    Declaration

    Swift

    public let metrics: [String : Double]?
  • All AudienceStream String attributes 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

    audiences

    The complete list of audiences the visitor is currently assigned to.

    badges

    The complete list of badges assigned to the visitor.

    flags

    All AudienceStream Boolean attributes currently assigned to the visitor.

    dates

    All AudienceStream Date attributes currently assigned to the visitor, which are millisecond-precise Unix timestamps.

    metrics

    All AudienceStream Number attributes currently assigned to the visitor.

    properties

    All AudienceStream String attributes currently assigned to the visitor.