25 lines
784 B
C#
25 lines
784 B
C#
namespace Brizco.Domain.Entities.Shift;
|
|
|
|
public partial class Shift : ApiEntity
|
|
{
|
|
public Shift() { }
|
|
|
|
internal Shift(string title, string description, TimeSpan startAt, TimeSpan endAt)
|
|
{
|
|
Title = title;
|
|
Description = description;
|
|
StartAt = startAt;
|
|
EndAt = endAt;
|
|
}
|
|
|
|
public string Title { get; set; } = string.Empty;
|
|
public TimeSpan StartAt { get; set; }
|
|
public TimeSpan EndAt { get; set; }
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
public IReadOnlyCollection<ShiftDay>? Days => ShiftDays;
|
|
internal List<ShiftDay>? ShiftDays { get; private set; } = new();
|
|
|
|
public IReadOnlyCollection<ShiftPlan>? Plans => ShiftPlans;
|
|
internal List<ShiftPlan>? ShiftPlans { get; private set; } = new();
|
|
} |