Constructors
constructor
- new OnmsResult(data: T, message?: string, code?: number, type?: string): OnmsResult
-
Parameters
-
data: T
-
Optional message: string
-
Optional code: number
-
Optional type: string
Methods
Static error
- error(message: string, code?: number): OnmsResult<any>
-
Parameters
-
message: string
-
Optional code: number
Static ok
- ok(response: any, message?: string, code?: number, type?: string): OnmsResult<any>
-
Parameters
-
response: any
-
Optional message: string
-
Optional code: number
-
Optional type: string
An IOnmsHTTP query result.