Class Favorite.AddFavoriteBuilder
- Namespace
- Smartsheet.Api.Models
- Assembly
- smartsheet-csharp-sdk.dll
A convenience class for making a Favorite object with the appropriate fields for adding the user.
public class Favorite.AddFavoriteBuilder
- Inheritance
-
Favorite.AddFavoriteBuilder
- Inherited Members
Constructors
AddFavoriteBuilder(ObjectType?, long?)
Sets the required propeties for createing a Favorite.
public AddFavoriteBuilder(ObjectType? type, long? objectId)
Parameters
type
ObjectType?the object type
objectId
long?ID of the favorited item. If type is "template", only private sheet-type template ID is allowed.
Methods
Build()
Builds and returns the Favorite object.
public Favorite Build()
Returns
- Favorite
the Favorite object