H5P NodeJS Library
    Preparing search index...

    A response sent back to the H5P client if a requests succeeded. Note that MANY requests don't use this response structure but simply send back the payload data.

    Implements

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • data: any

        the payload data

      • Optionalmessage: string

        (optional) A message displayed to the user. Should be localized if possible.

      • Optionaldetails: string

        (optional) Further text to be displayed to the user. Should be localized if possible.

      Returns AjaxSuccessResponse

    Properties

    data: any

    the payload data

    details?: string

    (optional) Further text to be displayed to the user. Should be localized if possible.

    message?: string

    (optional) A message displayed to the user. Should be localized if possible.

    success: boolean = true

    True if the request was successful, false if something went wrong (errorCode and message should be filled in then).