Class RecipeAssetAction
A record of what a run did (or would do) to one asset, and which of its fields that changed.
Inherited Members
Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Reporting
Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
Syntax
public sealed class RecipeAssetAction
Constructors
RecipeAssetAction(RecipeAssetOutcome, string, string, string, string, IReadOnlyList<string>)
Creates an asset action record.
Declaration
public RecipeAssetAction(RecipeAssetOutcome outcome, string section, string id, string assetPath, string typeName, IReadOnlyList<string> changedFields = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RecipeAssetOutcome | outcome | |
| string | section | |
| string | id | |
| string | assetPath | |
| string | typeName | |
| IReadOnlyList<string> | changedFields |
Properties
AssetPath
Declaration
public string AssetPath { get; }
Property Value
| Type | Description |
|---|---|
| string | Project path the asset lives (or would live) at. |
ChangedFields
Declaration
public IReadOnlyList<string> ChangedFields { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> | The serialized fields the run changed (or would change) on the asset; empty when none did. |
Id
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| string | Recipe id of the asset. |
Outcome
Declaration
public RecipeAssetOutcome Outcome { get; }
Property Value
| Type | Description |
|---|---|
| RecipeAssetOutcome | The outcome for the asset. |
Section
Declaration
public string Section { get; }
Property Value
| Type | Description |
|---|---|
| string | Recipe section the asset belongs to. |
TypeName
Declaration
public string TypeName { get; }
Property Value
| Type | Description |
|---|---|
| string | Short type name of the asset. |
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |