24 lines
660 B
C#
24 lines
660 B
C#
#nullable enable
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SHI.modal
|
|
{
|
|
public class ScheduleSegment
|
|
{
|
|
// Stable external mapping key (preferred)
|
|
public string ItemKey { get; set; } = string.Empty;
|
|
// Backward compatibility GUID (optional)
|
|
public Guid ItemId { get; set; }
|
|
public DateTime Start { get; set; }
|
|
public DateTime End { get; set; }
|
|
public float Progress { get; set; }
|
|
public string Type { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class GanttChartData
|
|
{
|
|
public List<ScheduleSegment> Segments { get; set; } = new List<ScheduleSegment>();
|
|
}
|
|
}
|