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

Constructors

Properties

Constructors

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).