Constructor
new ResponseEntity(idopt, labelopt, responseopt, categoryIdopt, tagsopt, createdAtopt, updatedAtopt)
Parameters:
Name |
Type |
Attributes |
Default |
Description |
id |
string
|
<optional>
|
null
|
response UUID. |
label |
string
|
<optional>
|
''
|
Label of response. Size: 2-256 characters. |
response |
string
|
<optional>
|
''
|
Response itself. Size: 2-10240 characters. |
categoryId |
string
|
<optional>
|
null
|
Category UUID. |
tags |
array.<string>
|
<optional>
|
[]
|
Response tags. Size: 2-32 characters. |
createdAt |
Date
|
<optional>
|
new Date()
|
Creation date. |
updatedAt |
Date
|
<optional>
|
null
|
Last update Date. |
- Author:
-
- Bruno Morceli - pirofagista@gmail.com
- Source:
Extends
Members
categoryId
Properties:
Name |
Type |
Description |
categoryId |
string
|
Category UUID. |
- Source:
createdAt
Properties:
Name |
Type |
Description |
createdAt |
Date
|
Creation date. |
- Source:
id
Properties:
Name |
Type |
Description |
id |
string
|
response UUID. |
- Source:
label
Properties:
Name |
Type |
Description |
label |
string
|
Label of response. Size: 2-256 characters. |
- Source:
response
Properties:
Name |
Type |
Description |
response |
string
|
Response itself. Size: 2-10240 characters. |
- Source:
Properties:
Name |
Type |
Description |
tags |
array.<string>
|
Response tags. Size: 2-32 characters. |
- Source:
updatedAt
Properties:
Name |
Type |
Description |
updatedAt |
Date
|
Last update Date. |
- Source:
Methods
setData(rawData) → {this}
Set all fields of a object.
Parameters:
Name |
Type |
Description |
rawData |
object
|
Raw data containing all object information. |
- Inherited From:
- Source:
Returns:
Current context.
-
Type
-
this
toJSON() → {object}
Create a new JavaScript Object Literal containing all class properties.
- Inherited From:
- Source:
Returns:
-
Type
-
object