Methods
(static) create(name, name_jpopt, imageopt, descriptionopt, websiteopt, socialopt, scheduleopt, start_timeopt) → {JSON}
A function to add new radio information.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
String | Radio information name. |
|
name_jp |
String |
<optional> |
Radio information name in Japanese. |
image |
String |
<optional> |
Radio information image. |
description |
String |
<optional> |
Radio information description. |
website |
String |
<optional> |
Radio information website |
social |
String |
<optional> |
Radio information social links. |
schedule |
String |
<optional> |
Radio information schedule. |
start_time |
String |
<optional> |
Radio information start time. |
Returns:
An object that contains both an error message and a successful about radio information.
- Type
- JSON
(static) delete() → {JSON}
A function to delete a specific radio information stored in database.
Parameters:
Type | Description |
---|---|
String | UUIDv4 which is represents a radio information ID. |
Returns:
An object that contains a message about radio information deletion.
- Type
- JSON
(static) get() → {JSON}
A function to get a specific radio information stored in database.
Parameters:
Type | Description |
---|---|
String | UUIDv4 which is represents a radio information ID. |
Returns:
An object that contains specific radio information.
- Type
- JSON
(static) getAll() → {JSON}
A function to get all of radio information stored in database.
Returns:
An object that contains radio information.
- Type
- JSON
(static) update(nameopt, name_jpopt, imageopt, descriptionopt, websiteopt, socialopt, scheduleopt, start_timeopt) → {JSON}
A function to add new radio information.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
String |
<optional> |
Radio information name. |
name_jp |
String |
<optional> |
Radio information name in Japanese. |
image |
String |
<optional> |
Radio information image. |
description |
String |
<optional> |
Radio information description. |
website |
String |
<optional> |
Radio information website |
social |
String |
<optional> |
Radio information social links. |
schedule |
String |
<optional> |
Radio information schedule. |
start_time |
String |
<optional> |
Radio information start time. |
Returns:
An object that contains both an error message and a successful about radio information.
- Type
- JSON