Methods
(static) create(episodeopt, radio_info, radio_oaopt, imageopt, srcopt) → {JSON}
A function to add new radio tracks.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
episode |
Integer |
<optional> |
Radio tracks episode. |
radio_info |
String | Radio information details, refers to RadioInfo. |
|
radio_oa |
String |
<optional> |
Radio on air date. |
image |
String |
<optional> |
Radio tracks image link url. |
src |
String |
<optional> |
Radio tracks source. |
Returns:
An object that contains both an error message and a successful about radio tracks.
- Type
- JSON
(static) delete(id) → {JSON}
A function to delete a specific radio tracks by it's ID.
Parameters:
Name | Type | Description |
---|---|---|
id |
String | UUIDv4 which represents radio tracks ID. |
Returns:
An object that contains a message about radio tracks deletion.
- Type
- JSON
(static) get(id) → {JSON}
A function to get a specific radio tracks.
Parameters:
Name | Type | Description |
---|---|---|
id |
String | UUIDv4 which represents radio tracks ID. |
Returns:
An object that contains a specific of radio tracks.
- Type
- JSON
(static) getAll() → {JSON}
A function to get all radio tracks.
Returns:
An object that contains a list of radio tracks.
- Type
- JSON
(static) update(episodeopt, radio_infoopt, radio_oaopt, imageopt, srcopt) → {JSON}
A function to update radio tracks.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
episode |
Integer |
<optional> |
Radio tracks episode. |
radio_info |
String |
<optional> |
Radio information details, refers to RadioInfo. |
radio_oa |
String |
<optional> |
Radio on air date. |
image |
String |
<optional> |
Radio tracks image link url. |
src |
String |
<optional> |
Radio tracks source. |
Returns:
An object that contains both an error message and a successful about radio tracks.
- Type
- JSON