Class: ApiResponse_

Classes_Responses~ApiResponse_(fetchedResponse)

Base class for responses returned by the PSS Fleet Data API.

Constructor

new ApiResponse_(fetchedResponse)

constructor - Creates an instance of ApiResponse_ based on the provided HTTPResponse.

Parameters:
Name Type Description
fetchedResponse HTTPResponse

The original response from the PSS Fleet Data API.

Source:

Members

responseJson :object|Array.<object>

responseJson - The object or array of objects parsed from the JSON in the response, if the statusCode is in the 2xx range. Else, null.

Type:
  • object | Array.<object>
Source:

statusCode :integer

statusCode - The HTTP status code of the response.

Type:
  • integer
Source: