C# Class Smartsheet.Api.Internal.DiscussionCommentResourcesImpl

Inheritance: AbstractResources, DiscussionCommentResources
Show file Open project: smartsheet-platform/smartsheet-csharp-sdk Class Usage Examples

Public Methods

Method Description
AddComment ( long sheetId, long discussionId, Comment comment ) : Comment

Adds a Comment to a Discussion.

It mirrors To the following Smartsheet REST API method: POST /sheets/{sheetId}/discussions/{discussionId}/comments

AddCommentWithAttachment ( long sheetId, long discussionId, Comment comment, string file, string fileType ) : Comment

Adds a Comment attached with an Attachment to a Discussion.

It mirrors To the following Smartsheet REST API method: POST /sheets/{sheetId}/discussions/{discussionId}/comments

DiscussionCommentResourcesImpl ( SmartsheetImpl smartsheet ) : Smartsheet.Api.Models

Constructor.

Method Details

AddComment() public method

Adds a Comment to a Discussion.

It mirrors To the following Smartsheet REST API method: POST /sheets/{sheetId}/discussions/{discussionId}/comments

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public AddComment ( long sheetId, long discussionId, Comment comment ) : Comment
sheetId long the id of the sheet
discussionId long the id of the discussion
comment Smartsheet.Api.Models.Comment Comment object
return Smartsheet.Api.Models.Comment

AddCommentWithAttachment() public method

Adds a Comment attached with an Attachment to a Discussion.

It mirrors To the following Smartsheet REST API method: POST /sheets/{sheetId}/discussions/{discussionId}/comments

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public AddCommentWithAttachment ( long sheetId, long discussionId, Comment comment, string file, string fileType ) : Comment
sheetId long the id of the sheet
discussionId long the id of the discussion
comment Smartsheet.Api.Models.Comment Comment object
file string the file path
fileType string the file type
return Smartsheet.Api.Models.Comment

DiscussionCommentResourcesImpl() public method

Constructor.
if any argument is null
public DiscussionCommentResourcesImpl ( SmartsheetImpl smartsheet ) : Smartsheet.Api.Models
smartsheet SmartsheetImpl the Smartsheet
return Smartsheet.Api.Models