Timer

public struct Timer

A struct representation of a timer entry in the harvest system

  • A unique identifier for this timer

    Declaration

    Swift

    public var identifier: Int?
  • Any notes the user has attatched to the entry

    Declaration

    Swift

    public var notes: String?
  • The name of the client that the timer belongs to

    Declaration

    Swift

    public var clientName: String?
  • The unique identifier for the project

    Declaration

    Swift

    public var projectIdentifier: String?
  • The name of the project that the timer falls under

    Declaration

    Swift

    public var projectName: String?
  • The unique identifier for the task

    Declaration

    Swift

    public var taskIdentifier: String?
  • The name of the task that the timer falls under

    Declaration

    Swift

    public var taskName: String?
  • A boolean to indicate whether or not the timer is currently active.

    Declaration

    Swift

    public var active = false
  • The number of hours that the Timer has been running for

    Declaration

    Swift

    public var hours: Double?
  • The number of hours that the Timer was manually adjusted to be running to. If the user has the timer running for an hour but then manually edits it to be 2.5 hours this property will show 1.5 hours.

    Declaration

    Swift

    public var hoursWithoutTimer: Double?
  • Standard initialiser

    Declaration

    Swift

    public init() {}
  • A dictionary representation of the timer which can be submitted to the API to create a new timer

    Declaration

    Swift

    var serialisedObject: [String: AnyObject]