C# Class Smartsheet.Api.Internal.SheetAttachmentResourcesImpl

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

Public Methods

Method Description
AttachFile ( long sheetId, string file, string fileType ) : Attachment

Attaches a file to the Sheet.

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

AttachUrl ( long sheetId, Attachment attachment ) : Attachment
DeleteAttachment ( long sheetId, long attachmentId ) : void
GetAttachment ( long sheetId, long attachmentId ) : Attachment
ListAttachments ( long sheetId, PaginationParameters paging ) : PaginatedResult
SheetAttachmentResourcesImpl ( SmartsheetImpl smartsheet ) : System

Constructor.

Private Methods

Method Description
AttachFile ( string path, string file, string contentType ) : Attachment

Attach file.

Method Details

AttachFile() public method

Attaches a file to the Sheet.

It mirrors To the following Smartsheet REST API method:
POST /sheets/{sheetId}/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 AttachFile ( long sheetId, string file, string fileType ) : Attachment
sheetId long the sheet Id
file string the file path
fileType string the file type
return Smartsheet.Api.Models.Attachment

AttachUrl() public method

public AttachUrl ( long sheetId, Attachment attachment ) : Attachment
sheetId long
attachment Smartsheet.Api.Models.Attachment
return Smartsheet.Api.Models.Attachment

DeleteAttachment() public method

public DeleteAttachment ( long sheetId, long attachmentId ) : void
sheetId long
attachmentId long
return void

GetAttachment() public method

public GetAttachment ( long sheetId, long attachmentId ) : Attachment
sheetId long
attachmentId long
return Smartsheet.Api.Models.Attachment

ListAttachments() public method

public ListAttachments ( long sheetId, PaginationParameters paging ) : PaginatedResult
sheetId long
paging Smartsheet.Api.Models.PaginationParameters
return PaginatedResult

SheetAttachmentResourcesImpl() public method

Constructor.
public SheetAttachmentResourcesImpl ( SmartsheetImpl smartsheet ) : System
smartsheet SmartsheetImpl the Smartsheet
return System