147 lines
6.2 KiB
C#
147 lines
6.2 KiB
C#
namespace PlotLine.Models;
|
|
|
|
public sealed class PlotLineWorkspaceData
|
|
{
|
|
public IReadOnlyList<PlotLineWorkspaceLineRow> PlotLines { get; init; } = [];
|
|
public IReadOnlyList<PlotLineWorkspaceThreadRow> Threads { get; init; } = [];
|
|
public IReadOnlyList<PlotLineWorkspaceContributionRow> Contributions { get; init; } = [];
|
|
public IReadOnlyList<PlotLineWorkspaceTargetRow> Targets { get; init; } = [];
|
|
public IReadOnlyList<PlotLineWorkspaceDependencyRow> Dependencies { get; init; } = [];
|
|
public IReadOnlyList<PlotLineWorkspaceAttributionRow> AttributionScenes { get; init; } = [];
|
|
public IReadOnlyList<PlotLineWorkspaceSuggestionRow> Suggestions { get; init; } = [];
|
|
}
|
|
|
|
public sealed class PlotLineWorkspaceLineRow
|
|
{
|
|
public int PlotLineID { get; set; }
|
|
public int ProjectID { get; set; }
|
|
public int? BookID { get; set; }
|
|
public string PlotLineName { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
public string PlotLineTypeName { get; set; } = string.Empty;
|
|
public string PlotImportanceName { get; set; } = string.Empty;
|
|
public string Colour { get; set; } = "#2f6f63";
|
|
public int SortOrder { get; set; }
|
|
public int ThreadCount { get; set; }
|
|
public int ContributionSceneCount { get; set; }
|
|
}
|
|
|
|
public sealed class PlotLineWorkspaceThreadRow
|
|
{
|
|
public int PlotThreadID { get; set; }
|
|
public int PlotLineID { get; set; }
|
|
public string ThreadTitle { get; set; } = string.Empty;
|
|
public string? Summary { get; set; }
|
|
public string ThreadTypeName { get; set; } = string.Empty;
|
|
public string ThreadStatusName { get; set; } = string.Empty;
|
|
public int Importance { get; set; }
|
|
public int? IntroducedSceneID { get; set; }
|
|
public string? IntroducedSceneLabel { get; set; }
|
|
public int? PlannedResolutionSceneID { get; set; }
|
|
public string? PlannedResolutionSceneLabel { get; set; }
|
|
public int? ActualResolutionSceneID { get; set; }
|
|
public string? ActualResolutionSceneLabel { get; set; }
|
|
public int ContributionCount { get; set; }
|
|
}
|
|
|
|
public sealed class PlotLineWorkspaceContributionRow
|
|
{
|
|
public int ThreadEventID { get; set; }
|
|
public int PlotThreadID { get; set; }
|
|
public int PlotLineID { get; set; }
|
|
public int SceneID { get; set; }
|
|
public int BookID { get; set; }
|
|
public int ChapterID { get; set; }
|
|
public decimal ChapterNumber { get; set; }
|
|
public string ChapterTitle { get; set; } = string.Empty;
|
|
public decimal SceneNumber { get; set; }
|
|
public string SceneTitle { get; set; } = string.Empty;
|
|
public string? SceneSummary { get; set; }
|
|
public int NarrativeOrder { get; set; }
|
|
public string? PovCharacterName { get; set; }
|
|
public string? CharacterNames { get; set; }
|
|
public string? LocationName { get; set; }
|
|
public DateTime? StartDateTime { get; set; }
|
|
public DateTime? EndDateTime { get; set; }
|
|
public string? RelativeTimeText { get; set; }
|
|
public string TimeModeName { get; set; } = string.Empty;
|
|
public string TimeConfidenceName { get; set; } = string.Empty;
|
|
public int WarningCount { get; set; }
|
|
public int DependencyCount { get; set; }
|
|
public bool HasManuscript { get; set; }
|
|
public string ThreadTitle { get; set; } = string.Empty;
|
|
public string ThreadStatusName { get; set; } = string.Empty;
|
|
public int ThreadImportance { get; set; }
|
|
public string CanonicalRole { get; set; } = string.Empty;
|
|
public string CanonicalMarker { get; set; } = string.Empty;
|
|
public string CanonicalStructuralType { get; set; } = string.Empty;
|
|
public string CanonicalTitle { get; set; } = string.Empty;
|
|
public string? CanonicalDescription { get; set; }
|
|
public decimal? CanonicalConfidence { get; set; }
|
|
public string Source { get; set; } = string.Empty;
|
|
public int? SourceReferenceID { get; set; }
|
|
public string? SourceKey { get; set; }
|
|
public string CandidateMatchState { get; set; } = "Not applicable";
|
|
public string? CandidateTitle { get; set; }
|
|
public string? CandidateDescription { get; set; }
|
|
public string? CandidateEvidence { get; set; }
|
|
public decimal? CandidateConfidence { get; set; }
|
|
public string? CandidateSignificance { get; set; }
|
|
}
|
|
|
|
public sealed class PlotLineWorkspaceTargetRow
|
|
{
|
|
public int ThreadEventID { get; set; }
|
|
public int SourcePlotLineID { get; set; }
|
|
public int TargetPlotLineID { get; set; }
|
|
public string StructuralType { get; set; } = string.Empty;
|
|
}
|
|
|
|
public sealed class PlotLineWorkspaceDependencyRow
|
|
{
|
|
public int SceneDependencyID { get; set; }
|
|
public int SourceSceneID { get; set; }
|
|
public int TargetSceneID { get; set; }
|
|
public string DependencyType { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
public bool IsHardDependency { get; set; }
|
|
}
|
|
|
|
public sealed class PlotLineWorkspaceAttributionRow
|
|
{
|
|
public int SceneID { get; set; }
|
|
public int BookID { get; set; }
|
|
public int ChapterID { get; set; }
|
|
public decimal ChapterNumber { get; set; }
|
|
public string ChapterTitle { get; set; } = string.Empty;
|
|
public decimal SceneNumber { get; set; }
|
|
public string SceneTitle { get; set; } = string.Empty;
|
|
public string? Summary { get; set; }
|
|
public int NarrativeOrder { get; set; }
|
|
public string? PovCharacterName { get; set; }
|
|
public string? CharacterNames { get; set; }
|
|
public string? LocationName { get; set; }
|
|
public string? PurposeNames { get; set; }
|
|
public string? RelativeTimeText { get; set; }
|
|
public DateTime? StartDateTime { get; set; }
|
|
public int WarningCount { get; set; }
|
|
public int DependencyCount { get; set; }
|
|
public bool HasManuscript { get; set; }
|
|
public int CanonicalPlotLineCount { get; set; }
|
|
public int ProposedCandidateCount { get; set; }
|
|
public string? ProposedCandidateNames { get; set; }
|
|
}
|
|
|
|
public sealed class PlotLineWorkspaceSuggestionRow
|
|
{
|
|
public int NarrativeCandidateID { get; set; }
|
|
public int SceneID { get; set; }
|
|
public string CandidateType { get; set; } = string.Empty;
|
|
public string CandidateTitle { get; set; } = string.Empty;
|
|
public string Status { get; set; } = string.Empty;
|
|
public string? Significance { get; set; }
|
|
public decimal? CandidateConfidence { get; set; }
|
|
public string? ContributionType { get; set; }
|
|
public string? Evidence { get; set; }
|
|
}
|