using System; namespace TellmePdmsPluging.Models { public class ExportIfcRequest { public string ExecutionId { get; set; } public string execution_id { get { return ExecutionId; } set { ExecutionId = value; } } public string ExportPath { get; set; } public string FileName { get; set; } public void ApplyDefaults() { if (string.IsNullOrEmpty(ExportPath)) { ExportPath = @"C:\temp"; } if (string.IsNullOrEmpty(FileName)) { FileName = string.Format("pdms_export_{0:yyyyMMdd_HHmmss}.ifc", DateTime.Now); } } public string GetFullPath() { return System.IO.Path.Combine(ExportPath, FileName); } } public class ExportIfcResult { public bool Success { get; set; } public string Message { get; set; } public string ExportPath { get; set; } public string FileName { get; set; } public string FullPath { get; set; } public long FileSizeBytes { get; set; } public DateTime StartedAt { get; set; } public DateTime CompletedAt { get; set; } public double DurationSeconds { get; set; } } }