Class EventParser

A parser for handling and converting raw event data.

Hierarchy

  • EventParser

Constructors

Methods

  • Parses the raw event data and returns a new RawEvent instance.

    Returns

    A new instance of RawEvent containing the event details.

    Parameters

    • data: string

      The raw JSON string representing the event data.

    • type: string

      The type of the event.

    • lastEventId: string

      The identifier of the last event processed.

    Returns RawEvent

  • Determines whether the provided JSON data contains the specified event property.

    Returns

    True if the parsed data contains the specified event property; otherwise, false.

    Parameters

    • data: string

      The raw JSON string representing the event data.

    • eventName: string

      The name of the event property to look for.

    Returns boolean

Generated using TypeDoc