public interface DiscussionResources
This interface provides methods to access Discussion resources.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
Comment |
addDiscussionComment(long id,
Comment comment)
Add a comment to a discussion.
|
AssociatedAttachmentResources |
attachments()
Deprecated.
As of release 2.0
|
DiscussionCommentResources |
comments()
Represents the DiscussionCommentResources.
|
Comment addDiscussionComment(long id, Comment comment) throws SmartsheetException
Add a comment to a discussion.
It mirrors to the following Smartsheet REST API method:
POST /discussion/{discussionId}/comments
id - the discussion idcomment - the comment to addIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operation@Deprecated AssociatedAttachmentResources attachments()
DiscussionCommentResources comments()
Represents the DiscussionCommentResources.
It will be initialized in constructor and will not change afterwards.
Copyright © 2014–2017 Smartsheet. All rights reserved.