CleanInsightsSDK Documentation Beta

Class Visit

open class Visit: DataPoint
Visit Visit DataPoint DataPoint Visit->DataPoint

Nested Types

Visit.CodingKeys

Superclass

DataPoint

Initializers

init(scene​Path:​campaign​Id:​times:​first:​last:​)

public init(scenePath: [String], campaignId: String, times: UInt = 1, first: Date = Date(), last: Date = Date())

Parameters

scene​Path [String]

A hierarchical path to the scene visited.

campaign​Id String

The campaign ID this data point is for.

times UInt

Number of times this data point has arisen between first and last. OPTIONAL, defaults to 1.

first Date

The first time this data point has arisen. OPTIONAL, defaults to now.

last Date

The last time this data point has arisen. OPTIONAL, defaults to now.

init(from:​)

public required init(from decoder: Decoder) throws

Properties

scene​Path

let scenePath: [String]

A hierarchical path to the scene visited.

description

var description: String

Methods

encode(to:​)

public override func encode(to encoder: Encoder) throws