Constructors
constructor
- new ApiResponse(statusCode?: number, responseText?: string, errorMessage?: string): ApiResponse
-
Parameters
-
statusCode: number = 200
-
responseText: string = ''
-
errorMessage: string = ''
Properties
Private _errorMessage
_errorMessage: string
Private _responseText
_responseText: string
Private _statusCode
_statusCode: number
Accessors
errorMessage
- set errorMessage(errorMessage: string): void
responseText
- get responseText(): string
- set responseText(responseText: string): void
-
Returns string
-
Parameters
Returns void
statusCode
- get statusCode(): number
- set statusCode(statusCode: number): void
-
Returns number
-
Parameters
Returns void
Retorna um JSON corresponde à resposta padrão da API