Owneat Technical Guide main Help

Class Feedback

Namespace: Restaurant.Domain.Aggregates.FeedBackAggregate
Assembly: Restaurant.Domain.dll

[Table("Feedbacks")] public sealed class Feedback : Entity, IAuditable, IAggregateRoot

Inheritance

object ← Entity ← Feedback

Implements

IAuditable, IAggregateRoot

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

Feedback\(Guid, int, string, ushort, ushort, ushort, ushort, ushort?, bool?, bool, string, string\)

public Feedback(Guid restaurantId, int tableNumber, string customerIdentifier, ushort globalRating, ushort menuConsultationRating, ushort foodPersonalizationRating, ushort actionMenuRating, ushort? paymentExperienceRating, bool? isPaymentCanSaveTime, bool isRecommendable, string comment, string email)

Parameters

restaurantId Guid

tableNumber int

customerIdentifier string

globalRating ushort

menuConsultationRating ushort

foodPersonalizationRating ushort

actionMenuRating ushort

paymentExperienceRating ushort?

isPaymentCanSaveTime bool?

isRecommendable bool

comment string

email string

Properties

ActionMenuRating

[Required] public ushort ActionMenuRating { get; set; }

Property Value

ushort

Comment

[Required] [MaxLength(500)] public string Comment { get; set; }

Property Value

string

CustomerIdentifier

[Required] [MaxLength(50)] public string CustomerIdentifier { get; set; }

Property Value

string

Email

[Required] [EmailAddress] public string Email { get; set; }

Property Value

string

FoodPersonalizationRating

[Required] public ushort FoodPersonalizationRating { get; set; }

Property Value

ushort

GlobalRating

[Required] public ushort GlobalRating { get; set; }

Property Value

ushort

IsPaymentCanSaveTime

public bool? IsPaymentCanSaveTime { get; set; }

Property Value

bool?

IsRecommendable

[Required] public bool IsRecommendable { get; set; }

Property Value

bool

[Required] public ushort MenuConsultationRating { get; set; }

Property Value

ushort

PaymentExperienceRating

public ushort? PaymentExperienceRating { get; set; }

Property Value

ushort?

RestaurantId

[Required] [ForeignKey("RestaurantId")] public Guid RestaurantId { get; set; }

Property Value

Guid

TableNumber

[Required] public int TableNumber { get; set; }

Property Value

int

Methods

Create\(Guid, int, string, ushort, ushort, ushort, ushort, ushort?, bool?, bool, string, string\)

public static Feedback Create(Guid restaurantId, int tableNumber, string customerIdentifier, ushort globalRating, ushort menuConsultationRating, ushort foodPersonalizationRating, ushort actionMenuRating, ushort? paymentExperienceRating, bool? isPaymentCanSaveTime, bool isRecommendable, string comment, string email)

Parameters

restaurantId Guid

tableNumber int

customerIdentifier string

globalRating ushort

menuConsultationRating ushort

foodPersonalizationRating ushort

actionMenuRating ushort

paymentExperienceRating ushort?

isPaymentCanSaveTime bool?

isRecommendable bool

comment string

email string

Returns

Feedback

Last modified: 21 May 2024