C# Class Smartsheet.Api.Models.Favorite.AddFavoriteBuilder

A convenience class for making a Favorite object with the appropriate fields for adding the user.
Show file Open project: smartsheet-platform/smartsheet-csharp-sdk

Public Methods

Method Description
AddFavoriteBuilder ( ObjectType type, long objectId ) : System

Sets the required propeties for createing a Favorite.

Build ( ) : Favorite

Builds and returns the Favorite object.

Method Details

AddFavoriteBuilder() public method

Sets the required propeties for createing a Favorite.
public AddFavoriteBuilder ( ObjectType type, long objectId ) : System
type ObjectType the object type
objectId long ID of the favorited item. If type is "template", only private sheet-type template ID is allowed.
return System

Build() public method

Builds and returns the Favorite object.
public Build ( ) : Favorite
return Favorite