Class: Session
Represents a session that belongs to an event.
Hierarchy
-
↳
Session
Constructors
constructor
• new Session(data
, parent
): Session
Parameters
Name | Type | Description |
---|---|---|
data | SessionData | Data to process. |
parent | Event | Parent event to set. |
Returns
Overrides
Defined in
Properties
date
• date: Date
The start date of the session.
Defined in
event
• event: Event
The event this session belongs to.
Defined in
name
• name: string
The name of the session.
Defined in
number
• number: number
The number of the session, in order. (e.g. 1 for "Practice 1")
Defined in
Accessors
duration
• get
duration(): number
Get the estimated duration of the session in minutes.
Returns
number
Defined in
type
• get
type(): SessionType
Get the type of the session.
Returns
(e.g. "practice")