Class Personalization
Namespace: Restaurant.Domain.Aggregates.PersonalizationAggregate
Assembly: Restaurant.Domain.dll
Inheritance
object ← Entity ← Personalization
Implements
Inherited Members
Entity.Id, Entity.CreatedAt, Entity.UpdatedAt, Entity.DomainEvents, object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
Personalization\(\)
Parameterless constructor.
Properties
Choices
Choices of the Restaurant.Domain.Aggregates.PersonalizationAggregate.Personalization.
Property Value
MaxChoices
Maximum number of choices that can be selected.
Property Value
MinChoices
Minimum number of choices that can be selected.
Property Value
Mode
Mode of the Restaurant.Domain.Aggregates.PersonalizationAggregate.Personalization.
Property Value
Name
Name of the Restaurant.Domain.Aggregates.PersonalizationAggregate.Personalization.
Property Value
Methods
Clone\(\)
Create and return a clone of the Restaurant.Domain.Aggregates.PersonalizationAggregate.Personalization object which call that method. This method clone the values and not the ID, it is made to clone a menu to edit it after.
Returns
Personalization
The cloned Restaurant.Domain.Aggregates.PersonalizationAggregate.Personalization
Create\(string, PersonalizationMode, List<PersonalizationChoice\>, int, int\)
Parameters
name string
mode PersonalizationMode
choices List < PersonalizationChoice \>
minChoices int
maxChoices int
Returns
Personalization
Update\(string, PersonalizationMode, List<PersonalizationChoice\>, int, int\)
Update the Restaurant.Domain.Aggregates.PersonalizationAggregate.Personalization.
Parameters
name string
Name of the Restaurant.Domain.Aggregates.PersonalizationAggregate.Personalization.
mode PersonalizationMode
Mode of the Restaurant.Domain.Aggregates.PersonalizationAggregate.Personalization.
choices List < PersonalizationChoice \>
Choices of the Restaurant.Domain.Aggregates.PersonalizationAggregate.Personalization.
minChoices int
Minimum number of choices that can be selected.
maxChoices int
Maximum number of choices that can be selected.