public class Comment extends IdentifiableModel<Long>
| Modifier and Type | Class and Description |
|---|---|
static class |
Comment.AddCommentBuilder
A convenience class to generate a comment with the appropriate fields for adding it to a sheet.
|
| Constructor and Description |
|---|
Comment() |
| Modifier and Type | Method and Description |
|---|---|
List<Attachment> |
getAttachments()
Gets the comment attachments.
|
Date |
getCreatedAt()
Gets the date the comment was created.
|
User |
getCreatedBy()
Gets user that created the comment.
|
Long |
getDiscussionId()
Gets the discussion id.
|
Date |
getModifiedAt()
Gets the date the comment was modified.
|
Date |
getModifiedDate()
Gets the date the comment was last modified.
|
String |
getText()
Gets the text for the comment.
|
Comment |
setAttachments(List<Attachment> attachments)
Sets the comment attachments.
|
Comment |
setCreatedAt(Date createdAt)
Sets the date the comment was created.
|
Comment |
setCreatedBy(User createdBy)
Sets the user that created the comment.
|
Comment |
setDiscussionId(Long discussionId)
Sets the discussion id.
|
Comment |
setModifiedAt(Date modifiedAt)
Sets the date the comment was modified.
|
Comment |
setModifiedDate(Date modifiedDate)
Sets the date the comment was last modified.
|
Comment |
setText(String text)
Sets the text for the comment.
|
equals, getId, hashCode, setIdpublic String getText()
public Comment setText(String text)
text - the new textpublic User getCreatedBy()
public Comment setCreatedBy(User createdBy)
createdBy - the new created bypublic Date getModifiedDate()
public Comment setModifiedDate(Date modifiedDate)
modifiedDate - the new modified datepublic List<Attachment> getAttachments()
public Comment setAttachments(List<Attachment> attachments)
attachments - the new attachmentspublic Long getDiscussionId()
public Comment setDiscussionId(Long discussionId)
discussionId - the new discussion idpublic Date getCreatedAt()
public Comment setCreatedAt(Date createdAt)
createdAt - the new created atpublic Date getModifiedAt()
Copyright © 2014–2017 Smartsheet. All rights reserved.