Class: H2HLeague#

index.H2HLeague

Details History Fixtures Upcoming

Hierarchy#

  • FPL

    ↳ H2HLeague

Constructors#

constructor#

+ new H2HLeague(id: number | number[]): H2HLeague

Parameters:#

NameType
idnumber | number[]

Returns: H2HLeague

Defined in: models/h2h-league.ts:20

Properties#

id#

• id: number | number[]

Defined in: models/h2h-league.ts:20

Methods#

getDetails#

â–¸ getDetails(): Promise<H2HLeagueDelegate | H2HLeaguesDelegate>

Returns the current league’s details & standings of the given page.

Returns: Promise<H2HLeagueDelegate | H2HLeaguesDelegate>

Defined in: models/h2h-league.ts:28


getEntryDetails#

â–¸ getEntryDetails(entry?: number, page?: number): Promise<H2HStandingDelegate | H2HLeaguesDelegate>

Returns gameweek matches in league.

Parameters:#

NameTypeDefault valueDescription
entrynumber1-
pagenumber1

Returns: Promise<H2HStandingDelegate | H2HLeaguesDelegate>

Defined in: models/h2h-league.ts:116


getFixtures#

â–¸ getFixtures(event?: number, page?: number): Promise<H2HMatchDelegate | H2HMatchesDelegate>

Returns gameweek matches in league.

Parameters:#

NameTypeDefault valueDescription
eventnumber1
pagenumber1

Returns: Promise<H2HMatchDelegate | H2HMatchesDelegate>

Defined in: models/h2h-league.ts:68