PlotDirector/PlotLine/Models/WriterPlanning.cs

53 lines
2.1 KiB
C#

namespace PlotLine.Models;
public sealed class WriterPlanActivity
{
public int ActivityID { get; set; }
public int BookID { get; set; }
public int? ChapterID { get; set; }
public int? GroupID { get; set; }
public int? SceneID { get; set; }
public string Title { get; set; } = "";
public string BookTitle { get; set; } = "";
public string RevisionStatus { get; set; } = "";
public int? Words { get; set; }
public int Minutes { get; set; } = 30;
public DateTime ScheduledDate { get; set; }
public string Status { get; set; } = "Planned";
public string Kind { get; set; } = "Review";
public bool Selected { get; set; } = true;
}
public sealed class WriterPlanningPage
{
public int ProjectID => Plan.ProjectID;
public int? BookID => Plan.BookID;
public int WritingPlanID { get; set; }
public PlotLine.ViewModels.WritingPlanSettingsEditViewModel Plan { get; set; } = new();
public List<WriterPlanActivity> Candidates { get; set; } = [];
public IReadOnlyList<WriterPlanActivity> Scheduled { get; set; } = [];
public bool Confirm { get; set; }
public string? Error { get; set; }
public string? EmptyReason { get; set; }
}
public sealed class WriterPlanningContext { public int Chapters { get; set; } public int Scenes { get; set; } public int Blocked { get; set; } public int ExistingTasks { get; set; } }
public sealed class WriterScheduleRecalculation
{
public int WritingPlanID { get; set; }
public DateTime? StartDate { get; set; }
[System.ComponentModel.DataAnnotations.Range(1, 99)]
public int? ContingencyPercent { get; set; }
public string? ReviewFingerprint { get; set; }
public IReadOnlyList<DateTime> OverlapDates { get; set; } = [];
public PlotLine.ViewModels.WritingPlanSettingsEditViewModel? Plan { get; set; }
public PlotLine.Services.Writer.WriterCapacityPreview? Capacity { get; set; }
public int PendingCount { get; set; }
}
public sealed record WriterWorkingGroup(int GroupID, string Name, bool IsCurrent, IReadOnlyList<int> ChapterIDs);
public sealed record WriterScheduleDailyFocus(DateTime ScheduledDate, int Minutes, decimal SuggestedWords);