Infohub JS API
Loading...
Searching...
No Matches
RestResponse Class Reference

Description

Inheritance diagram for RestResponse:
ApiResponse

Public Member Functions

 constructor (status, responsedata, contentType, message=null)
get getContentType ()
Public Member Functions inherited from ApiResponse
 asJson ()
 constructor (status, responsedata, message=null)
get data ()
 dump (prefix='')
 fromJson (jobj)
 getData ()
 getMessage ()
 getStatus ()
get message ()
get status ()

Function Documentation

◆ constructor()

constructor ( status,
responsedata,
contentType,
message = null )
Parameters
{*}status REST status code
{*}responsedata Response as JSON object
{string|null}contentType
{string|null}message Optional message
Examples
C:/xampp/htdocs/InfohubJsApi/src/tools/RestServices.js.

◆ getContentType()

get getContentType ( )