namespace Brizco.Domain.Entities.Tasks; [AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)] [AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget )] [AdaptTo("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)] [GenerateMapper] public partial class Task : ApiEntity { public Task() { } internal Task( TaskType type, bool isDisposable, DateTime setFor, bool hasDisposed, int amount, PurchaseAmountType amountType, string title, string description, Guid complexId, TaskScheduleType scheduleType) { Type = type; IsDisposable = isDisposable; SetFor = setFor; HasDisposed = hasDisposed; Amount = amount; AmountType = amountType; Title = title; Description = description; ComplexId = complexId; ScheduleType = scheduleType; } public TaskType Type { get; internal set; } public string Title { get; internal set; } = string.Empty; public string Description { get; internal set; } = string.Empty; public bool IsDisposable { get; internal set; } public DateTime SetFor { get; internal set; } public bool HasDisposed { get; internal set; } public TaskScheduleType ScheduleType { get; internal set; } public Guid ComplexId { get; internal set; } public Complex? Complex { get; internal set; } public bool IsActivity { get; internal set; } public int Amount { get; internal set; } public PurchaseAmountType AmountType { get; internal set; } public List Shifts { get; internal set; } = new(); public List Days { get; internal set; } = new(); public List Routines { get; internal set; } = new(); public List Positions { get; internal set; } = new(); }