Options
All
  • Public
  • Public/Protected
  • All
Menu

The base implementation of a calendar activity.

since

1.0

Type parameters

  • T

    the type of an optional user object

Hierarchy

Implements

Index

Constructors

constructor

  • Constructs a new calendar activity with the given name, start time, and end time.

    since

    1.0

    Parameters

    • name: string

      the name of the activity

    • startTime: number

      the start time of the activity

    • endTime: number

      the end time of the activity

    Returns CalendarActivityBase

Properties

Static DEFAULT_DURATION

DEFAULT_DURATION: number = TimeUtil.ofDays(5)

Methods

getEndTime

  • getEndTime(): number

getId

  • getId(): string
  • The unique id of the activity.

    since

    1.0

    Returns string

    the unique activity ID

getName

  • getName(): string
  • The name of the activity, for example "Flight 3441".

    since

    1.0

    Returns string

    the name of the activity

getStartTime

  • getStartTime(): number

getUserObject

  • getUserObject(): T
  • Returns the user object associated to the activity.

    since

    1.0

    Returns T

    the user object associated to the activity

setUserObject

  • setUserObject(obj: T): void
  • Set the user object associated to the activity.

    since

    1.0

    Parameters

    • obj: T

      the user object to associate to the activity

    Returns void

toString

  • toString(): string
  • Returns string