Class Event

A class representing a Parkrun event.

Hierarchy

  • Event

Constructors

Methods

  • Get the Event ID of this event.

    Returns

    Event ID.

    Returns number

  • Get the internal name for this event, in a URL / URI friendly format.

    Returns

    Internal name.

    Example

    event.getInternalName(); // 'example-juniors'
    

    Returns string

  • Get the short name for this event.

    Returns

    Event short name.

    Example

    event.getShortName(); // 'Example juniors'
    

    Returns string

  • Get the name of this event.

    Returns

    Example

    event.getName(); // 'Example junior parkrun'
    

    Returns string

  • Get the location of this event.

    Returns

    Event location.

    Example

    event.getLocation(); // 'Example Park'
    

    Returns string

  • Get the Parkrun Country Code for this event.

    Returns

    Country Code.

    Example

    event.getCountryCode(); // 97
    

    Returns number

  • Get the preferred language for this event.

    Returns

    preferred language

    Example

    event.getPreferredLangauge(); // 'en'
    

    Returns string

  • Get the Numerical Series ID for this event.

    See

    getEventDay for this value as a string.

    Returns

    Series ID.

    Returns number

  • Get the day of the week that this event takes place.

    Returns

    String day.

    Returns "Saturday" | "Sunday" | "Unknown"

  • Boolean showing weather this event is active or not.

    Returns

    is active?

    Returns boolean

  • Get the string status of this event.

    Returns

    status.

    Returns string

  • Get the amount of sessions that have taken place at this event.

    Only available when this class is constructed via getEvent.

    Returns

    No. of sessions taken place.

    Throws

    ParkrunDataNotAvailableError When not using getEvent, this value is not provided and trying to access it will result in this error.

    Returns number

  • Boolean representing weather this event is public or not.

    Returns

    is public event?

    Returns boolean

Generated using TypeDoc