Document API component

Hierarchy

Constructors

Properties

Methods

Constructors

  • Create a Document object for the API

    Parameters

    • document: string

      The document file's link or id

    • isItAnID: boolean = false

      Whether document is an id (true) or a link (false)

    • Optional caption: string

      Describes the specified document media

    • Optional filename: string

      Describes the filename for the specific document

    Returns Document

Properties

caption?: string

The file's caption

filename?: string

The file's filename

id?: string

The id of the media

link?: string

The link of the media

Methods

  • The message built as a string. In most cases it's just JSON.stringify(this)

    Returns string

Generated using TypeDoc