Class RecipeUiOptionMerge
The options a view ends up with after a recipe met the options it already owned, where each recipe option landed — the index its submit signals must be written to — and the recipe options it refused.
Inherited Members
Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Importers
Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
Syntax
public sealed class RecipeUiOptionMerge
Constructors
RecipeUiOptionMerge(UiOption[], IReadOnlyList<int>, RecipeIdentityRefusals)
Creates the merge result.
Declaration
public RecipeUiOptionMerge(UiOption[] options, IReadOnlyList<int> optionIndexByRecipeIndex, RecipeIdentityRefusals refusals)
Parameters
| Type | Name | Description |
|---|---|---|
| UiOption[] | options | |
| IReadOnlyList<int> | optionIndexByRecipeIndex | |
| RecipeIdentityRefusals | refusals |
Properties
OptionIndexByRecipeIndex
Declaration
public IReadOnlyList<int> OptionIndexByRecipeIndex { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<int> | For each recipe option, the index of the option it became in Options; -1 for a null or refused recipe entry. |
Options
Declaration
public UiOption[] Options { get; }
Property Value
| Type | Description |
|---|---|
| UiOption[] | The view's options after the merge, in order. |
Refusals
Declaration
public RecipeIdentityRefusals Refusals { get; }
Property Value
| Type | Description |
|---|---|
| RecipeIdentityRefusals | Each recipe option left out rather than written: for claiming a Guid another option of the view already owns, or for naming by its Id an option of another identity; empty when none was. |