Constructor Summary
| Public Constructor | ||
| public |
constructor(response: Object) |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
featured: Any |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
Public Constructors
public constructor(response: Object) source
Params:
| Name | Type | Attribute | Description |
| response | Object | JSON formatted response of a single badge |
|
| response.id | Number |
|
The id of the badge on the server |
| response.type | String |
|
The type of this object ('badges') |
| response.title | String |
|
Title |
| response.based_on | String | Must be either |
|
| response.cache_token | Any | Not sure what this does |
|
| response.created_at | String | Created at |
|
| response.description | String | Description |
|
| response.disabled_image | Any | Image wrapper |
|
| response.disabled_image.disabled_image | Any | Image Object when the item is not active |
|
| response.enabled | Boolean | Is this enabled |
|
| response.featured | Any | Not sure what this means |
|
| response.image | Any | Image wrapper |
|
| response.image.image | Any | Image Object |
|
| response.position | Number | Position in which to sort |
|
| response.redemption_points | String | Description |
|
| response.start_at | String | Must be DateTime |
|
| response.start_point | String | Must be either |
|
| response.threshold | Number | Must be numeric |
|
| response.time_unit | String | Must be one of |
|
| response.updated_at | String | Updated at |
Manual
Reference
Source
Test
