Methods
create(name, count, choreoId, MemberIds) → {Promise.<Object>}
Create a new hit.
Parameters:
| Name | Type | Description |
|---|---|---|
name | string | Name of the hit |
count | number | Count for the hit |
choreoId | string | Choreography ID |
MemberIds | Array | Array of member IDs |
- Source
Returns:
Created hit
- Type:
- Promise.<Object>
remove(hitId) → {Promise.<Object>}
Remove a hit by its ID.
Parameters:
| Name | Type | Description |
|---|---|---|
hitId | string | Hit ID |
- Source
Returns:
Response data
- Type:
- Promise.<Object>
setCount(hitId, count) → {Promise.<Object>}
Set the count for a hit.
Parameters:
| Name | Type | Description |
|---|---|---|
hitId | string | Hit ID |
count | number | New count |
- Source
Returns:
Updated hit
- Type:
- Promise.<Object>
update(hitId, name, count, MemberIds) → {Promise.<Object>}
Update a hit's details.
Parameters:
| Name | Type | Description |
|---|---|---|
hitId | string | Hit ID |
name | string | Name of the hit |
count | number | Count for the hit |
MemberIds | Array | Array of member IDs |
- Source
Returns:
Updated hit
- Type:
- Promise.<Object>