SeasonService
Source: SeasonService.ts:3
Service for managing seasons.
Constructor
new SeasonService(): SeasonServiceInstance 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 seasonyear(number) — Year of the seasonownerId(string | null, default: null) — ID of the owner
Returns
Promise.<Object>— Created season