TellmePdmsPluging/Models/ModelStatusResponse.cs
2026-03-08 20:45:18 +08:00

54 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
namespace TellmePdmsPluging.Models
{
public class ModelStatusResponse
{
public bool ModelLoaded { get; set; }
public ProjectInfo ProjectInfo { get; set; }
public ModelStatistics ModelStatistics { get; set; }
public SessionInfo SessionInfo { get; set; }
public ExportDiagnostics ExportDiagnostics { get; set; }
}
public class ProjectInfo
{
public string ProjectName { get; set; }
public string MdsName { get; set; }
public string PdmsVersion { get; set; }
}
public class ModelStatistics
{
public int TotalElements { get; set; }
public Dictionary<string, int> ElementCounts { get; set; }
public int ZoneCount { get; set; }
public List<string> ActiveZones { get; set; }
public long FileSize { get; set; }
public long PolygonCount { get; set; }
public long FeatureCount { get; set; }
}
public class SessionInfo
{
public string UserName { get; set; }
public DateTime StartTime { get; set; }
public int DurationMinutes { get; set; }
}
public class ExportDiagnostics
{
public string ActiveMdbName { get; set; }
public bool DesignDbAvailable { get; set; }
public bool CurrentMdbMatchesRequested { get; set; }
public string RequestedMdbName { get; set; }
public bool ExportPrecheckPassed { get; set; }
public bool DefinitionsLikelyMissing { get; set; }
public string Message { get; set; }
public string LastExportError { get; set; }
}
}