SeasonService

Source: SeasonService.ts:3

Service for managing seasons.


Constructor

new SeasonService(): SeasonService

Instance Methods

getAll(): Promise.<Array>

Get all seasons.

Returns

  • Promise.<Array> — Array of season objects

create( name: string, year: number, ownerId: string | null, ): Promise.<Object>

Create a new season.

Parameters

  • name (string) — Name of the season
  • year (number) — Year of the season
  • ownerId (string | null, default: null) — ID of the owner

Returns

  • Promise.<Object> — Created season