40 lines
886 B
C#
40 lines
886 B
C#
|
|
namespace EngineeringSync.Service.Models;
|
||
|
|
|
||
|
|
public record CreateProjectRequest(
|
||
|
|
string Name,
|
||
|
|
string EngineeringPath,
|
||
|
|
string SimulationPath,
|
||
|
|
string FileExtensions,
|
||
|
|
bool IsActive = true,
|
||
|
|
bool BackupEnabled = true,
|
||
|
|
string? BackupPath = null,
|
||
|
|
int MaxBackupsPerFile = 0
|
||
|
|
);
|
||
|
|
|
||
|
|
public record UpdateProjectRequest(
|
||
|
|
string Name,
|
||
|
|
string EngineeringPath,
|
||
|
|
string SimulationPath,
|
||
|
|
string FileExtensions,
|
||
|
|
bool IsActive,
|
||
|
|
bool BackupEnabled = true,
|
||
|
|
string? BackupPath = null,
|
||
|
|
int MaxBackupsPerFile = 0
|
||
|
|
);
|
||
|
|
|
||
|
|
public record SyncRequest(List<Guid> ChangeIds);
|
||
|
|
public record IgnoreRequest(List<Guid> ChangeIds);
|
||
|
|
|
||
|
|
public record ScanRequest(
|
||
|
|
string EngineeringPath,
|
||
|
|
string SimulationPath,
|
||
|
|
string FileExtensions
|
||
|
|
);
|
||
|
|
|
||
|
|
public record ScanResultEntry(
|
||
|
|
string RelativePath,
|
||
|
|
string ChangeType,
|
||
|
|
long Size,
|
||
|
|
DateTime LastModified
|
||
|
|
);
|