We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesDrive KitClient APIservices.drive.modelCommentOverview

Comment

Class info
public final class Comment extends GenericJson
File comment model class.

Public Constructor Summary

Constructor name

Comment()

Constructor for the Comment class.

Public Method Summary

Return typeMethod name
String

getPosition()

Obtains a file position in JSON format.

Comment

setPosition(String position)

Sets a file position in JSON format.

User

getCreator()

Obtains information about the user who creates a comment.

Comment

setCreator(User creator)

Sets information about the user who creates a comment.

String

getDescription()

Obtains a comment.

Comment

setDescription(String description)

Sets a comment.

com.huawei.cloud.base.util.DateTime

getCreatedTime()

Obtains comment creation time.

Comment

setCreatedTime(com.huawei.cloud.base.util.DateTime createdTime)

Sets comment creation time.

Boolean

getDeleted()

Checks whether a comment is deleted.

Comment

setDeleted(Boolean deleted)

Sets whether a comment is deleted.

String

getHtmlDescription()

Obtains a comment in HTML format.

Comment

setHtmlDescription(String htmlDescription)

Sets a comment in HTML format.

List<Reply>

getReplies()

Obtains all replies to a comment.

Comment

setReplies(List<Reply> replies)

Sets all replies to a comment.

String

getId()

Obtains the ID of a comment.

Comment

setId(String id)

Sets the ID of a comment.

String

getCategory()

Obtains the resource type.

Comment

setCategory(String category)

Sets the resource type.

com.huawei.cloud.base.util.DateTime

getEditedTime()

Obtains the last modification time of a comment.

Comment

setEditedTime(com.huawei.cloud.base.util.DateTime editedTime)

Sets the last modification time of a comment.

Comment.QuotedContent

getQuotedContent()

Obtains the content of a commented file.

Comment

setQuotedContent(Comment.QuotedContent quotedContent)

Sets the content of a commented file.

Boolean

getResolved()

Checks whether a comment is resolved by one of its replies.

Comment

setResolved(Boolean resolved)

Sets whether a comment is resolved by one of its replies.

Comment

set(String fieldName, Object value)

Sets the given field value for the given field name.

Comment

clone()

Clones a Comment object.

Public Constructors

constructor
Comment()
Constructs a Comment object.

Public Methods

Method
public String getPosition()
Obtains a file position in JSON format.

Return

typedesc
StringFile position in JSON format.
Method


public Comment setPosition(String position)

Sets a file position in JSON format.

Parameters

Parameter nameParameter desc
positionFile position in JSON format.

Return

typedesc
CommentA Comment object.
Method


public User getCreator()

Obtains information about the user who creates a comment.

Return

typedesc
UserInformation about the user who creates a comment.
Method


public Comment setCreator(User creator)

Sets information about the user who creates a comment.

Parameters

Parameter nameParameter desc
creatorInformation about the user who creates a comment.

Return

typedesc
CommentA Comment object.
Method


public String getDescription()

Obtains a comment.

Return

typedesc
StringComment.
Method


public Comment setDescription(String description)

Sets a comment.

Parameters

Parameter nameParameter desc
descriptionComment.

Return

typedesc
CommentA Comment object.
Method


public com.huawei.cloud.base.util.DateTime getCreatedTime()

Obtains comment creation time.

Return

typedesc
com.huawei.cloud.base.util.DateTimeComment creation time.
Method


public Comment setCreatedTime(com.huawei.cloud.base.util.DateTime createdTime)

Sets comment creation time.

Parameters

Parameter nameParameter desc
createdTimeComment creation time.

Return

typedesc
CommentA Comment object.
Method
Method

public Boolean getDeleted()

Checks whether a comment is deleted.

Return

typedesc
BooleanIndicates whether a comment is deleted.
Method


public Comment setDeleted(Boolean deleted)

Sets whether a comment is deleted.

Parameters

Parameter nameParameter desc
deletedIndicates whether a comment is deleted.

Return

typedesc
CommentA Comment object.
Method


public String getHtmlDescription()

Obtains a comment in HTML format.

Return

typedesc
StringComment in HTML format.
Method


public Comment setHtmlDescription(String htmlDescription)

Sets a comment in HTML format.

Parameters

Parameter nameParameter desc
htmlDescriptionComment in HTML format.

Return

typedesc
CommentA Comment object.
Method


public List<Reply> getReplies()

Obtains all replies to a comment.

Return

typedesc
List<Reply>All replies to a comment.
Method


public Comment setReplies(List<Reply> replies)

Sets all replies to a comment.

Parameters

Parameter nameParameter desc
repliesAll replies to a comment.

Return

typedesc
CommentA Comment object.
Method


public String getId()

Obtains the ID of a comment.

Return

typedesc
StringID of a comment.
Method


public Comment setId(String id)

Sets the ID of a comment.

Parameters

Parameter nameParameter desc
idID of a comment.

Return

typedesc
CommentA Comment object.
Method


public String getCategory()

Obtains the resource type.

Return

typedesc
StringResource type.
Method


public Comment setCategory(String category)

Sets the resource type.

Parameters

Parameter nameParameter desc
categoryResource type.

Return

typedesc
CommentA Comment object.
Method


public com.huawei.cloud.base.util.DateTime getEditedTime()

Obtains the last modification time of a comment.

Return

typedesc
com.huawei.cloud.base.util.DateTimeLast 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

Parameter nameParameter desc
editedTimeLast modification time of a comment.

Return

typedesc
CommentA Comment object.
Method


public Comment.QuotedContent getQuotedContent()

Obtains the content of a commented file.

Return

typedesc
Comment.QuotedContentContent of a commented file.
Method


public Comment setQuotedContent(Comment.QuotedContent quotedContent)

Sets the content of a commented file.

Parameters

Parameter nameParameter desc
quotedContentContent of a commented file.

Return

typedesc
CommentA Comment object.
Method


public Boolean getResolved()

Checks whether a comment is resolved by one of its replies.

Return

typedesc
BooleanIndicates 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

Parameter nameParameter desc
resolvedIndicates whether a comment is resolved by one of its replies.

Return

typedesc
CommentA Comment object.
Method


public Comment set(String fieldName, Object value)

Sets the given field value for the given field name.

Parameters

Parameter nameParameter desc
fieldnameField name.
valueField value.

Return

typedesc
CommentA Comment object.
Method


public Comment clone()

Clones a Comment object.

Return

typedesc
CommentA Comment object.
This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.