C# Class Smartsheet.Api.Internal.DiscussionAttachmentResourcesImpl

This is the implementation of the AssociatedAttachmentResources for Discussions. It extends AssociatedAttachmentResourcesImpl and overrides attachFile/attachURL methods by throwing UnsupportedOperationException (since they're not supported for Discussions). Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
Inheritance: AbstractResources, DiscussionAttachmentResources
Show file Open project: smartsheet-platform/smartsheet-csharp-sdk

Public Methods

Method Description
DiscussionAttachmentResourcesImpl ( SmartsheetImpl smartsheet ) : System.Text

Constructor.

ListAttachments ( long sheetId, long discussionId, PaginationParameters paging ) : PaginatedResult

Gets a list of all Attachments that are in the Discussion

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

Method Details

DiscussionAttachmentResourcesImpl() public method

Constructor.
if any argument is null
public DiscussionAttachmentResourcesImpl ( SmartsheetImpl smartsheet ) : System.Text
smartsheet SmartsheetImpl the Smartsheet
return System.Text

ListAttachments() public method

Gets a list of all Attachments that are in the Discussion

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

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 ListAttachments ( long sheetId, long discussionId, PaginationParameters paging ) : PaginatedResult
sheetId long the sheetId
discussionId long the discussion Id
paging Smartsheet.Api.Models.PaginationParameters the paging
return PaginatedResult