Class PublishableVariantItemResponseModelBase
Base class for publishable variant item response models, providing flag support and publish state.
Namespace: Umbraco.Cms.Api.Management.ViewModels.Content
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public abstract class PublishableVariantItemResponseModelBase : VariantItemResponseModelBase, IHasFlags
Constructors
View SourcePublishableVariantItemResponseModelBase()
Declaration
protected PublishableVariantItemResponseModelBase()
Properties
View SourceFlags
Gets the collection of flag for the entity.
Declaration
public IEnumerable<FlagModel> Flags { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<FlagModel> |
Id
Gets the unique identifier for the entity.
Declaration
public Guid Id { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
State
Gets or sets the publish state of the variant.
Declaration
public required PublishableVariantState State { get; set; }
Property Value
| Type | Description |
|---|---|
| PublishableVariantState |
Methods
View SourceAddFlag(string)
Adds a flag to the entity with the specified alias.
Declaration
public void AddFlag(string alias)
Parameters
| Type | Name | Description |
|---|---|---|
| string | alias |
RemoveFlag(string)
Removes a flag from the entity with the specified alias.
Declaration
public void RemoveFlag(string alias)
Parameters
| Type | Name | Description |
|---|---|---|
| string | alias |