-
-
Add a comment
Parameters:
Name |
Type |
Description |
comment |
Comment
|
|
Returns:
this
-
Type
-
Discussion
-
addField(field)
-
Add a field
Parameters:
Name |
Type |
Description |
field |
Field
|
|
- Inherited From:
-
Returns:
this
-
Type
-
ExtensibleData
-
addLink(link)
-
Add a link
Parameters:
Name |
Type |
Description |
link |
Link
|
|
- Inherited From:
-
Returns:
this
-
Type
-
ExtensibleData
-
-
Get the comments
Returns:
-
Type
-
Array.<Comment>
-
getContributor()
-
Get the contributor
Returns:
contributor
-
Type
-
ResourceReference
-
getCreated()
-
Get the created
Returns:
created
-
Type
-
Date
-
getDetails()
-
Get the details
Returns:
details
-
Type
-
String
-
getFields()
-
Get the fields
- Inherited From:
-
Returns:
-
Type
-
Array.<Field>
-
getId()
-
Get the object's id.
- Inherited From:
-
Returns:
Id
-
Type
-
String
-
getLink(rel)
-
Get a link
Parameters:
Name |
Type |
Description |
rel |
String
|
|
- Inherited From:
-
Returns:
-
Type
-
Link
-
getLinks()
-
Get the links
- Inherited From:
-
Returns:
-
Type
-
Array.<Link>
-
getModified()
-
Get the modified
Returns:
modified
-
Type
-
Date
-
-
Get the numberOfComments
Returns:
numberOfComments
-
Type
-
Integer
-
getTitle()
-
Get the title
Returns:
title
-
Type
-
String
-
init(json)
-
Initialize from JSON
Parameters:
Name |
Type |
Description |
json |
Object
|
|
- Overrides:
Returns:
Discussion this
-
<static> isInstance(obj)
-
Check whether the given object is an instance of this class.
Parameters:
Name |
Type |
Description |
obj |
Object
|
|
Returns:
-
Type
-
Boolean
-
-
Set the comments
Parameters:
Name |
Type |
Description |
comments |
Array.<Comment>
|
|
Returns:
this
-
Type
-
Discussion
-
setContributor(contributor)
-
Set the contributor
Parameters:
Returns:
this
-
Type
-
Discussion
-
setCreated(created)
-
Set the created
Parameters:
Name |
Type |
Description |
created |
Date
|
Integer
|
|
Returns:
this
-
Type
-
Discussion
-
setDetails(details)
-
Set the details
Parameters:
Name |
Type |
Description |
details |
String
|
|
Returns:
this
-
Type
-
Discussion
-
setFields(fields)
-
Set the fields
Parameters:
Name |
Type |
Description |
fields |
Array.<Field>
|
|
- Inherited From:
-
Returns:
this
-
Type
-
ExtensibleData
-
setId(id)
-
Set the object's id.
Parameters:
Name |
Type |
Description |
id |
String
|
|
- Inherited From:
-
Returns:
This object, for chaining.
-
Type
-
ExtensibleData
-
setLinks(links)
-
Set the links
Parameters:
Name |
Type |
Description |
links |
Links
|
|
- Inherited From:
-
Returns:
this
-
Type
-
ExtensibleData
-
setModified(modified)
-
Set the modified
Parameters:
Name |
Type |
Description |
modified |
Date
|
Integer
|
|
Returns:
this
-
Type
-
Discussion
-
-
Set the numberOfComments
Parameters:
Name |
Type |
Description |
numberOfComments |
Integer
|
|
Returns:
this
-
Type
-
Discussion
-
setTitle(title)
-
Set the title
Parameters:
Name |
Type |
Description |
title |
String
|
|
Returns:
this
-
Type
-
Discussion
-
toJSON()
-
Export the object as JSON
- Overrides:
Returns:
JSON object
-
Type
-
Object