CleanInsightsSDK Documentation Beta

Class Data​Point

open class DataPoint: NSObject, Codable
DataPoint DataPoint Codable Codable DataPoint->Codable NSObject NSObject DataPoint->NSObject Event Event Event->DataPoint Visit Visit Visit->DataPoint

Nested Types

DataPoint.CodingKeys

Subclasses

Event
Visit

Conforms To

Codable
NSObject

Initializers

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

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

Parameters

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.

Properties

campaign​Id

let campaignId: String

The campaign ID this data point is for.

times

var times: UInt

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

first

let first: Date

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

last

let last: Date

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

description

var description: String