Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Class Info |
|---|
public final class Comment extends GenericJson File comment model class. |
Constructor Name |
|---|
Comment() Constructs a Comment object. |
Qualifier and Type | Method Name and Description |
|---|---|
String | Obtains a file position in JSON format. |
setPosition(String position) Sets a file position in JSON format. | |
User | Obtains information about the user who creates a comment. |
setCreator(User creator) Sets information about the user who creates a comment. | |
String | Obtains a comment. |
setDescription(String description) Sets a comment. | |
com.huawei.cloud.base.util.DateTime | Obtains comment creation time. |
setCreatedTime(com.huawei.cloud.base.util.DateTime createdTime) Sets comment creation time. | |
Boolean | Checks whether a comment is deleted. |
setDeleted(Boolean deleted) Sets whether a comment is deleted. | |
String | Obtains a comment in HTML format. |
setHtmlDescription(String htmlDescription) Sets a comment in HTML format. | |
List<Reply> | Obtains all replies to a comment. |
setReplies(List<Reply> replies) Sets all replies to a comment. | |
String | getId() Obtains a comment ID. |
setId(String id) Sets a comment ID. | |
String | Obtains the resource type. |
setCategory(String category) Sets the resource type. | |
com.huawei.cloud.base.util.DateTime | Obtains the last modification time of a comment. |
setEditedTime(com.huawei.cloud.base.util.DateTime editedTime) Sets the last modification time of a comment. | |
| Obtains the content of a commented file. | |
setQuotedContent(Comment.QuotedContent quotedContent) Sets the content of a commented file. | |
Boolean | Checks whether a comment is resolved by one of its replies. |
setResolved(Boolean resolved) Sets whether a comment is resolved by one of its replies. | |
set(String fieldName, Object value) Sets a custom attribute and its value. | |
clone() Clones a Comment object. |
Constructor |
|---|
Comment() Constructs a Comment object. |
Method |
|---|
public String getPosition() Obtains a file position in JSON format. |
Returns
Type | Description |
|---|---|
String | File position in JSON format. |
Method |
|---|
public Comment setPosition(String position) Sets a file position in JSON format. |
Parameters
Name | Description |
|---|---|
position | File position in JSON format. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public User getCreator() Obtains information about the user who creates a comment. |
Returns
Type | Description |
|---|---|
User | Information about the user who creates a comment. |
Method |
|---|
public Comment setCreator(User creator) Sets information about the user who creates a comment. |
Parameters
Name | Description |
|---|---|
creator | Information about the user who creates a comment. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public String getDescription() Obtains a comment. |
Returns
Type | Description |
|---|---|
String | Comment content. |
Method |
|---|
public Comment setDescription(String description) Sets a comment. |
Parameters
Name | Description |
|---|---|
description | Comment content. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public com.huawei.cloud.base.util.DateTime getCreatedTime() Obtains comment creation time. |
Returns
Type | Description |
|---|---|
com.huawei.cloud.base.util.DateTime | Time when the comment is created. |
Method |
|---|
public Comment setCreatedTime(com.huawei.cloud.base.util.DateTime createdTime) Sets comment creation time. |
Parameters
Name | Description |
|---|---|
createdTime | Time when the comment is created. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public Boolean getDeleted() Checks whether a comment is deleted. |
Returns
Type | Description |
|---|---|
Boolean | Whether a comment is deleted. |
Method |
|---|
public Comment setDeleted(Boolean deleted) Sets whether a comment is deleted. |
Parameters
Name | Description |
|---|---|
deleted | Whether the comment is deleted. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public String getHtmlDescription() Obtains a comment in HTML format. |
Returns
Type | Description |
|---|---|
String | Comment in HTML format. |
Method |
|---|
public Comment setHtmlDescription(String htmlDescription) Sets a comment in HTML format. |
Parameters
Name | Description |
|---|---|
htmlDescription | Comment in HTML format. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public List<Reply> getReplies() Obtains all replies to a comment. |
Returns
Type | Description |
|---|---|
List<Reply> | All replies to a comment. |
Method |
|---|
public Comment setReplies(List<Reply> replies) Sets all replies to a comment. |
Parameters
Name | Description |
|---|---|
replies | All replies to a comment. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public String getId() Obtains a comment ID. |
Returns
Type | Description |
|---|---|
String | Comment ID. |
Method |
|---|
public Comment setId(String id) Sets a comment ID. |
Parameters
Name | Description |
|---|---|
id | Comment ID. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public String getCategory() Obtains the resource type. |
Returns
Type | Description |
|---|---|
String | Resource type. |
Method |
|---|
public Comment setCategory(String category) Sets the resource type. |
Parameters
Name | Description |
|---|---|
category | Resource type. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public com.huawei.cloud.base.util.DateTime getEditedTime() Obtains the last modification time of a comment. |
Returns
Type | Description |
|---|---|
com.huawei.cloud.base.util.DateTime | Last modification time of a comment. |
Method |
|---|
public Comment setEditedTime(com.huawei.cloud.base.util.DateTime editedTime) Sets the last modification time of a comment. |
Parameters
Name | Description |
|---|---|
editedTime | Last modification time of a comment. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public Comment.QuotedContent getQuotedContent() Obtains the content of a commented file. |
Returns
Type | Description |
|---|---|
Comment.QuotedContent | Content of a commented file. |
Method |
|---|
public Comment setQuotedContent(Comment.QuotedContent quotedContent) Sets the content of a commented file. |
Parameters
Name | Description |
|---|---|
quotedContent | Content of a commented file. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public Boolean getResolved() Checks whether a comment is resolved by one of its replies. |
Returns
Type | Description |
|---|---|
Boolean | Whether a comment is resolved by one of its replies. |
Method |
|---|
public Comment setResolved(Boolean resolved) Sets whether a comment is resolved by one of its replies. |
Parameters
Name | Description |
|---|---|
resolved | Whether a comment is resolved by one of its replies. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public Comment set(String fieldName, Object value) Sets the field name and field value. |
Parameters
Name | Description |
|---|---|
fieldname | Field name. |
value | Field value. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |
Method |
|---|
public Comment clone() Clones a Comment object. |
Returns
Type | Description |
|---|---|
Comment | A Comment object. |