OpenNMS.js - v2.6.2-SNAPSHOT
    Preparing search index...

    Class OnmsResult<T>

    An [[IOnmsHTTP]] query result.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Construct a new result.

      Type Parameters

      • T

      Parameters

      • data: T

        The payload of the response.

      • Optionalmessage: string

        The status message associated with the result.

      • Optionalcode: number

        The response code of the response.

      • Optionaltype: string

        The request type of the response.

      Returns OnmsResult<T>

    Properties

    code?: number

    The response code associated with this result.

    data: T

    The data, if any.

    message?: string

    The status message associated with this result.

    type?: string

    The request type, if any.

    Methods

    • Create a new success result.

      Parameters

      • response: any
      • Optionalmessage: string
      • Optionalcode: number
      • Optionaltype: string

      Returns OnmsResult<any>