import AwardedBadgeModel from 'clinical6/src/models/gamification/AwardedBadge.js'
Constructor Summary
Public Constructor | ||
public |
constructor(response: Object) |
Member Summary
Public Members | ||
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 awarded badge |
|
response.id | Number |
|
The id of the awarded badge on the server |
response.type | String |
|
The type of this object ('awarded_badges') |
response.count | Number | Count |
|
response.created_at | String | Created at |
|
response.earned_on_date | String | Date this badge was earned on |
|
response.updated_at | String | Updated at |