Skip to main content

Class: Session

Represents a session that belongs to an event.

Hierarchy​

Constructors​

constructor​

• new Session(data, parent): Session

Parameters​

NameTypeDescription
dataSessionDataData to process.
parentEventParent event to set.

Returns​

Session

Overrides​

Base.constructor

Defined in​

structures/Session.ts:49

Properties​

date​

• date: Date

The start date of the session.

Defined in​

structures/Session.ts:37


event​

• event: Event

The event this session belongs to.

Defined in​

structures/Session.ts:43


name​

• name: string

The name of the session.

Defined in​

structures/Session.ts:31


number​

• number: number

The number of the session, in order. (e.g. 1 for "Practice 1")

Defined in​

structures/Session.ts:25

Accessors​

duration​

• get duration(): number

Get the estimated duration of the session in minutes.

Returns​

number

Defined in​

structures/Session.ts:81


type​

• get type(): SessionType

Get the type of the session.

Returns​

SessionType

(e.g. "practice")

Defined in​

structures/Session.ts:64