Class opensocial.DataResponse
This object contains the requested server data mapped to the requested keys.
See also: DataRequest
Defined in: opensocial.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
get(key)
Gets the ResponseItem for the requested field.
|
|
|
If the entire request had a batch level error, returns the error message.
|
|
|
hadError()
Returns true if there was an error in fetching this data from the server.
|
Method Detail
{opensocial.ResponseItem}
get(key)
Gets the ResponseItem for the requested field.
- Parameters:
- key
- Returns:
- {opensocial.ResponseItem} The requested response calculated by the server
{String}
getErrorMessage()
If the entire request had a batch level error, returns the error message.
- Returns:
- {String} A human-readable description of the error that occurred.
{Boolean}
hadError()
Returns true if there was an error in fetching this data from the server.
- Returns:
- {Boolean} True if there was an error; otherwise, false