C# Class Smartsheet.Api.Internal.SheetDiscussionResourcesImpl

This is the implementation of the SheetDiscussionResources. Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
Inheritance: AbstractResources, SheetDiscussionResources
Show file Open project: smartsheet-platform/smartsheet-csharp-sdk Class Usage Examples

Public Methods

Method Description
CreateDiscussion ( long sheetId, Discussion discussion ) : Discussion

Creates a new Discussion on a Sheet.

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

CreateDiscussionWithAttachment ( long sheetId, Discussion discussion, string file, string fileType ) : Discussion

Creates a new Discussion attached with an Attachment on a Sheet.

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

DeleteDiscussion ( long sheetId, long discussionId ) : void

Delete a discussion

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

GetDiscussion ( long sheetId, long discussionId ) : Discussion

Gets the Discussion specified in the URL.

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

ListDiscussions ( long sheetId, IEnumerable include, PaginationParameters paging ) : PaginatedResult

Gets a list of all Discussions associated with the specified Sheet (both sheet-level discussions and row-level discussions).

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

This operation supports pagination of results. For more information, see Paging.

SheetDiscussionResourcesImpl ( SmartsheetImpl smartsheet ) : System.Collections.Generic

Constructor.

Method Details

CreateDiscussion() public method

Creates a new Discussion on a Sheet.

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

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 CreateDiscussion ( long sheetId, Discussion discussion ) : Discussion
sheetId long the id of the sheet
discussion Smartsheet.Api.Models.Discussion the discussion to add
return Smartsheet.Api.Models.Discussion

CreateDiscussionWithAttachment() public method

Creates a new Discussion attached with an Attachment on a Sheet.

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

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 CreateDiscussionWithAttachment ( long sheetId, Discussion discussion, string file, string fileType ) : Discussion
sheetId long the id of the sheet
discussion Smartsheet.Api.Models.Discussion the discussion to add
file string the file path
fileType string the file type, can be null
return Smartsheet.Api.Models.Discussion

DeleteDiscussion() public method

Delete a discussion

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

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 DeleteDiscussion ( long sheetId, long discussionId ) : void
sheetId long the sheetId
discussionId long the discussionId
return void

GetDiscussion() public method

Gets the Discussion specified in the URL.

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

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 GetDiscussion ( long sheetId, long discussionId ) : Discussion
sheetId long the Id of the sheet
discussionId long the ID of the discussion
return Smartsheet.Api.Models.Discussion

ListDiscussions() public method

Gets a list of all Discussions associated with the specified Sheet (both sheet-level discussions and row-level discussions).

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

This operation supports pagination of results. For more information, see Paging.
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 ListDiscussions ( long sheetId, IEnumerable include, PaginationParameters paging ) : PaginatedResult
sheetId long the sheet Id
include IEnumerable elements to include in response
paging Smartsheet.Api.Models.PaginationParameters the pagination
return PaginatedResult

SheetDiscussionResourcesImpl() public method

Constructor.
if any argument is null
public SheetDiscussionResourcesImpl ( SmartsheetImpl smartsheet ) : System.Collections.Generic
smartsheet SmartsheetImpl the Smartsheet
return System.Collections.Generic